unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes
@ 2011-04-06  8:51 Stephen Berman
  2016-09-09  0:15 ` Alex
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Berman @ 2011-04-06  8:51 UTC (permalink / raw)
  To: 8432

1. emacs -Q
2. In *scratch* insert the following sexp:
   (dolist (e '(a b c))
     (message "Done")
     (message "Done")
     (message "Done"))
3. M-x turn-on-eldoc-mode
4. Putting point on (really, right after) the space after "dolist" makes
   the echo area display this:  
   dolist: ((VAR LIST [RESULT]) BODY...)
5. Move point one character to the right, onto (really, right after) the
   left parenthesis before "e".
   => Now "VAR" is highlighted in the echo area.  Move point one more
   character to the right and "VAR" is no longer highlighted (though
   point is now really on/after the argument VAR of dolist).  There is
   no highlighting as point moves further rightwards, until it is at the
   end of the line, right after the closing parenthesis of the argument
   list: now "VAR" is highlighted again.
6. Move point to column 0 of the first "message" sexp.
   => Now "LIST" is highlighted in the echo area.
7. Move point to column 0 of the second "message" sexp.
   => Now "[RESULT]" is highlighted in the echo area.
8. Move point to column 0 of the third "message" sexp.
   => Now "BODY" is highlighted in the echo area.

The same (mis)highlighting pattern arises with dotimes.


In GNU Emacs 24.0.50.1 (i686-suse-linux-gnu, GTK+ Version 2.20.1)
 of 2011-04-03 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10800000
configured using `configure  '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes
  2011-04-06  8:51 bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes Stephen Berman
@ 2016-09-09  0:15 ` Alex
  2020-08-16 10:26   ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2016-09-09  0:15 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 8432

found 8432 25.1
quit

Stephen Berman <stephen.berman@gmx.net> writes:

> 1. emacs -Q
> 2. In *scratch* insert the following sexp:
>    (dolist (e '(a b c))
>      (message "Done")
>      (message "Done")
>      (message "Done"))
> 3. M-x turn-on-eldoc-mode
> 4. Putting point on (really, right after) the space after "dolist" makes
>    the echo area display this:  
>    dolist: ((VAR LIST [RESULT]) BODY...)
> 5. Move point one character to the right, onto (really, right after) the
>    left parenthesis before "e".
>    => Now "VAR" is highlighted in the echo area.  Move point one more
>    character to the right and "VAR" is no longer highlighted (though
>    point is now really on/after the argument VAR of dolist).  There is
>    no highlighting as point moves further rightwards, until it is at the
>    end of the line, right after the closing parenthesis of the argument
>    list: now "VAR" is highlighted again.
> 6. Move point to column 0 of the first "message" sexp.
>    => Now "LIST" is highlighted in the echo area.
> 7. Move point to column 0 of the second "message" sexp.
>    => Now "[RESULT]" is highlighted in the echo area.
> 8. Move point to column 0 of the third "message" sexp.
>    => Now "BODY" is highlighted in the echo area.
>
> The same (mis)highlighting pattern arises with dotimes.

I can reproduce this in Emacs 25.1.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes
  2016-09-09  0:15 ` Alex
@ 2020-08-16 10:26   ` Stefan Kangas
  2020-10-03 23:52     ` Michael Heerdegen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2020-08-16 10:26 UTC (permalink / raw)
  To: Alex; +Cc: 8432, Stephen Berman

found 8432 28.0.50
thanks

Alex <agrambot@gmail.com> writes:

> found 8432 25.1
> quit
>
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> 1. emacs -Q
>> 2. In *scratch* insert the following sexp:
>>    (dolist (e '(a b c))
>>      (message "Done")
>>      (message "Done")
>>      (message "Done"))
>> 3. M-x turn-on-eldoc-mode
>> 4. Putting point on (really, right after) the space after "dolist" makes
>>    the echo area display this:
>>    dolist: ((VAR LIST [RESULT]) BODY...)
>> 5. Move point one character to the right, onto (really, right after) the
>>    left parenthesis before "e".
>>    => Now "VAR" is highlighted in the echo area.  Move point one more
>>    character to the right and "VAR" is no longer highlighted (though
>>    point is now really on/after the argument VAR of dolist).  There is
>>    no highlighting as point moves further rightwards, until it is at the
>>    end of the line, right after the closing parenthesis of the argument
>>    list: now "VAR" is highlighted again.
>> 6. Move point to column 0 of the first "message" sexp.
>>    => Now "LIST" is highlighted in the echo area.
>> 7. Move point to column 0 of the second "message" sexp.
>>    => Now "[RESULT]" is highlighted in the echo area.
>> 8. Move point to column 0 of the third "message" sexp.
>>    => Now "BODY" is highlighted in the echo area.
>>
>> The same (mis)highlighting pattern arises with dotimes.
>
> I can reproduce this in Emacs 25.1.

Still reproducible on current master.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes
  2020-08-16 10:26   ` Stefan Kangas
@ 2020-10-03 23:52     ` Michael Heerdegen
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2020-10-03 23:52 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 8432, Stephen Berman, Alex

Stefan Kangas <stefan@marxist.se> writes:

> Still reproducible on current master.

I guess the culprit is the same piece of code as in 27229 - the handling
of "..." args in `elisp--highlight-function-argument'.  It always cycles
the highlighted arg as it is correct for some cases, e.g. `setq'.

Michael.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-03 23:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06  8:51 bug#8432: 24.0.50; Eldoc highlighting is confused by dolist and dotimes Stephen Berman
2016-09-09  0:15 ` Alex
2020-08-16 10:26   ` Stefan Kangas
2020-10-03 23:52     ` Michael Heerdegen

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