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

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

Re: reindent-then-newline-and-indent doesn't indent properly in emacs 22


From: Richard Stallman
Subject: Re: reindent-then-newline-and-indent doesn't indent properly in emacs 22.1
Date: Sun, 14 Oct 2007 21:37:44 -0400

Does this version fix the bug?

(defun indent-to-left-margin ()
  "Indent current line to the column given by `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))
    (beginning-of-line)
    (skip-chars-forward " \t")))




reply via email to

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