[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18048: 24.3.92; [patch] eldoc improvements

From: Stefan Monnier
Subject: bug#18048: 24.3.92; [patch] eldoc improvements
Date: Fri, 18 Jul 2014 23:07:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> (defun foo (&rest args)
>   "Eval each ARG in ARGS like setq"
>   [...])
> (put 'foo 'eldoc "([VAR VALUE]...)")

You can use

   (defun foo (&rest args)
     "Eval each ARG in ARGS like setq.

   (fn [VAR VALUE]...)"


> 2) Better handling of "..." in eldoc highlighting:
> Actually when using `setq', highlighting is correct when setting one
> symbol: 
> (setq foo 1)
> When cursor is on foo we have in eldoc: (setq ([SYM VAL]...))
>                                                ^^^^ 
> And when cursor is on 1 (setq ([SYM VAL]...))
>                                     ^^^^^^^
> When setting more than one symbol e.g
> (setq foo 1 bar 2)
> After 1 eldoc highlighting stay on second arg:
> (setq ([SYM VAL]...))
>             ^^^^^^^
> With this patch highlighting come back on first arg (SYM)

This part looks OK, feel free to install into trunk.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]