GNU bug report logs -
#14546
24.3.50; semantic/bovine/el.el + return value of `which-function'
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Mon, 3 Jun 2013 06:12:01 UTC
Severity: normal
Found in version 24.3.50
Done: Jambunathan K <kjambunathan <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14546 in the body.
You can then email your comments to 14546 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14546
; Package
emacs
.
(Mon, 03 Jun 2013 06:12:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 03 Jun 2013 06:12:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I see that when Emacs lisp files are parsed by semantic, the return
value of `which-function' has extra decorations.
1. Put the below snippet in your .emacs
2. emacs -Q
3. Examine *Messages* buffer. You will see
{declare-function}
(find-file)
The `{}' and `()' are what I call decorations.
4. Comment `load-library' line in .emacs. Restart emacs.
5. You will see
;; null-device
;; find-file
Semantic intelligently identifies the `declare-function' rightly while
Emacs naively identifies a preceding `defvar'. (Thumbs up for semantic
parsing)
But, please clarify how to interpret the extra decorations (or remove
them if they are spurious).
--8<---------------cut here---------------start------------->8---
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(semantic-mode t)
'(which-function-mode t))
(load-library "semantic/bovine/el.el")
(find-library "files.el")
(re-search-forward "declare-function")
(forward-char 5)
(message (which-function))
(find-function 'find-file)
(forward-line 1)
(message (which-function))
(view-echo-area-messages)
--8<---------------cut here---------------end--------------->8---
In GNU Emacs 24.3.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
of 2013-06-03 on debian-6.05
Bzr revision: 112824 rgm <at> gnu.org-20130602182638-wbn53t13ukjyzxq5
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
value of $LANG: en_IN
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: t
Reply sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
You have taken responsibility.
(Fri, 15 Nov 2013 03:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 15 Nov 2013 03:57:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 14546-done <at> debbugs.gnu.org (full text, mbox):
If this is problematic for someone, he will report it. So closing it.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 13 Dec 2013 12:24:16 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 193 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.