GNU bug report logs - #19931
24.4; Support for OS X press and hold

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Mon, 23 Feb 2015 21:06:01 UTC

Severity: wishlist

Found in version 24.4

To reply to this bug, email your comments to 19931 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#19931; Package emacs. (Mon, 23 Feb 2015 21:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philipp Stephani <p.stephani2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Feb 2015 21:06:02 GMT) Full text and rfc822 format available.

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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; Support for OS X press and hold
Date: Mon, 23 Feb 2015 22:05:32 +0100
[Message part 1 (text/plain, inline)]
Message-ID: <m28ufo737a.fsf <at> p.i-did-not-set--mail-host-address--so-tickle-me
>
--text follows this line--

"Press and hold" is an OS X input method used for entering accented
characters if a key is held down (instead of repeating the key).  It's
not supported in Emacs.
http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00784.html
states: "Let's look into making it work properly once people decide to
install Lion."
That was more than three years ago, and since then two major OS X
versions have been released, but unfortunately press and hold is still
not supported.  It would be great to support this feature to make Emacs
more consistent with other apps on OS X.


In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2014-10-22 on p
Windowing system distributor `Apple', version 10.3.1344
Configured using:
 `configure --prefix=/usr/local/Cellar/emacs/24.4
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs/24.4/share/info/emacs --without-dbus
 --without-gnutls --with-ns --disable-ns-self-contained'

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 71987 6607)
 (symbols 48 17377 0)
 (miscs 40 36 154)
 (strings 32 9965 4605)
 (string-bytes 1 263174)
 (vectors 16 9021)
 (vector-slots 8 384474 14793)
 (floats 8 53 103)
 (intervals 56 179 0)
 (buffers 960 11))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Mon, 23 Nov 2020 14:05:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 19931 <at> debbugs.gnu.org
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Mon, 23 Nov 2020 09:04:16 -0500
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> "Press and hold" is an OS X input method used for entering accented
> characters if a key is held down (instead of repeating the key).  It's
> not supported in Emacs.
> http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00784.html
> states: "Let's look into making it work properly once people decide to
> install Lion."
> That was more than three years ago, and since then two major OS X
> versions have been released, but unfortunately press and hold is still
> not supported.  It would be great to support this feature to make Emacs
> more consistent with other apps on OS X.

Do we have support for this on free operating systems?  Otherwise, I
think the policy is that we can't add it to Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Sat, 12 Dec 2020 16:54:02 GMT) Full text and rfc822 format available.

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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 19931 <at> debbugs.gnu.org
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Sat, 12 Dec 2020 17:52:54 +0100
Am Mo., 23. Nov. 2020 um 15:04 Uhr schrieb Stefan Kangas <stefan <at> marxist.se>:
>
> Philipp Stephani <p.stephani2 <at> gmail.com> writes:
>
> > "Press and hold" is an OS X input method used for entering accented
> > characters if a key is held down (instead of repeating the key).  It's
> > not supported in Emacs.
> > http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00784.html
> > states: "Let's look into making it work properly once people decide to
> > install Lion."
> > That was more than three years ago, and since then two major OS X
> > versions have been released, but unfortunately press and hold is still
> > not supported.  It would be great to support this feature to make Emacs
> > more consistent with other apps on OS X.
>
> Do we have support for this on free operating systems?  Otherwise, I
> think the policy is that we can't add it to Emacs.

Probably yes, at least I haven't found similar functionality on free
windowing systems.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Sun, 13 Dec 2020 04:12:01 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 19931 <at> debbugs.gnu.org, Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Sun, 13 Dec 2020 09:41:34 +0530
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

>> > "Press and hold" is an OS X input method used for entering accented
>> > characters if a key is held down (instead of repeating the key).  It's
>> > not supported in Emacs.
>> > http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00784.html
>> > states: "Let's look into making it work properly once people decide to
>> > install Lion."
>> > That was more than three years ago, and since then two major OS X
>> > versions have been released, but unfortunately press and hold is still
>> > not supported.  It would be great to support this feature to make Emacs
>> > more consistent with other apps on OS X.
>>
>> Do we have support for this on free operating systems?  Otherwise, I
>> think the policy is that we can't add it to Emacs.
>
> Probably yes, at least I haven't found similar functionality on free
> windowing systems.

And if that is patented (like the right swipe) then no other system will
be implementing it. Probably, we can think of something better to
achieve the same goal. And make it portably available to all.

One idea:

A new input-method: accented-cycle (C-u C-\ "accented-cycle" RET).

Once you have this input-method selected, then repeating same key will
cycle through the accented options. Ofcourse sometimes it is useful to
cut off input method so that instead of cycling you just repeat the same
character in the typed text. This is already very well documented in the
"(emacs) 22.3 Input Method".

Also, the newly added "transient" input method will also be added help.

So, why "press and hold" when you can simply "glide".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Sun, 13 Dec 2020 08:52:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: 19931 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Sun, 13 Dec 2020 10:38:52 +0200
> And if that is patented (like the right swipe) then no other system will
> be implementing it. Probably, we can think of something better to
> achieve the same goal. And make it portably available to all.
>
> One idea:
>
> A new input-method: accented-cycle (C-u C-\ "accented-cycle" RET).
>
> Once you have this input-method selected, then repeating same key will
> cycle through the accented options. Ofcourse sometimes it is useful to
> cut off input method so that instead of cycling you just repeat the same
> character in the typed text. This is already very well documented in the
> "(emacs) 22.3 Input Method".
>
> Also, the newly added "transient" input method will also be added help.
>
> So, why "press and hold" when you can simply "glide".

I don't know how "Press and hold" works on OS X, but it seems it's like
on some smartphone screen virtual keyboards holding down a letter pops up
a list of suggestions with accented letters.  But any postfix input method
in Emacs already works the same way, for example:

  C-\ latin-1-postfix
  a

displays a list of possible accents to select.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Sun, 13 Dec 2020 09:42:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 19931 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Sun, 13 Dec 2020 15:11:32 +0530
Juri Linkov <juri <at> linkov.net> writes:

>> And if that is patented (like the right swipe) then no other system will
>> be implementing it. Probably, we can think of something better to
>> achieve the same goal. And make it portably available to all.
>>
>> One idea:
>>
>> A new input-method: accented-cycle (C-u C-\ "accented-cycle" RET).
>>
>> Once you have this input-method selected, then repeating same key will
>> cycle through the accented options. Ofcourse sometimes it is useful to
>> cut off input method so that instead of cycling you just repeat the same
>> character in the typed text. This is already very well documented in the
>> "(emacs) 22.3 Input Method".
>>
>> Also, the newly added "transient" input method will also be added help.
>>
>> So, why "press and hold" when you can simply "glide".
>
> I don't know how "Press and hold" works on OS X, but it seems it's like
> on some smartphone screen virtual keyboards holding down a letter pops up
> a list of suggestions with accented letters.

Yes exactly similar to that.

> But any postfix input method in Emacs already works the same way, for
> example:
>
>   C-\ latin-1-postfix
>   a
>
> displays a list of possible accents to select.

Yes this almost solves the problem. Just that in case of press-and-hold,
the user doesn’t have to goto another key. The combination is the main
key and arrow-key to select the correct accent.

May be we can have a generic implementation. The next possible keys are
already displayed in the echo area. Pressing the same character key
again cycles through those options.

e e         => ë
e e e       => é
e e e e     => æ
e e e e e   => ê
e e e e e e => è

But, to be honest, I find the postfix implementation to be much faster.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Sun, 13 Dec 2020 21:28:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: 19931 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Sun, 13 Dec 2020 23:20:49 +0200
>> But any postfix input method in Emacs already works the same way, for
>> example:
>>
>>   C-\ latin-1-postfix
>>   a
>>
>> displays a list of possible accents to select.
>
> Yes this almost solves the problem. Just that in case of press-and-hold,
> the user doesn’t have to goto another key. The combination is the main
> key and arrow-key to select the correct accent.

There are some options in 'quail-define-package', and I recall
that some of them can enable more interactive selection among
displayed variants, but I don't remember what input methods used
such options, and what options of 'quail-define-package' can do this,
maybe 'SHOW-LAYOUT', but I'm not sure.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Mon, 14 Dec 2020 08:47:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: 19931 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Mon, 14 Dec 2020 10:35:30 +0200
>> Yes this almost solves the problem. Just that in case of press-and-hold,
>> the user doesn’t have to goto another key. The combination is the main
>> key and arrow-key to select the correct accent.
>
> There are some options in 'quail-define-package', and I recall
> that some of them can enable more interactive selection among
> displayed variants, but I don't remember what input methods used
> such options, and what options of 'quail-define-package' can do this,
> maybe 'SHOW-LAYOUT', but I'm not sure.

Actually, the interactive selection UI is enabled when a rule contains
a vector of possible variants, e.g.:

(quail-define-rules
 ("a" [?á ?ä]))

then typing "a" displays a list of characters to select.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Wed, 23 Dec 2020 21:12:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: Stefan Kangas <stefan <at> marxist.se>, Philipp Stephani <p.stephani2 <at> gmail.com>,
 19931 <at> debbugs.gnu.org
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Wed, 23 Dec 2020 22:51:23 +0200
>> I don't know how "Press and hold" works on OS X, but it seems it's like
>> on some smartphone screen virtual keyboards holding down a letter pops up
>> a list of suggestions with accented letters.
>
> Yes exactly similar to that.

I noticed there is already the corresponding item in etc/TODO:

  **** PressAndHold for writing accented character
  On macOS, many application support the press and hold pattern to
  invoke a menu of accented characters.  (See example at
  https://support.apple.com/en-us/HT201586 .)

  Currently, this doesn't work in Emacs.

  Note that "ns-win.el" explicitly disables this.

  Note: This feature might not be allowed to be implemented until also
  implemented in Emacs for a free system.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19931; Package emacs. (Thu, 24 Dec 2020 20:39:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: Stefan Kangas <stefan <at> marxist.se>, Philipp Stephani <p.stephani2 <at> gmail.com>,
 19931 <at> debbugs.gnu.org
Subject: Re: bug#19931: 24.4; Support for OS X press and hold
Date: Thu, 24 Dec 2020 22:27:40 +0200
>>> I don't know how "Press and hold" works on OS X, but it seems it's like
>>> on some smartphone screen virtual keyboards holding down a letter pops up
>>> a list of suggestions with accented letters.
>>
>> Yes exactly similar to that.
>
> I noticed there is already the corresponding item in etc/TODO:

BTW, there are more related items in etc/TODO.  I don't know
how actual they are.  Maybe some of them are already obsolete?

  ** Add a way to define input methods by computing them
  When an input method is first used, redefine C-x 8 to use a
  user-selected input method, with the default being the union of
  latin-1-prefix and latin-1-postfix.

  ** A more convenient use of input methods in search
  Arrange a way for an input method to return the first character
  immediately, then replace it later.  So that C-s a with input method
  latin-1-postfix would immediately search for an a.

  ** Let LEIM handle the Mode_switch key like XIM does
  I.e. a toggle like C-\ but which can also be used as a modifier.




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

Previous Next


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