GNU bug report logs - #6321
24.0.50; eldoc-documentation-function only called when changing line

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tassilo <at> member.fsf.org>

Date: Mon, 31 May 2010 12:33:02 UTC

Severity: normal

Merged with 6265

Found in version 24.0.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#6321: 24.0.50; eldoc-documentation-function only called when changing line
Date: Tue, 01 Jun 2010 14:29:20 +0200
See also bug#6265 that is related or the same.

Štěpán Němec <stepnem <at> gmail.com> writes:

> Tassilo Horn <tassilo <at> member.fsf.org> writes:
>
>> In a home-brewn language mode, I use the eldoc facilties.
>>
>> (defun tg-documentation-function ()
>>   (message "Called!")
>>   (let ((thing (thing-at-point 'sexp)))
>>     (if (string= thing tg--last-thing)
>>         tg--last-doc
>>       (setq tg--last-thing thing)
>>       (let ((eid (tg-edge-p))
>>             (vid (tg-vertex-p)))
>>         (cond
>>          ((tg-incidence-list-p)
>>           (tg-eldoc-incidence))
>>          (eid
>>           (tg-eldoc-vertex-or-edge-at-point 'EdgeClass))
>>          (vid
>>           (tg-eldoc-vertex-or-edge-at-point 'VertexClass))
>>          (t
>>           (setq tg--last-doc nil))))
>>       tg--last-doc)))
>>
>> (defun tg-eldoc-init ()
>>   (set (make-local-variable 'eldoc-documentation-function)
>>        'tg-documentation-function)
>>   (add-hook 'after-save-hook
>>             'tg-init-schema nil t)
>>   (tg-init-schema))
>>
>> This worked very nice some time ago, but now my documentation function
>> is only called if point changes the line, but not on point movement on
>> the current line.
>
> An idea: did you check that `eldoc-message-commands' contains the
> commands after which you expect Eldoc to show the info? Maybe the recent
> bidi changes could affect this (i.e., some commands were renamed IIRC)?
>
>
>      Štěpán
>
>
>
>

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/





This bug report was last modified 15 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.