bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Autosave fails for narrowed buffers, particularly RMAIL


From: James A. Bednar
Subject: Re: Autosave fails for narrowed buffers, particularly RMAIL
Date: Wed, 3 Jan 2001 17:03:03 -0600 (CST)

|  Cc: eliz@is.elta.co.il, bug-gnu-emacs@gnu.org, rmoody@cinti.net
|  From: Dave Love <d.love@dl.ac.uk>
|  Date: 03 Jan 2001 20:45:46 +0000
|  
|  For what it's worth, I'm fairly sure that I and/or Greg Woods fixed
|  the RMIME problem with autosaving and narrowing and posted patches at
|  some stage, but I'm afraid I can't find them.

Yes, I just found a patch that you posted in 1996 (attached), and it
seems to fix the problem.  Thanks!  It would be nice if somehow Ray
Moody could integrate this into the current release of rmime.el at
http://www.cinti.net:2000/~rmoody/rmime/rmime.el , since I guess the
problem has been annoying people for 5 years now :-/.

Jim

-------------------------------------------------------------------------------
FROM: Dave Love
DATE: 11/01/1996 15:59:04
SUBJECT: RE:  folding.el 2.0 and rmime.el 1.2: Autosaving...error
 
Try this.  It was sent to the author but I don`t think there`s been a
new version.

--- rmime.el~   Wed Oct  2 00:39:41 1996
+++ rmime.el    Wed Oct  2 15:44:09 1996
@@ -29,12 +29,18 @@
 ;;     (add-hook `mh-show-mode-hook `rmime-format)
 ;;     (autoload `rmime-format "rmime" "" nil)
 ;;
-;; To use this file with VM, add the following to your .emacs file:
+;; To use this file with VM, add the following to your .emacs (or .vm) file:
 ;;
 ;;     (setq vm-preview-lines t)
 ;;     (add-hook `vm-select-message-hook `rmime-format)
 ;;     (autoload `rmime-format "rmime" "" nil)
 ;;
+;; To use this file with Gnus (at least version 5.2 and up), add the
+;; following to your .emacs (or .gnus) file:
+;;
+;;     (add-hook `gnus-article-display-hook `rmime-format)
+;;     (autoload `rmime-format "rmime" "" nil)
+;;
 ;; To use this file manually, add the following to your .emacs file:
 ;;
 ;;     (autoload `rmime-mode   "rmime" "" t)
@@ -742,9 +748,11 @@
 ;; string to identify raw MIME as such.
 (defun rmime-annotate (start end)
   (if (integer-or-marker-p start)      ; in case of (write-region "string" ...)
-       (if (identity rmime-clean-files)
-          (rmime-annotate-cleanly start end)
-        (rmime-annotate-quickly start end))))
+      (save-restriction
+       (widen)
+       (if (identity rmime-clean-files)
+           (rmime-annotate-cleanly start end)
+         (rmime-annotate-quickly start end)))))
 
 ;; This function cleans formatted MIME and inserts raw MIME during a
 ;; buffer save.




reply via email to

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