emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/indent.el,v [EMACS_22_BASE]


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/indent.el,v [EMACS_22_BASE]
Date: Wed, 24 Oct 2007 08:10:58 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Richard M. Stallman <rms>       07/10/24 08:10:57

Index: indent.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/indent.el,v
retrieving revision 1.66.2.1
retrieving revision 1.66.2.2
diff -u -b -r1.66.2.1 -r1.66.2.2
--- indent.el   25 Jul 2007 04:47:17 -0000      1.66.2.1
+++ indent.el   24 Oct 2007 08:10:57 -0000      1.66.2.2
@@ -184,7 +184,12 @@
 ;; used in Fundamental Mode, Text Mode, etc.
 (defun indent-to-left-margin ()
   "Indent current line to the column given by `current-left-margin'."
-  (indent-line-to (current-left-margin)))
+  (save-excursion (indent-line-to (current-left-margin)))
+  ;; If we are within the indentation, move past it.
+  (when (save-excursion
+         (skip-chars-backward " \t")
+         (bolp))
+    (skip-chars-forward " \t")))
 
 (defun delete-to-left-margin (&optional from to)
   "Remove left margin indentation from a region.




reply via email to

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