]> code.delx.au - gnu-emacs/commitdiff
(Buffer-menu-save): Fix the test for header line.
authorRichard M. Stallman <rms@gnu.org>
Thu, 16 Feb 1995 05:58:37 +0000 (05:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 16 Feb 1995 05:58:37 +0000 (05:58 +0000)
lisp/buff-menu.el

index a33f72a7fcc7e378e2a537df966c7b482e1a6176..32ae224c1c3c5a87fef0fff7a9d02d1f62909b89 100644 (file)
@@ -265,10 +265,10 @@ and then move up one line.  Prefix arg means move that many lines."
   "Mark buffer on this line to be saved by \\<Buffer-menu-mode-map>\\[Buffer-menu-execute] command."
   (interactive)
   (beginning-of-line)
-  (forward-char 1)
   (if (looking-at " [-M]")             ;header lines
       (ding)
     (let ((buffer-read-only nil))
+      (forward-char 1)
       (delete-char 1)
       (insert ?S)
       (forward-line 1))))