emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-cmds.el


From: Martin Stjernholm
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-cmds.el
Date: Tue, 26 Aug 2003 07:50:04 -0400

Index: emacs/lisp/progmodes/cc-cmds.el
diff -c emacs/lisp/progmodes/cc-cmds.el:1.31 
emacs/lisp/progmodes/cc-cmds.el:1.32
*** emacs/lisp/progmodes/cc-cmds.el:1.31        Thu Jul  3 08:30:59 2003
--- emacs/lisp/progmodes/cc-cmds.el     Tue Aug 26 07:50:03 2003
***************
*** 498,507 ****
        (when (save-excursion
                (skip-chars-backward " \t")
                (not (bolp)))
-         (setq delete-temp-newline
-               (list (point-marker)))
          (c-newline-and-indent)
!         (setcdr delete-temp-newline (point-marker)))
        (unwind-protect
            (progn
              (if (eq last-command-char ?{)
--- 498,516 ----
        (when (save-excursion
                (skip-chars-backward " \t")
                (not (bolp)))
          (c-newline-and-indent)
!         ;; Set markers around the newline and indention inserted
!         ;; above.  We insert the start marker here and not before
!         ;; the call to kludge around a misfeature in expand-abbrev:
!         ;; If the line contains e.g. "else" then expand-abbrev will
!         ;; be called when c-newline-and-indent inserts the newline.
!         ;; That function first removes the abbrev "else" and then
!         ;; inserts the expansion, which is an identical "else" in
!         ;; this case.  So the marker that we put after "else" would
!         ;; end up before it.
!         (setq delete-temp-newline
!               (cons (copy-marker (c-point 'eopl) t)
!                     (point-marker))))
        (unwind-protect
            (progn
              (if (eq last-command-char ?{)




reply via email to

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