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

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

Re: Emacs doesn't preserve the file access permission.


From: Eric Hanchrow
Subject: Re: Emacs doesn't preserve the file access permission.
Date: Sun, 02 Jan 2005 17:15:45 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3.50 (gnu/linux)

I think this fixes it:

@@ -3235,11 +3237,13 @@
 ;; but inhibited if one of write-file-functions returns non-nil.
 ;; It returns a value (MODES . BACKUPNAME), like backup-buffer.
 (defun basic-save-buffer-1 ()
+  (let ((return-value
   (if save-buffer-coding-system
       (let ((coding-system-for-write save-buffer-coding-system))
        (basic-save-buffer-2))
-    (basic-save-buffer-2))
-  (setq explicit-buffer-file-coding-system last-coding-system-used))
+           (basic-save-buffer-2))))
+    (setq explicit-buffer-file-coding-system last-coding-system-used)
+    return-value))

-- 
I ... don't want programming to be "really interesting" any more than
I want my toaster to be "really interesting".  I want my toaster to
get the job done and I do not want to hear about exciting new
tungesten alloys in the heating wires nor do I want to subscribe to
Toaster Today magazine.

        -- Daniel Weinreb <address@hidden>, ll1 mailing list





reply via email to

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