From 58d6ad7f9eac08cc22912851df721d460f268bdd Mon Sep 17 00:00:00 2001 From: yamaoka Date: Thu, 19 Apr 2001 05:21:06 +0000 Subject: [PATCH] * mu-cite.el (mu-cite-remove-text-properties): Make it to work with XEmacs. --- ChangeLog | 5 +++++ mu-cite.el | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6c7151..9714ebd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-04-19 Katsumi Yamaoka + + * mu-cite.el (mu-cite-remove-text-properties): Make it to work with + XEmacs. + 2001-03-22 NISHIDA Masakazu * mu-register.el (mu-cite-get-prefix-register-verbose-method): diff --git a/mu-cite.el b/mu-cite.el index 23f3e36..c125289 100644 --- a/mu-cite.el +++ b/mu-cite.el @@ -70,13 +70,19 @@ (defmacro mu-cite-remove-text-properties (string) "Remove text properties from STRING which is read from minibuffer." - (if (or (featurep 'xemacs) - (boundp 'minibuffer-allow-text-properties);; Emacs 20.1 or later. - (not (fboundp 'set-text-properties)));; under Emacs 19.7. - string - (` (let ((obj (copy-sequence (, string)))) - (set-text-properties 0 (length obj) nil obj) - obj)))) + (cond ((featurep 'xemacs) + (` (let ((string (copy-sequence (, string)))) + (map-extents (function (lambda (extent maparg) + (delete-extent extent)) + string 0 (length string))) + string))) + ((or (boundp 'minibuffer-allow-text-properties);; Emacs 20.1 or later. + (not (fboundp 'set-text-properties)));; under Emacs 19.7. + string) + (t + (` (let ((string (copy-sequence (, string)))) + (set-text-properties 0 (length string) nil string) + string))))) ;;; @ set up -- 1.7.10.4