diff options
| author | Sam Steingold | 2002-07-25 13:23:27 +0000 |
|---|---|---|
| committer | Sam Steingold | 2002-07-25 13:23:27 +0000 |
| commit | 65125928fe4a61ebd47ea9a113f46754c393d9e4 (patch) | |
| tree | ec827076e4bc20133d5cb3889f5383f30d8314d7 | |
| parent | a8adf791cadb1c16922d39738ac4e41f15140a83 (diff) | |
| download | emacs-65125928fe4a61ebd47ea9a113f46754c393d9e4.tar.gz emacs-65125928fe4a61ebd47ea9a113f46754c393d9e4.zip | |
(c-search-uplist-for-classkey): When `search-end' is a cons, use its car.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5d4c265b9c0..1892ce94b87 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-07-25 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/cc-engine.el (c-search-uplist-for-classkey): When | ||
| 4 | `search-end' is a cons, use its car. | ||
| 5 | |||
| 1 | 2002-07-25 Dave Love <fx@gnu.org> | 6 | 2002-07-25 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * obsolete/c-mode.el: Deleted. | 8 | * obsolete/c-mode.el: Deleted. |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 045556de180..3994c5cc22c 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -1794,10 +1794,11 @@ brace." | |||
| 1794 | search-end (nth 0 paren-state))) | 1794 | search-end (nth 0 paren-state))) |
| 1795 | ;; if search-end is nil, or if the search-end character isn't an | 1795 | ;; if search-end is nil, or if the search-end character isn't an |
| 1796 | ;; open brace, we are definitely not in a class | 1796 | ;; open brace, we are definitely not in a class |
| 1797 | (if (or (not search-end) | 1797 | (when (consp search-end) |
| 1798 | (< search-end (point-min)) | 1798 | (setq search-end (car search-end))) |
| 1799 | (not (eq (char-after search-end) ?{))) | 1799 | (unless (or (not search-end) |
| 1800 | nil | 1800 | (< search-end (point-min)) |
| 1801 | (not (eq (char-after search-end) ?{))) | ||
| 1801 | ;; now, we need to look more closely at search-start. if | 1802 | ;; now, we need to look more closely at search-start. if |
| 1802 | ;; search-start is nil, then our start boundary is really | 1803 | ;; search-start is nil, then our start boundary is really |
| 1803 | ;; point-min. | 1804 | ;; point-min. |