unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* current-word and eldoc.el
@ 2003-07-14  6:20 Satyaki Das
  0 siblings, 0 replies; only message in thread
From: Satyaki Das @ 2003-07-14  6:20 UTC (permalink / 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-14  6:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-14  6:20 current-word and eldoc.el Satyaki Das

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).