diff options
| author | Alan Mackenzie | 2014-05-30 17:06:53 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2014-05-30 17:06:53 +0000 |
| commit | 9155e80d790aa289f0613ebb3e6d6ba647127bc9 (patch) | |
| tree | 2e22892e8fbc897602a18a31adc263497d1d31e0 | |
| parent | a084532342d401455a818a1132d4aa1bc58a0d69 (diff) | |
| download | emacs-9155e80d790aa289f0613ebb3e6d6ba647127bc9.tar.gz emacs-9155e80d790aa289f0613ebb3e6d6ba647127bc9.zip | |
Guard (looking-at "\\s!") from XEmacs.
progmodes/cc-engine.el (c-state-pp-to-literal): add guard form.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eeca63a1bc9..9e1ccb26270 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-30 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | Guard (looking-at "\\s!") from XEmacs. | ||
| 4 | * progmodes/cc-engine.el (c-state-pp-to-literal): add guard form. | ||
| 5 | |||
| 1 | 2014-05-30 Ken Olum <kdo@cosmos.phy.tufts.edu> (tiny change) | 6 | 2014-05-30 Ken Olum <kdo@cosmos.phy.tufts.edu> (tiny change) |
| 2 | 7 | ||
| 3 | * mail/rmail.el (rmail-delete-forward, rmail-delete-backward): The | 8 | * mail/rmail.el (rmail-delete-forward, rmail-delete-backward): The |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index f86e4b2c48a..6b406b0d89c 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -2219,7 +2219,8 @@ comment at the start of cc-engine.el for more info." | |||
| 2219 | ((and (not not-in-delimiter) ; inside a comment starter | 2219 | ((and (not not-in-delimiter) ; inside a comment starter |
| 2220 | (not (bobp)) | 2220 | (not (bobp)) |
| 2221 | (progn (backward-char) | 2221 | (progn (backward-char) |
| 2222 | (and (not (looking-at "\\s!")) | 2222 | (and (not (and (memq 'category-properties c-emacs-features) |
| 2223 | (looking-at "\\s!"))) | ||
| 2223 | (looking-at c-comment-start-regexp)))) | 2224 | (looking-at c-comment-start-regexp)))) |
| 2224 | (setq ty (if (looking-at c-block-comment-start-regexp) 'c 'c++) | 2225 | (setq ty (if (looking-at c-block-comment-start-regexp) 'c 'c++) |
| 2225 | co-st (point)) | 2226 | co-st (point)) |