all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: bruce.connor.am@gmail.com, emacs-devel@gnu.org,
	monnier@iro.umontreal.ca, kaushal.modi@gmail.com,
	stephen@xemacs.org, juri@linkov.net
Subject: RE: Displaying the state of isearch toggles [was Re: ASCII-folded search]
Date: Tue, 30 Jun 2015 10:17:04 -0700 (PDT)	[thread overview]
Message-ID: <573f390a-d000-4997-a4a8-1ce4c5c359c4@default> (raw)
In-Reply-To: <<83616544o3.fsf@gnu.org>>

> > But such a dialog box should not be the only way to change
> > individual attribute values.
> 
> I still don't understand why not.  We do use something similar in
> Customize buffers.

Why should it be the only way?  Why shouldn't you be able to hit
a key, as you do now, to toggle case sensitivity?  Why should you
be required to open a dialog box and make a change there, just to
toggle case sensitivity?

I see nothing wrong with providing users, as we have long done
for case sensitivity, with some simple toggle keys.  Nothing
obliges us to provide a toggle/cycle key for each search attribute.
But nothing should prevent us from providing any that we think are
useful/important.

The Customize UI is OK for what it is used for.  It is hardly a
model that we should adopt as the *only* way to modify search
behavior on the fly.

> > That can be done quickly using toggle commands and/or toggle menu
> > items.
> 
> How is menu different from a dialog (to which you objected, AFAIU)?

I did not object, as I've said multiple times now.  Are you
listening?  It's not all-or-none, one-or-the-other, black-or-white.

Ask yourself why we have an `Options' menu in addition to Customize?
Or why we have the key binding `C-\' in addition to menu item
Options > Multilingual Environment > Toggle Input Method?

> > Being able to change multiple search attributes at once, as in
> > a dialog box is useful.  So is being able to quickly change any
> > of them individually.
> 
> The dialog doesn't require that you change all of them, so I don't
> see any contradiction.

You are inventing claims of contradiction.  You seem to want to see
things in black&white terms, all or nothing.

Being able to hit `M-c' during Isearch is a quick way to toggle
case sensitivity.  That doesn't mean that you shouldn't be able
to use a dialog box instead to do that, if you prefer.  Why make
addition of the latter exclude the possibility of the former?

> > When you say "non-orthogonal", presumably you are suggesting that
> > changing one attribute automatically either changes some others
> > or restricts some others.  Which such search attributes did you
> > have in mind?
> 
> Searching for regexps, words, and symbols are at least somewhat
> exclusive.  Similarly the various folding options.

See what I wrote.  Regexp, word, and symbol search (and other
possibilities perhaps to come) are exclusive, just as case-folding
on and case-folding off are exclusive.  Because they are exclusive,
they can be cycled as values of the same search attribute.

So OK, they are not orthogonal.  But yes, because of the way in
which they are not orthogonal choosing one or the other is simple.
We don't _require_ a dialog box to handle this non independence.

Your question wrt using a dialog box was this: "Are there good
alternatives, when there are so many non-orthogonal options?"

Groups such as {Regexp, word, symbol} do not present a conundrum
that requires a dialog box as its solution.

But again, I repeat that it is not about choosing between two
exclusive alternatives: dialog box vs something else.  We can
have a dialog box for heavy lifting (and also for light lifting,
for those who prefer it), and we can also have alternatives for
light lifting - e.g., toggling or cycling a search attribute.



  parent reply	other threads:[~2015-06-30 17:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<CAAdUY-K3x4i+7wFvbEstvKVKuSZyM-DL4wB+Pe7ZbsHcVYXOfw@mail.gmail.com>
     [not found] ` <<831tgv7vbr.fsf@gnu.org>
2015-06-28 17:02   ` Displaying the state of isearch toggles [was Re: ASCII-folded search] Drew Adams
2015-06-28 17:29     ` Drew Adams
2015-06-29 22:03     ` Juri Linkov
2015-06-29 22:26       ` Drew Adams
2015-06-30 15:03         ` Eli Zaretskii
2015-06-30  2:43       ` Eli Zaretskii
2015-06-30  7:53         ` Oleh Krehel
     [not found]   ` <<ddcd0bf6-a60e-406b-a79d-088c13c2ac61@default>
     [not found]     ` <<87h9pq18ae.fsf@mail.linkov.net>
     [not found]       ` <<83a8vh5316.fsf@gnu.org>
2015-06-30  4:39         ` Drew Adams
2015-06-30  6:25           ` Artur Malabarba
2015-06-30 14:04             ` Drew Adams
2015-06-30 14:41               ` Artur Malabarba
2015-06-30 15:06           ` Eli Zaretskii
     [not found]         ` <<9da72b40-0236-4edd-983e-90c54ca7f827@default>
     [not found]           ` <<83616544o3.fsf@gnu.org>
2015-06-30 17:17             ` Drew Adams [this message]
     [not found]       ` <<d9b5bdf0-9a8f-48b8-b24f-1b7ead67220f@default>
     [not found]         ` <<837fql44s9.fsf@gnu.org>
2015-06-30 17:14           ` Drew Adams
2015-06-30 17:22             ` Eli Zaretskii
2015-06-28 10:47 Artur Malabarba
2015-06-28 14:37 ` Eli Zaretskii
2015-06-28 15:08   ` Kaushal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=573f390a-d000-4997-a4a8-1ce4c5c359c4@default \
    --to=drew.adams@oracle.com \
    --cc=bruce.connor.am@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=kaushal.modi@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.