aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2011-02-03 19:21:11 -0800
committerGlenn Morris2011-02-03 19:21:11 -0800
commit9783df21c07728e68b59d380052ed9014f299f17 (patch)
treedff248275a35ec66c8b5714daf1cd50188f9855b /lisp
parentd436de979a7d9879aaf65d8830770f8718a40a71 (diff)
downloademacs-9783df21c07728e68b59d380052ed9014f299f17.tar.gz
emacs-9783df21c07728e68b59d380052ed9014f299f17.zip
f90.el fix for bug#7919.
* lisp/progmodes/f90.el (f90-find-tag-default): New function. (f90-mode): Use it for mode's `find-tag-default-function' property.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/f90.el10
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b0e901c293a..58d30fc5007 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-02-04 Glenn Morris <rgm@gnu.org>
2
3 * progmodes/f90.el (f90-find-tag-default): New function. (Bug#7919)
4 (f90-mode): Use it for mode's `find-tag-default-function' property.
5
12011-02-03 Glenn Morris <rgm@gnu.org> 62011-02-03 Glenn Morris <rgm@gnu.org>
2 7
3 * ibuf-ext.el (ibuffer-filter-disable): Make it work. (Bug#7969) 8 * ibuf-ext.el (ibuffer-filter-disable): Make it work. (Bug#7969)
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index a4a986bd4aa..afdd2f2e1b7 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -2205,6 +2205,16 @@ CHANGE-WORD should be one of 'upcase-word, 'downcase-word, 'capitalize-word."
2205 (save-excursion 2205 (save-excursion
2206 (nth 1 (f90-beginning-of-subprogram)))) 2206 (nth 1 (f90-beginning-of-subprogram))))
2207 2207
2208(defun f90-find-tag-default ()
2209 "Function to use for `find-tag-default-function' property in F90 mode."
2210 (let ((tag (find-tag-default)))
2211 (or (and tag
2212 ;; See bug#7919. TODO I imagine there are other cases...?
2213 (string-match "%\\(.+\\)" tag)
2214 (match-string-no-properties 1 tag))
2215 tag)))
2216
2217(put 'f90-mode 'find-tag-default-function 'f90-find-tag-default)
2208 2218
2209(defun f90-backslash-not-special (&optional all) 2219(defun f90-backslash-not-special (&optional all)
2210 "Make the backslash character (\\) be non-special in the current buffer. 2220 "Make the backslash character (\\) be non-special in the current buffer.