all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Boruch Baum <boruch_baum@gmx.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 49689@debbugs.gnu.org
Subject: bug#49689: [FEATURE REQUEST] Explicitly report change of input method
Date: Thu, 22 Jul 2021 02:52:19 -0400	[thread overview]
Message-ID: <20210722065219.n4ngz5z3mfvnwoze@E15-2016.optimum.net> (raw)
In-Reply-To: <83czra514z.fsf@gnu.org>

On 2021-07-22 09:11, Eli Zaretskii wrote:
> > Date: Wed, 21 Jul 2021 18:40:54 -0400
> > From: Boruch Baum <boruch_baum@gmx.com>
> >
> > Presently, a buffer's current input method is:
> >
> >   1] Only reported in the form of a cryptic symbol on the mode line.
>
> You get the full description if you hover the mouse pointer above that
> symbol (it's actually a short string).

Only in GUI emacs.

>  You can also do this:
>
>   M-: current-input-method RET

Not user-friendly or a form of automatic feedback.

> >   2] Aforementioned cryptic symbol is not guaranteed to be unique
> >      (BUG?).
>
> There are too few short meaningful strings to guarantee uniqueness.
> So, not a bug, but a mild misfeature due to screen estate constraints.
>
> >   2.1] Example: Hebrew and Hebrew-new

Hebrew-new could possibly be ח for חדש or ע with a unique diacritic.
Other Hebrew input methods use ע with diacritics and Hebrew-Lynx uses ל
instead of ע.

I haven't examined other cases of duplication, but my bet is that
scrutiny is likely to show that each can be uniquified.

> >
> > Please consider explicitly reporting changes to the input method. I've
> > done this to my personal satisfaction locally by adding a single line to
> > the end of each of functions `activate-input-method' and
> > `deactivate-input-method', both in file `mule-cmds'.
> >
> >   (message "Current input method is now: %s" current-input-method))
>
> I don't think I understand the feature request.  The message you
> suggest is ephemeral: it will be removed on the next keystroke.  So
> it's not like it will be shown there for prolonged periods of time.

That is the historical and current standard for emacs messaging. For
example, when one sets or un-sets a mode, emacs does just that, with
just the limitation to which you are objecting. The feature request can
be framed as asking for consistent emacs behavior to extend from changes
of mode to changes of input method.

> How will it help?

It would give immediate feedback upon change-of-state, similar to what
emacs does for many other changes of state, such as setting or
un-setting a mode.

>
> > This change has additional benefits:
> >
> >   1] Letting me know what I've done when I mis-type `C-\'.
>
> Doesn't "C-h l" help you know that?

Not user-friendly. Certainly not newbie-friendly.

> >
> >   2] Letting me know what to select when performing `C-h I'
>
> Please elaborate how does that message help with this last task.

It identifies the current input method by the exact (and guaranteed
unique) name that is used by the `C-h I' completing-read
completion-candidates collection.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0





  reply	other threads:[~2021-07-22  6:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 22:40 bug#49689: [FEATURE REQUEST] Explicitly report change of input method Boruch Baum
2021-07-22  6:11 ` Eli Zaretskii
2021-07-22  6:52   ` Boruch Baum [this message]
2021-07-22  7:56   ` Andreas Schwab
2022-08-21 18:08     ` Lars Ingebrigtsen
2022-08-22  7:15       ` Visuwesh
2022-08-23  7:37         ` Juri Linkov
2022-08-23 13:38           ` Visuwesh

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=20210722065219.n4ngz5z3mfvnwoze@E15-2016.optimum.net \
    --to=boruch_baum@gmx.com \
    --cc=49689@debbugs.gnu.org \
    --cc=eliz@gnu.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.