aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2008-02-20 22:18:28 +0000
committerAlan Mackenzie2008-02-20 22:18:28 +0000
commitf8016ed60d08279edcbe91f9642a7d40bae89b28 (patch)
treea89f00f170dda6cfcf6faccec3146e81d4343730
parent9af4d32114cd89a5e6c2d750ecc30a2d3db880bd (diff)
downloademacs-f8016ed60d08279edcbe91f9642a7d40bae89b28.tar.gz
emacs-f8016ed60d08279edcbe91f9642a7d40bae89b28.zip
(c-extend-region-for-CPP): always set c-old-EOM.
-rw-r--r--lisp/progmodes/cc-mode.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 6f184a399f9..9a1a66010b1 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -767,8 +767,8 @@ Note that the style variables are always made local to the buffer."
767(make-variable-buffer-local 'c-old-EOM) 767(make-variable-buffer-local 'c-old-EOM)
768 768
769(defun c-extend-region-for-CPP (beg end) 769(defun c-extend-region-for-CPP (beg end)
770 ;; If either BEG or END is inside a preprocessor (logical) line, set 770 ;; Set c-old-BOM or c-old-EOM respectively to BEG, END, each extended to the
771 ;; c-old-BOM or c-ole-EOM respectively to the beginning/end of the line. 771 ;; beginning/end of any preprocessor construct they may be in.
772 ;; 772 ;;
773 ;; Point is undefined both before and after this function call; the buffer 773 ;; Point is undefined both before and after this function call; the buffer
774 ;; has already been widened, and match-data saved. The return value is 774 ;; has already been widened, and match-data saved. The return value is
@@ -782,9 +782,9 @@ Note that the style variables are always made local to the buffer."
782 (setq c-old-BOM (point)) 782 (setq c-old-BOM (point))
783 783
784 (goto-char end) 784 (goto-char end)
785 (when (c-beginning-of-macro) 785 (if (c-beginning-of-macro)
786 (c-end-of-macro) 786 (c-end-of-macro))
787 (setq c-old-EOM (point)))) 787 (setq c-old-EOM (point)))
788 788
789(defun c-neutralize-CPP-line (beg end) 789(defun c-neutralize-CPP-line (beg end)
790 ;; BEG and END bound a preprocessor line. Put a "punctuation" syntax-table 790 ;; BEG and END bound a preprocessor line. Put a "punctuation" syntax-table