home *** CD-ROM | disk | FTP | other *** search
-
- Please incorporpate this patch or its equivalent into future releases
- of Lucid emacs. Long ago I sent it to the author of VM, but I'm not
- sure how to tell whether that had a useful effect.
-
- The best way I know to demonstrate the necessity of this patch is this:
-
-
- (setq vm-mode-hooks (list (function (lambda () (setq case-fold-search nil)))))
-
-
- Contrary to the implicit assumption in VM's source code,
- case-fold-search is a way of defining a user preference, not a
- variable which packages like VM should consider amenable to
- permanent change for the sake of programming convenience.
-
- It might also be useful to get rid of the "(setq case-fold-search t)"
- in vm-mode-internal, but my vm-mode-hooks provides a suitable
- workaround for that bug; the enclosed patch just fixes the other bugs
- which are invisible without my hook.
-
- There might be other places in VM code that assume case-fold-search is
- t, but these are all of the ones I've found.
-
-
- *** lisp/vm/vm-delete.el.orig Mon Jun 29 18:29:04 1992
- --- lisp/vm/vm-delete.el Sun Jun 21 19:31:42 1992
- ***************
- *** 84,89 ****
- --- 84,90 ----
- (vm-error-if-folder-read-only)
- (vm-error-if-folder-empty)
- (let ((subject (vm-su-subject (car vm-message-pointer)))
- + (case-fold-search t)
- (mp vm-message-list)
- (n 0))
- (if (string-match "^\\(re: *\\)+" subject)
- *** lisp/vm/vm-group.el.orig Mon Jun 29 18:29:05 1992
- --- lisp/vm/vm-group.el Sun Jun 21 19:31:41 1992
- ***************
- *** 43,49 ****
- (defconst vm-group-by-subject-closure (cons t t))
-
- (defun vm-group-by-subject (m1 m2)
- ! (let ((subject (vm-su-subject m1)))
- (if (eq subject (car vm-group-by-subject-closure))
- (setq subject (cdr vm-group-by-subject-closure))
- (setcar vm-group-by-subject-closure subject)
- --- 43,50 ----
- (defconst vm-group-by-subject-closure (cons t t))
-
- (defun vm-group-by-subject (m1 m2)
- ! (let ((subject (vm-su-subject m1))
- ! (case-fold-search t))
- (if (eq subject (car vm-group-by-subject-closure))
- (setq subject (cdr vm-group-by-subject-closure))
- (setcar vm-group-by-subject-closure subject)
- *** lisp/vm/vm-reply.el.orig Mon Jun 29 18:29:07 1992
- --- lisp/vm/vm-reply.el Mon Apr 12 19:42:35 1993
- ***************
- *** 127,133 ****
-
- (defun vm-strip-ignored-addresses (addresses)
- (setq addresses (copy-sequence addresses))
- ! (let (re-list list addr-list)
- (setq re-list vm-reply-ignored-addresses)
- (while re-list
- (setq addr-list addresses)
- --- 127,134 ----
-
- (defun vm-strip-ignored-addresses (addresses)
- (setq addresses (copy-sequence addresses))
- ! (let ((case-fold-search t)
- ! re-list list addr-list)
- (setq re-list vm-reply-ignored-addresses)
- (while re-list
- (setq addr-list addresses)
- *** lisp/vm/vm-summary.el.orig Sun Aug 2 18:33:40 1992
- --- lisp/vm/vm-summary.el Mon Apr 12 19:46:06 1993
- ***************
- *** 366,372 ****
- (put format-variable 'vm-compiled-format format)))
-
- (defun vm-get-header-contents (message header-name)
- ! (let (contents regexp)
- (setq regexp (format vm-header-regexp-format header-name))
- (save-excursion
- (set-buffer (marker-buffer (vm-start-of message)))
- --- 366,373 ----
- (put format-variable 'vm-compiled-format format)))
-
- (defun vm-get-header-contents (message header-name)
- ! (let ((case-fold-search t)
- ! contents regexp)
- (setq regexp (format vm-header-regexp-format header-name))
- (save-excursion
- (set-buffer (marker-buffer (vm-start-of message)))
- ***************
- *** 474,480 ****
- (buffer-substring (match-beginning 1) (match-end 1)))))))
-
- (defun vm-su-do-date (m)
- ! (let (date)
- (setq date (or (vm-get-header-contents m "Date") (vm-grok-From_-date m)))
- (cond
- ((null date)
- --- 475,481 ----
- (buffer-substring (match-beginning 1) (match-end 1)))))))
-
- (defun vm-su-do-date (m)
- ! (let (date (case-fold-search t))
- (setq date (or (vm-get-header-contents m "Date") (vm-grok-From_-date m)))
- (cond
- ((null date)
-
-