emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/subr.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/subr.el
Date: Sat, 27 Apr 2002 15:48:40 -0400

Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.299 emacs/lisp/subr.el:1.300
*** emacs/lisp/subr.el:1.299    Sun Apr 21 13:00:41 2002
--- emacs/lisp/subr.el  Sat Apr 27 15:48:40 2002
***************
*** 231,238 ****
  (defun member-ignore-case (elt list)
    "Like `member', but ignores differences in case and text representation.
  ELT must be a string.  Upper-case and lower-case letters are treated as equal.
! Unibyte strings are converted to multibyte for comparison."
!   (while (and list (not (eq t (compare-strings elt 0 nil (car list) 0 nil 
t))))
      (setq list (cdr list)))
    list)
  
--- 231,241 ----
  (defun member-ignore-case (elt list)
    "Like `member', but ignores differences in case and text representation.
  ELT must be a string.  Upper-case and lower-case letters are treated as equal.
! Unibyte strings are converted to multibyte for comparison.
! Non-strings in LIST are ignored."
!   (while (and list
!             (not (and (stringp (car list))
!                       (eq t (compare-strings elt 0 nil (car list) 0 nil t)))))
      (setq list (cdr list)))
    list)
  
***************
*** 1282,1291 ****
  
      (apply 'insert strings)
  
!     (let ((inhibit-read-only t))
        (if (eq yank-excluded-properties t)
!         (set-text-properties opoint (point) nil)
!       (remove-list-of-text-properties opoint (point)
                                        yank-excluded-properties)))))
  
  (defun insert-buffer-substring-no-properties (buf &optional start end)
--- 1285,1313 ----
  
      (apply 'insert strings)
  
!     (let ((inhibit-read-only t)
!         (end (point)))
! 
!       ;; Replace any `category' property with the properties it stands for.
!       (unless (memq yank-excluded-properties '(t nil))
!       (save-excursion
!         (goto-char opoint)
!         (while (< (point) end)
!           (let ((cat (get-text-property (point) 'category))
!                 run-end)
!             (when cat
!               (setq run-end
!                     (next-single-property-change (point) 'category nil end))
!               (remove-list-of-text-properties (point) run-end '(category))
!               (add-text-properties (point) run-end (symbol-plist cat))
!               (goto-char (or run-end end)))
!             (setq run-end
!                   (next-single-property-change (point) 'category nil end))
!             (goto-char (or run-end end))))))
! 
        (if (eq yank-excluded-properties t)
!         (set-text-properties opoint end nil)
!       (remove-list-of-text-properties opoint end
                                        yank-excluded-properties)))))
  
  (defun insert-buffer-substring-no-properties (buf &optional start end)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]