diff options
| author | Leo Liu | 2014-08-13 11:21:43 +0800 |
|---|---|---|
| committer | Leo Liu | 2014-08-13 11:21:43 +0800 |
| commit | e131e4ffae3b2b31906c9b73ed5e7a621ccfa7c9 (patch) | |
| tree | 1db5a6a17962fd8fff74603fe04fd429c2aab6d2 | |
| parent | 2b0cb8b177eff6a4aaf14f5c728be3f22aa4b75e (diff) | |
| download | emacs-e131e4ffae3b2b31906c9b73ed5e7a621ccfa7c9.tar.gz emacs-e131e4ffae3b2b31906c9b73ed5e7a621ccfa7c9.zip | |
* speedbar.el (speedbar-generic-list-tag-p): Allow special
elements from imenu.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/speedbar.el | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a878b936e66..0e4a59b8374 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-08-13 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * speedbar.el (speedbar-generic-list-tag-p): Allow special | ||
| 4 | elements from imenu. | ||
| 5 | |||
| 1 | 2014-08-11 Glenn Morris <rgm@gnu.org> | 6 | 2014-08-11 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual. | 8 | * subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual. |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 084767893e4..68970407247 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -2123,9 +2123,10 @@ cell of the form ( 'DIRLIST . 'FILELIST )." | |||
| 2123 | ;; in order to make it look nice. | 2123 | ;; in order to make it look nice. |
| 2124 | ;; | 2124 | ;; |
| 2125 | ;; A generic list is of the form: | 2125 | ;; A generic list is of the form: |
| 2126 | ;; ( ("name" . marker-or-number) <-- one tag at this level | 2126 | ;; ( ("name" . marker-or-number) <-- one tag at this level |
| 2127 | ;; ("name" ("name" . mon) ("name" . mon) ) <-- one group of tags | 2127 | ;; ("name" marker-or-number goto-fun . args) <-- one tag at this level |
| 2128 | ;; ("name" mon ("name" . mon) ) <-- group w/ a position and tags | 2128 | ;; ("name" ("name" . mon) ("name" . mon) ) <-- one group of tags |
| 2129 | ;; ("name" mon ("name" . mon) ) <-- group w/ a position and tags | ||
| 2129 | (defun speedbar-generic-list-group-p (sublst) | 2130 | (defun speedbar-generic-list-group-p (sublst) |
| 2130 | "Non-nil if SUBLST is a group. | 2131 | "Non-nil if SUBLST is a group. |
| 2131 | Groups may optionally contain a position." | 2132 | Groups may optionally contain a position." |
| @@ -2156,6 +2157,8 @@ Groups may optionally contain a position." | |||
| 2156 | (and (stringp (car-safe sublst)) | 2157 | (and (stringp (car-safe sublst)) |
| 2157 | (or (and (number-or-marker-p (cdr-safe sublst)) | 2158 | (or (and (number-or-marker-p (cdr-safe sublst)) |
| 2158 | (not (cdr-safe (cdr-safe sublst)))) | 2159 | (not (cdr-safe (cdr-safe sublst)))) |
| 2160 | (ignore-errors (and (number-or-marker-p (nth 1 sublst)) | ||
| 2161 | (functionp (nth 2 sublst)))) | ||
| 2159 | ;; For semantic/bovine items, this is needed | 2162 | ;; For semantic/bovine items, this is needed |
| 2160 | (symbolp (car-safe (cdr-safe sublst)))) | 2163 | (symbolp (car-safe (cdr-safe sublst)))) |
| 2161 | )) | 2164 | )) |