[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
current-word and eldoc.el
From: |
Satyaki Das |
Subject: |
current-word and eldoc.el |
Date: |
Sun, 13 Jul 2003 23:20:56 -0700 |
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- current-word and eldoc.el,
Satyaki Das <=