From: "Satyaki Das" <satyakid@stanford.edu>
Subject: current-word and eldoc.el
Date: Sun, 13 Jul 2003 23:20:56 -0700 [thread overview]
Message-ID: <13365.1058163656@chicory.stanford.edu> (raw)
A recent change in semantics of the function current-word,
specifically the change mentioned in:
http://mail.gnu.org/archive/html/emacs-commit/2003-07/msg00108.html
breaks eldoc for all functions that have hyphens in the name. The
patch to eldoc.el at the end of this email fixes this.
An alternative could be to make the definition of current-word
backwards compatible with the old definition. That might avoid
similar problems else where.
Satyaki
Index: eldoc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/eldoc.el,v
retrieving revision 1.25
diff -u -r1.25 eldoc.el
--- eldoc.el 6 May 2003 17:36:16 -0000 1.25
+++ eldoc.el 14 Jul 2003 06:07:15 -0000
@@ -355,7 +355,7 @@
(let ((c (char-after (point))))
(and c
(memq (char-syntax c) '(?w ?_))
- (intern-soft (current-word)))))
+ (intern-soft (current-word nil t)))))
;; Do indirect function resolution if possible.
(defun eldoc-symbol-function (fsym)
reply other threads:[~2003-07-14 6:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13365.1058163656@chicory.stanford.edu \
--to=satyakid@stanford.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).