aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron S. Hawley2010-10-27 17:37:15 -0400
committerStefan Monnier2010-10-27 17:37:15 -0400
commitca39416c788ea47781f3ebb564d52df6fbf3af95 (patch)
treec96c51232ae4bd0ade00ca68cfc28dd1155b9cbf
parentaab705a2a898cae643b328d745410d844cf08e6e (diff)
downloademacs-ca39416c788ea47781f3ebb564d52df6fbf3af95.tar.gz
emacs-ca39416c788ea47781f3ebb564d52df6fbf3af95.zip
* add-log.el (find-change-log): Use derived-mode-p rather than
major-mode. Fixes: debbugs:7284
-rw-r--r--lisp/ChangeLog42
-rw-r--r--lisp/add-log.el4
2 files changed, 25 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1522e864a54..f41bd45cfd4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-10-27 Aaron S. Hawley <aaron.s.hawley@gmail.com>
2
3 * add-log.el (find-change-log): Use derived-mode-p rather than
4 major-mode (bug#7284).
5
12010-10-27 Glenn Morris <rgm@gnu.org> 62010-10-27 Glenn Morris <rgm@gnu.org>
2 7
3 * menu-bar.el (menu-bar-files-menu): Make it into an actual alias, 8 * menu-bar.el (menu-bar-files-menu): Make it into an actual alias,
@@ -9,13 +14,13 @@
9 auto-built for efficiency of execution and updating. 14 auto-built for efficiency of execution and updating.
10 (verilog-extended-complete-re): Support 'pure' fucntion & task 15 (verilog-extended-complete-re): Support 'pure' fucntion & task
11 declarations (these have no bodies). 16 declarations (these have no bodies).
12 (verilog-beg-of-statement): general cleanup to enable support of 17 (verilog-beg-of-statement): General cleanup to enable support of
13 'pure' fucntion & task declarations (these have no bodies). These 18 'pure' fucntion & task declarations (these have no bodies).
14 efforts together fix Verilog bug210 from veripool; which was also 19 These efforts together fix Verilog bug210 from veripool; which was also
15 noticed by Steve Pearlmutter. 20 noticed by Steve Pearlmutter.
16 (verilog-directive-re, verilog-directive-begin, verilog-indent-re) 21 (verilog-directive-re, verilog-directive-begin, verilog-indent-re)
17 (verilog-directive-nest-re, verilog-set-auto-endcomments): Support 22 (verilog-directive-nest-re, verilog-set-auto-endcomments):
18 `elsif. Reported by Shankar Giri. 23 Support `elsif. Reported by Shankar Giri.
19 (verilog-forward-ws&directives, verilog-in-attribute-p): Fixes for 24 (verilog-forward-ws&directives, verilog-in-attribute-p): Fixes for
20 attribute handling for lining up declarations and assignments. 25 attribute handling for lining up declarations and assignments.
21 (verilog-beg-of-statement-1): Fix issue where continued declaration 26 (verilog-beg-of-statement-1): Fix issue where continued declaration
@@ -23,8 +28,7 @@
23 (verilog-in-attribute-p, verilog-skip-backward-comments) 28 (verilog-in-attribute-p, verilog-skip-backward-comments)
24 (verilog-skip-forward-comment-p): Support proper treatment of 29 (verilog-skip-forward-comment-p): Support proper treatment of
25 attributes by indent code. Reported by Jeff Steele. 30 attributes by indent code. Reported by Jeff Steele.
26 (verilog-in-directive-p): Fix comment to correctly describe 31 (verilog-in-directive-p): Fix comment to correctly describe function.
27 function.
28 (verilog-backward-up-list, verilog-in-struct-region-p) 32 (verilog-backward-up-list, verilog-in-struct-region-p)
29 (verilog-backward-token, verilog-in-struct-p) 33 (verilog-backward-token, verilog-in-struct-p)
30 (verilog-in-coverage-p, verilog-do-indent) 34 (verilog-in-coverage-p, verilog-do-indent)
@@ -51,7 +55,7 @@
51 parameter in AUTOINSTPARAM. 55 parameter in AUTOINSTPARAM.
52 (verilog-read-always-signals-recurse, verilog-read-decls): Fix not 56 (verilog-read-always-signals-recurse, verilog-read-decls): Fix not
53 treating `elsif similar to `endif inside AUTOSENSE. 57 treating `elsif similar to `endif inside AUTOSENSE.
54 (verilog-do-indent): Implement correct automatic or static task or 58 (verilog-do-indent): Implement correct automatic or static task or
55 function end comment highlight. Reported by Steve Pearlmutter. 59 function end comment highlight. Reported by Steve Pearlmutter.
56 (verilog-font-lock-keywords-2): Fix highlighting of single 60 (verilog-font-lock-keywords-2): Fix highlighting of single
57 character pins, bug264. Reported by Michael Laajanen. 61 character pins, bug264. Reported by Michael Laajanen.
@@ -59,15 +63,15 @@
59 (verilog-read-sub-decls-in-interfaced, verilog-read-sub-decls-sig) 63 (verilog-read-sub-decls-in-interfaced, verilog-read-sub-decls-sig)
60 (verilog-subdecls-get-interfaced, verilog-subdecls-new): Support 64 (verilog-subdecls-get-interfaced, verilog-subdecls-new): Support
61 interfaces with AUTOINST, bug270. Reported by Luis Gutierrez. 65 interfaces with AUTOINST, bug270. Reported by Luis Gutierrez.
62 (verilog-pretty-expr): Fix interactive arguments, bug272. Reported 66 (verilog-pretty-expr): Fix interactive arguments, bug272.
63 by Mark Johnson. 67 Reported by Mark Johnson.
64 (verilog-auto-tieoff, verilog-auto-tieoff-ignore-regexp): Add 68 (verilog-auto-tieoff, verilog-auto-tieoff-ignore-regexp):
65 'verilog-auto-tieoff-ignore-regexp' for AUTOTIEOFF, 69 Add 'verilog-auto-tieoff-ignore-regexp' for AUTOTIEOFF,
66 bug269. Suggested by Gary Delp. 70 bug269. Suggested by Gary Delp.
67 (verilog-mode-map, verilog-preprocess, verilog-preprocess-history) 71 (verilog-mode-map, verilog-preprocess, verilog-preprocess-history)
68 (verilog-preprocessor, verilog-set-compile-command): Create 72 (verilog-preprocessor, verilog-set-compile-command):
69 verilog-preprocess and verilog-preprocessor to show preprocessed 73 Create verilog-preprocess and verilog-preprocessor to show
70 output. 74 preprocessed output.
71 (verilog-get-beg-of-line, verilog-get-end-of-line) 75 (verilog-get-beg-of-line, verilog-get-end-of-line)
72 (verilog-modi-file-or-buffer, verilog-modi-name) 76 (verilog-modi-file-or-buffer, verilog-modi-name)
73 (verilog-modi-point, verilog-within-string): Move defmacro's 77 (verilog-modi-point, verilog-within-string): Move defmacro's
@@ -115,16 +119,16 @@
115 (verilog-modi-lookup-last-current, verilog-modi-lookup-last-mod) 119 (verilog-modi-lookup-last-current, verilog-modi-lookup-last-mod)
116 (verilog-modi-lookup-last-modi, verilog-modi-lookup-last-tick): 120 (verilog-modi-lookup-last-modi, verilog-modi-lookup-last-tick):
117 Fix slow verilog-auto expansion on very large files. 121 Fix slow verilog-auto expansion on very large files.
118 (verilog-read-sub-decls-expr, verilog-read-sub-decls-line): Fix 122 (verilog-read-sub-decls-expr, verilog-read-sub-decls-line):
119 AUTOOUTPUT treating "1*2" as a signal name in submodule connection 123 Fix AUTOOUTPUT treating "1*2" as a signal name in submodule connection
120 "{1*2{...". Broke in last revision. 124 "{1*2{...". Broke in last revision.
121 (verilog-read-sub-decls-expr): Fix AUTOOUTPUT not detecting 125 (verilog-read-sub-decls-expr): Fix AUTOOUTPUT not detecting
122 submodule connections with replications "{#{a},#{b}}". 126 submodule connections with replications "{#{a},#{b}}".
123 127
1242010-10-23 Glenn Morris <rgm@gnu.org> 1282010-10-23 Glenn Morris <rgm@gnu.org>
125 129
126 * comint.el (comint-password-prompt-regexp): Match 130 * comint.el (comint-password-prompt-regexp):
127 "enter the password". (Bug#7224) 131 Match "enter the password". (Bug#7224)
128 132
1292010-10-22 Juanma Barranquero <lekktu@gmail.com> 1332010-10-22 Juanma Barranquero <lekktu@gmail.com>
130 134
diff --git a/lisp/add-log.el b/lisp/add-log.el
index ab99f6787c8..4fec68f4c02 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -701,7 +701,7 @@ current buffer to the complete file name.
701Optional arg BUFFER-FILE overrides `buffer-file-name'." 701Optional arg BUFFER-FILE overrides `buffer-file-name'."
702 ;; If we are called from a diff, first switch to the source buffer; 702 ;; If we are called from a diff, first switch to the source buffer;
703 ;; in order to respect buffer-local settings of change-log-default-name, etc. 703 ;; in order to respect buffer-local settings of change-log-default-name, etc.
704 (with-current-buffer (let ((buff (if (eq major-mode 'diff-mode) 704 (with-current-buffer (let ((buff (if (derived-mode-p 'diff-mode)
705 (car (ignore-errors 705 (car (ignore-errors
706 (diff-find-source-location)))))) 706 (diff-find-source-location))))))
707 (if (buffer-live-p buff) buff 707 (if (buffer-live-p buff) buff
@@ -1173,7 +1173,7 @@ Has a preference of looking backwards."
1173 ((apply 'derived-mode-p add-log-c-like-modes) 1173 ((apply 'derived-mode-p add-log-c-like-modes)
1174 (or (c-cpp-define-name) 1174 (or (c-cpp-define-name)
1175 (c-defun-name))) 1175 (c-defun-name)))
1176 ((memq major-mode add-log-tex-like-modes) 1176 ((apply #'derived-mode-p add-log-tex-like-modes)
1177 (if (re-search-backward 1177 (if (re-search-backward
1178 "\\\\\\(sub\\)*\\(section\\|paragraph\\|chapter\\)" 1178 "\\\\\\(sub\\)*\\(section\\|paragraph\\|chapter\\)"
1179 nil t) 1179 nil t)