GNU bug report logs - #24721
25.1; Reverse the order of `isearch-message-prefix' prefixes from function advice property

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 17 Oct 2016 22:18:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24721 in the body.
You can then email your comments to 24721 AT debbugs.gnu.org in the normal way.

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#24721; Package emacs. (Mon, 17 Oct 2016 22:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Oct 2016 22:18:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; Reverse the order of `isearch-message-prefix' prefixes from
 function advice property
Date: Mon, 17 Oct 2016 15:16:50 -0700 (PDT)
When there is multiple advice (from `add-function') of
`isearch-filter-predicate' that has property `isearch-message-prefix',
these prefixes are currently shown left to right in the Isearch prompt,
with the first added being on the left and the last added being on the
right.

I think this is backwards from what a user expects.  I've reversed the
order in my own copy, and I think it is more helpful: The first one you
see is the latest applied.  Entries are added and removed on the left,
not the right.  The most important such prefix is typically the last
one applied, and having it on the left makes it more noticeable (IMO).

If you agree, all that's required is changing, in the
`isearch-message-prefix' code, (concat np prefix) to (concat prefix np).


In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-09-17
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --without-compress-install CFLAGS=-static'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Tue, 18 Oct 2016 20:31:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 24721 <at> debbugs.gnu.org
Subject: Re: bug#24721: 25.1;
 Reverse the order of `isearch-message-prefix' prefixes from function
 advice property
Date: Tue, 18 Oct 2016 23:23:33 +0300
> When there is multiple advice (from `add-function') of
> `isearch-filter-predicate' that has property `isearch-message-prefix',
> these prefixes are currently shown left to right in the Isearch prompt,
> with the first added being on the left and the last added being on the
> right.
>
> I think this is backwards from what a user expects.  I've reversed the
> order in my own copy, and I think it is more helpful: The first one you
> see is the latest applied.  Entries are added and removed on the left,
> not the right.  The most important such prefix is typically the last
> one applied, and having it on the left makes it more noticeable (IMO).

"Adjectives in English absolutely have to be in this order:
opinion-size-age-shape-colour-origin-material-purpose Noun.
So you can have a lovely little old rectangular green French
silver whittling knife." - an excerpt from a book called
"The Elements of Eloquence" by Mark Forsyth.
http://languagelog.ldc.upenn.edu/nll/?p=27890

Does a similar natural order exist for Isearch, so prefixes
absolutely have to be in the order "overwrapped regexp I-search",
but not "regexp overwrapped I-search"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Tue, 18 Oct 2016 20:50:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 24721 <at> debbugs.gnu.org
Subject: RE: bug#24721: 25.1; Reverse the order of `isearch-message-prefix'
 prefixes from function advice property
Date: Tue, 18 Oct 2016 13:49:12 -0700 (PDT)
> > When there is multiple advice (from `add-function') of
> > `isearch-filter-predicate' that has property `isearch-message-prefix',
> > these prefixes are currently shown left to right in the Isearch prompt,
> > with the first added being on the left and the last added being on the
> > right.
> >
> > I think this is backwards from what a user expects.  I've reversed the
> > order in my own copy, and I think it is more helpful: The first one you
> > see is the latest applied.  Entries are added and removed on the left,
> > not the right.  The most important such prefix is typically the last
> > one applied, and having it on the left makes it more noticeable (IMO).
> 
> "Adjectives in English absolutely have to be in this order:
> opinion-size-age-shape-colour-origin-material-purpose Noun.
> So you can have a lovely little old rectangular green French
> silver whittling knife." - an excerpt from a book called
> "The Elements of Eloquence" by Mark Forsyth.
> http://languagelog.ldc.upenn.edu/nll/?p=27890

We can discuss whether that is nonsense. ;-)
But it is anyway 100% irrelevant here.

> Does a similar natural order exist for Isearch, so prefixes
> absolutely have to be in the order "overwrapped regexp I-search",
> but not "regexp overwrapped I-search"?

Not IMHO.

And the only order that makes sense for multiple predicate filters
is the order of application.

People can disagree, however, about how the sequence of filter
applications should be shown: left-to-right or right-to-left.

Mine is just one opinion.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Tue, 18 Oct 2016 23:03:02 GMT) Full text and rfc822 format available.

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

From: Clément Pit--Claudel <clement.pit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#24721: 25.1; Reverse the order of `isearch-message-prefix'
 prefixes from function advice property
Date: Tue, 18 Oct 2016 19:01:36 -0400
[Message part 1 (text/plain, inline)]
On 2016-10-18 16:49, Drew Adams wrote:
> People can disagree, however, about how the sequence of filter
> applications should be shown: left-to-right or right-to-left.

I'd love to have always-visible icons that light up when a feature is activated, just like for read-only status in the mode line.  These icons could be to the right of the search bar, too.  Their order would always be the same.

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Tue, 18 Oct 2016 23:52:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Clément Pit--Claudel <clement.pit <at> gmail.com>,
 24721 <at> debbugs.gnu.org
Subject: RE: bug#24721: 25.1; Reverse the order of `isearch-message-prefix'
 prefixes from function advice property
Date: Tue, 18 Oct 2016 16:50:57 -0700 (PDT)
> > People can disagree, however, about how the sequence of filter
> > applications should be shown: left-to-right or right-to-left.
> 
> I'd love to have always-visible icons that light up when a feature is
> activated, just like for read-only status in the mode line.  These icons
> could be to the right of the search bar, too.  Their order would always be
> the same.

Interesting suggestion, but different from the subject here.

Your suggestion would probably be more applicable to a fixed set of
icons (representing a fixed set of thingies).




Severity set to 'wishlist' from 'minor' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 08 Nov 2019 02:44:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Mon, 11 Nov 2019 03:34:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 24721 <at> debbugs.gnu.org
Subject: Re: bug#24721: 25.1; Reverse the order of `isearch-message-prefix'
 prefixes from function advice property
Date: Mon, 11 Nov 2019 04:33:40 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> When there is multiple advice (from `add-function') of
> `isearch-filter-predicate' that has property `isearch-message-prefix',
> these prefixes are currently shown left to right in the Isearch prompt,
> with the first added being on the left and the last added being on the
> right.
>
> I think this is backwards from what a user expects.  I've reversed the
> order in my own copy, and I think it is more helpful: The first one you
> see is the latest applied.  Entries are added and removed on the left,
> not the right.  The most important such prefix is typically the last
> one applied, and having it on the left makes it more noticeable (IMO).
>
> If you agree, all that's required is changing, in the
> `isearch-message-prefix' code, (concat np prefix) to (concat prefix np).

I think I agree with the reasoning here, and although the issue is
minor, the change also seems easy enough.

My only concern would be that users would find the change confusing or
bothersome, since they are already too used to the current behaviour.
Perhaps the trade-off is worth it.

Does anyone else have an opinion here?

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24721; Package emacs. (Thu, 20 Aug 2020 16:37:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 24721 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#24721: 25.1; Reverse the order of `isearch-message-prefix'
 prefixes from function advice property
Date: Thu, 20 Aug 2020 18:36:02 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> My only concern would be that users would find the change confusing or
> bothersome, since they are already too used to the current behaviour.
> Perhaps the trade-off is worth it.
>
> Does anyone else have an opinion here?

I agree with your concern here -- it sounds like it would be an annoying
change for those that are used to the old behaviour.  So I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 16:37:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24721 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 16:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Sep 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 271 days ago.

Previous Next


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