GNU bug report logs - #57483
28.1.91; expand hl-line-mode to highlight-line-mode for readability

Previous Next

Package: emacs;

Reported by: Van Ly <van.ly <at> sdf.org>

Date: Tue, 30 Aug 2022 07:29:02 UTC

Severity: normal

Found in version 28.1.91

To reply to this bug, email your comments to 57483 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 07:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Van Ly <van.ly <at> sdf.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Aug 2022 07:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> sdf.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.1.91; expand hl-line-mode to highlight-line-mode for
 readability
Date: Tue, 30 Aug 2022 07:23:14 +0000 (UTC)
[Message part 1 (text/plain, inline)]
The sequence "hl" is easy to type but recalling its function after not
using  it a  while  takes  effort.  Seeing  "Hl-Line  mode enabled  in
current buffer" also takes effort to read.

In the spirit of "display-line-numbers-mode" can "highlight-line-mode"
be the full expansion for feedback and the expansion to "hl"?

Steps to reproduce
 . start "emacs -Q"
 . type three lines of "q"
 . on the middle line type "M-x hl" and TAB to use the completion

An improvement from my point of view
 . on the middle line type "hl" and TAB to use the completion
 . the completion expands what was "hl-line-mode" to "highlight-line-mode"
[bug-gnu-emacs.text (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 10:36:02 GMT) Full text and rfc822 format available.

Message #8 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Van Ly <van.ly <at> sdf.org>
Cc: 57483 <at> debbugs.gnu.org
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 12:35:24 +0200
Van Ly <van.ly <at> sdf.org> writes:

> The sequence "hl" is easy to type but recalling its function after not
> using  it a  while  takes  effort.  Seeing  "Hl-Line  mode enabled  in
> current buffer" also takes effort to read.
>
> In the spirit of "display-line-numbers-mode" can "highlight-line-mode"
> be the full expansion for feedback and the expansion to "hl"?
>
> Steps to reproduce
>  . start "emacs -Q"
>  . type three lines of "q"
>  . on the middle line type "M-x hl" and TAB to use the completion
>
> An improvement from my point of view
>  . on the middle line type "hl" and TAB to use the completion
>  . the completion expands what was "hl-line-mode" to "highlight-line-mode"

We could consider renaming hl-line-mode to highlight-line-mode, I guess?
Anybody have any opinions?

But I don't think completing hl to highlight-line-mode would make much
sense, even if it was possible, because nobody would be typing `M-x hl
TAB' in the first place without knowing that the mode was called
`hl-line-mode'.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 11:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> sdf.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57483 <at> debbugs.gnu.org
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 11:40:02 +0000 (UTC)
On Tue, 30 Aug 2022, Lars Ingebrigtsen wrote:

>
> But I don't think completing hl to highlight-line-mode would make much
> sense, even if it was possible, because nobody would be typing `M-x hl
> TAB' in the first place without knowing that the mode was called
> `hl-line-mode'.
>

When I have my muddled together emacs configuration not running 
from "emacs -Q" the following shows


 M-x hl
 hl-line-mode
 hi-lock-mode
 holiday-list
 ...

true, I don't use "M-x hl TAB" but "M-x hl C-j" to take the option 
at top of the listing.  I think more sense is gained from

 M-x hl
 highlight-line-mode
 ...





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 12:03:03 GMT) Full text and rfc822 format available.

Message #14 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57483 <at> debbugs.gnu.org, van.ly <at> sdf.org
Subject: Re: bug#57483: 28.1.91;
 expand hl-line-mode to highlight-line-mode for readability
Date: Tue, 30 Aug 2022 15:03:16 +0300
> Cc: 57483 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Tue, 30 Aug 2022 12:35:24 +0200
> 
> We could consider renaming hl-line-mode to highlight-line-mode, I guess?
> Anybody have any opinions?

We cannot rename such a veteran mode.  But we can add an alias.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 12:23:01 GMT) Full text and rfc822 format available.

Message #17 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57483 <at> debbugs.gnu.org, van.ly <at> sdf.org
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 14:22:14 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> We cannot rename such a veteran mode.  But we can add an alias.

I was thinking of renaming it and adding hl-line-mode as an alias.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 12:42:02 GMT) Full text and rfc822 format available.

Message #20 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57483 <at> debbugs.gnu.org, van.ly <at> sdf.org
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 14:41:02 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I was thinking of renaming it and adding hl-line-mode as an alias.

On the other hand, there's a gazillion user options and stuff called
`hl-*', so perhaps doing it the other way around makes more sense.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 12:50:02 GMT) Full text and rfc822 format available.

Message #23 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57483 <at> debbugs.gnu.org, van.ly <at> sdf.org
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 15:49:32 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: van.ly <at> sdf.org,  57483 <at> debbugs.gnu.org
> Date: Tue, 30 Aug 2022 14:22:14 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > We cannot rename such a veteran mode.  But we can add an alias.
> 
> I was thinking of renaming it and adding hl-line-mode as an alias.

That's okay, of course.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57483; Package emacs. (Tue, 30 Aug 2022 13:37:01 GMT) Full text and rfc822 format available.

Message #26 received at 57483 <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> sdf.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57483 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#57483: 28.1.91; expand hl-line-mode to highlight-line-mode
 for readability
Date: Tue, 30 Aug 2022 13:35:58 +0000 (UTC)
On Tue, 30 Aug 2022, Eli Zaretskii wrote:

>> Cc: 57483 <at> debbugs.gnu.org
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Date: Tue, 30 Aug 2022 12:35:24 +0200
>>
>> We could consider renaming hl-line-mode to highlight-line-mode, I guess?
>> Anybody have any opinions?
>
> We cannot rename such a veteran mode.  But we can add an alias.
>

Also, with emacs  customized the way that works for  me, the following
happens to "M-x hl TAB"

  M-x hl TAB
  [listing changes unexpectedly]
  M-x h-l
  flush-lines
  LaTeX-math-lg
  LaTeX-math-ll
  ...

What triggered me to file this bug is this chicken and egg problem.

I want to  activate "highlight line" mode but my  short term memory at
the finger  tips has  forgotten "hl"  at the  "M-x hl  C-j".  So  I go
typing "M-x  highlight" but  the generated  listing doesn't  fetch the
unavailable  "hl-line-mode"  which  I  very  much  prefer  to  see  as
"highlight-line-mode".




This bug report was last modified 2 years and 346 days ago.

Previous Next


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