* Emacs Under X: <print> @ 2023-02-10 17:00 T.V Raman 2023-02-10 22:27 ` Vinicius Latorre 2023-02-11 2:09 ` Michael Heerdegen 0 siblings, 2 replies; 9+ messages in thread From: T.V Raman @ 2023-02-10 17:00 UTC (permalink / raw) To: emacs-devel On my laptop running X and stumpwm ie none of the Gnome magic loaded: The second key to the right of the spacebar delivers <print> to Emacs. I'd like to change this to Super_L modifier if possible; is there some way of figuring out the keycode it delivers from the emacs side? Note; the "obvious" X answer, use xev wont work for me since I cannot see ... -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮 -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-10 17:00 Emacs Under X: <print> T.V Raman @ 2023-02-10 22:27 ` Vinicius Latorre 2023-02-11 2:49 ` T.V Raman 2023-02-11 2:09 ` Michael Heerdegen 1 sibling, 1 reply; 9+ messages in thread From: Vinicius Latorre @ 2023-02-10 22:27 UTC (permalink / raw) To: T.V Raman; +Cc: emacs-devel [-- Attachment #1: Type: text/plain, Size: 822 bytes --] Maybe type *C-h k* and then type the key you wish to use, Emacs will display the key name and whatever is associated with this key. On Fri, Feb 10, 2023 at 2:02 PM T.V Raman <raman@google.com> wrote: > On my laptop running X and stumpwm ie none of the Gnome magic loaded: > > The second key to the right of the spacebar delivers <print> to > Emacs. > > I'd like to change this to Super_L modifier if possible; is there > some way of figuring out the keycode it delivers from the emacs side? > Note; the "obvious" X answer, use xev wont work for me since I cannot > see ... > > > -- > > Thanks, > > --Raman(I Search, I Find, I Misplace, I Research) > ♉ Id: kg:/m/0285kf1 🦮 > > -- > > Thanks, > > --Raman(I Search, I Find, I Misplace, I Research) > ♉ Id: kg:/m/0285kf1 🦮 > > [-- Attachment #2: Type: text/html, Size: 1194 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-10 22:27 ` Vinicius Latorre @ 2023-02-11 2:49 ` T.V Raman 2023-02-11 22:14 ` Vinicius Latorre 0 siblings, 1 reply; 9+ messages in thread From: T.V Raman @ 2023-02-11 2:49 UTC (permalink / raw) To: Vinicius Latorre; +Cc: emacs-devel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1277 bytes --] Vinicius Latorre <viniciusjl.gnu@gmail.com> writes: That's what shows the <print> :-) The answer to my problem was to use xmodmap -pk | grep -i print. Dont know where the angle-brackets in <print> come from which is what tripped up my original attempt at solving the question which in its turned initited the question. > Maybe type C-h k and then type the key you wish to use, Emacs will display the key name and whatever is > associated with this key. > > On Fri, Feb 10, 2023 at 2:02 PM T.V Raman <raman@google.com> wrote: > > On my laptop running X and stumpwm ie none of the Gnome magic loaded: > > The second key to the right of the spacebar delivers <print> to > Emacs. > > I'd like to change this to Super_L modifier if possible; is there > some way of figuring out the keycode it delivers from the emacs side? > Note; the "obvious" X answer, use xev wont work for me since I cannot > see ... > > -- > > Thanks, > > --Raman(I Search, I Find, I Misplace, I Research) > 7©4 Id: kg:/m/0285kf1 0Ü8 > > -- > > Thanks, > > --Raman(I Search, I Find, I Misplace, I Research) > 7©4 Id: kg:/m/0285kf1 0Ü8 > -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) 7©4 Id: kg:/m/0285kf1 0Ü8 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-11 2:49 ` T.V Raman @ 2023-02-11 22:14 ` Vinicius Latorre 2023-02-11 22:18 ` Vinicius Latorre 0 siblings, 1 reply; 9+ messages in thread From: Vinicius Latorre @ 2023-02-11 22:14 UTC (permalink / raw) To: T.V Raman; +Cc: emacs-devel [-- Attachment #1: Type: text/plain, Size: 1802 bytes --] Have you tried the settings below? (global-set-key [print] 'one-function-to-print) (global-set-key [C-print] 'other-function-to-print) (global-set-key [C-M-print] 'another-function-to-print) In my laptop: - [print] is the PrtScr key - [C-print] is the Control+PrtScr combination - [C-M-print] is the Control+Alt+PrtScr combination On Fri, Feb 10, 2023 at 11:49 PM T.V Raman <raman@google.com> wrote: > Vinicius Latorre <viniciusjl.gnu@gmail.com> writes: > > > That's what shows the <print> :-) > > The answer to my problem was to use xmodmap -pk | grep -i print. > > Dont know where the angle-brackets in <print> come from which is what > tripped up my original attempt at solving the question which in its > turned initited the question. > > Maybe type C-h k and then type the key you wish to use, Emacs will > display the key name and whatever is > > associated with this key. > > > > On Fri, Feb 10, 2023 at 2:02 PM T.V Raman <raman@google.com> wrote: > > > > On my laptop running X and stumpwm ie none of the Gnome magic loaded: > > > > The second key to the right of the spacebar delivers <print> to > > Emacs. > > > > I'd like to change this to Super_L modifier if possible; is there > > some way of figuring out the keycode it delivers from the emacs side? > > Note; the "obvious" X answer, use xev wont work for me since I cannot > > see ... > > > > -- > > > > Thanks, > > > > --Raman(I Search, I Find, I Misplace, I Research) > > ♈ Id: kg:/m/0285kf1 🦮 > > > > -- > > > > Thanks, > > > > --Raman(I Search, I Find, I Misplace, I Research) > > ♈ Id: kg:/m/0285kf1 🦮 > > > > -- > > Thanks, > > --Raman(I Search, I Find, I Misplace, I Research) > ♈ Id: kg:/m/0285kf1 🦮 > [-- Attachment #2: Type: text/html, Size: 2823 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-11 22:14 ` Vinicius Latorre @ 2023-02-11 22:18 ` Vinicius Latorre 2023-02-11 22:31 ` Vinicius Latorre 0 siblings, 1 reply; 9+ messages in thread From: Vinicius Latorre @ 2023-02-11 22:18 UTC (permalink / raw) To: T.V Raman; +Cc: emacs-devel [-- Attachment #1: Type: text/plain, Size: 2117 bytes --] Using C-h k: - PrtScr is shown as <print> - Control+PrtScr is shown as C-<print> - Control+Alt+PrtScr is shown as C-M-<print> On Sat, Feb 11, 2023 at 7:14 PM Vinicius Latorre <viniciusjl.gnu@gmail.com> wrote: > > Have you tried the settings below? > > (global-set-key [print] 'one-function-to-print) > (global-set-key [C-print] 'other-function-to-print) > (global-set-key [C-M-print] 'another-function-to-print) > > In my laptop: > > - [print] is the PrtScr key > - [C-print] is the Control+PrtScr combination > - [C-M-print] is the Control+Alt+PrtScr combination > > > > On Fri, Feb 10, 2023 at 11:49 PM T.V Raman <raman@google.com> wrote: > >> Vinicius Latorre <viniciusjl.gnu@gmail.com> writes: >> >> >> That's what shows the <print> :-) >> >> The answer to my problem was to use xmodmap -pk | grep -i print. >> >> Dont know where the angle-brackets in <print> come from which is what >> tripped up my original attempt at solving the question which in its >> turned initited the question. >> > Maybe type C-h k and then type the key you wish to use, Emacs will >> display the key name and whatever is >> > associated with this key. >> > >> > On Fri, Feb 10, 2023 at 2:02 PM T.V Raman <raman@google.com> wrote: >> > >> > On my laptop running X and stumpwm ie none of the Gnome magic loaded: >> > >> > The second key to the right of the spacebar delivers <print> to >> > Emacs. >> > >> > I'd like to change this to Super_L modifier if possible; is there >> > some way of figuring out the keycode it delivers from the emacs side? >> > Note; the "obvious" X answer, use xev wont work for me since I cannot >> > see ... >> > >> > -- >> > >> > Thanks, >> > >> > --Raman(I Search, I Find, I Misplace, I Research) >> > ♈ Id: kg:/m/0285kf1 🦮 >> > >> > -- >> > >> > Thanks, >> > >> > --Raman(I Search, I Find, I Misplace, I Research) >> > ♈ Id: kg:/m/0285kf1 🦮 >> > >> >> -- >> >> Thanks, >> >> --Raman(I Search, I Find, I Misplace, I Research) >> ♈ Id: kg:/m/0285kf1 🦮 >> > [-- Attachment #2: Type: text/html, Size: 3601 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-11 22:18 ` Vinicius Latorre @ 2023-02-11 22:31 ` Vinicius Latorre 2023-02-13 11:58 ` Robert Pluim 0 siblings, 1 reply; 9+ messages in thread From: Vinicius Latorre @ 2023-02-11 22:31 UTC (permalink / raw) To: T.V Raman; +Cc: emacs-devel [-- Attachment #1: Type: text/plain, Size: 2525 bytes --] BTW, my settings are very old, use keymap-global-set instead of global-set-key, and use keymap-local-set instead of local-set-key. See also the documentation of key-valid-p, probably you could use "<print>" instead of [print]. On Sat, Feb 11, 2023 at 7:18 PM Vinicius Latorre <viniciusjl.gnu@gmail.com> wrote: > Using C-h k: > > - PrtScr is shown as <print> > - Control+PrtScr is shown as C-<print> > - Control+Alt+PrtScr is shown as C-M-<print> > > > > > On Sat, Feb 11, 2023 at 7:14 PM Vinicius Latorre <viniciusjl.gnu@gmail.com> > wrote: > >> >> Have you tried the settings below? >> >> (global-set-key [print] 'one-function-to-print) >> (global-set-key [C-print] 'other-function-to-print) >> (global-set-key [C-M-print] 'another-function-to-print) >> >> In my laptop: >> >> - [print] is the PrtScr key >> - [C-print] is the Control+PrtScr combination >> - [C-M-print] is the Control+Alt+PrtScr combination >> >> >> >> On Fri, Feb 10, 2023 at 11:49 PM T.V Raman <raman@google.com> wrote: >> >>> Vinicius Latorre <viniciusjl.gnu@gmail.com> writes: >>> >>> >>> That's what shows the <print> :-) >>> >>> The answer to my problem was to use xmodmap -pk | grep -i print. >>> >>> Dont know where the angle-brackets in <print> come from which is what >>> tripped up my original attempt at solving the question which in its >>> turned initited the question. >>> > Maybe type C-h k and then type the key you wish to use, Emacs will >>> display the key name and whatever is >>> > associated with this key. >>> > >>> > On Fri, Feb 10, 2023 at 2:02 PM T.V Raman <raman@google.com> wrote: >>> > >>> > On my laptop running X and stumpwm ie none of the Gnome magic loaded: >>> > >>> > The second key to the right of the spacebar delivers <print> to >>> > Emacs. >>> > >>> > I'd like to change this to Super_L modifier if possible; is there >>> > some way of figuring out the keycode it delivers from the emacs side? >>> > Note; the "obvious" X answer, use xev wont work for me since I cannot >>> > see ... >>> > >>> > -- >>> > >>> > Thanks, >>> > >>> > --Raman(I Search, I Find, I Misplace, I Research) >>> > ♈ Id: kg:/m/0285kf1 🦮 >>> > >>> > -- >>> > >>> > Thanks, >>> > >>> > --Raman(I Search, I Find, I Misplace, I Research) >>> > ♈ Id: kg:/m/0285kf1 🦮 >>> > >>> >>> -- >>> >>> Thanks, >>> >>> --Raman(I Search, I Find, I Misplace, I Research) >>> ♈ Id: kg:/m/0285kf1 🦮 >>> >> [-- Attachment #2: Type: text/html, Size: 4479 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-11 22:31 ` Vinicius Latorre @ 2023-02-13 11:58 ` Robert Pluim 2023-02-13 15:10 ` T.V Raman 0 siblings, 1 reply; 9+ messages in thread From: Robert Pluim @ 2023-02-13 11:58 UTC (permalink / raw) To: Vinicius Latorre; +Cc: T.V Raman, emacs-devel >>>>> On Sat, 11 Feb 2023 19:31:35 -0300, Vinicius Latorre <viniciusjl.gnu@gmail.com> said: Vinicius> BTW, my settings are very old, use keymap-global-set instead of Vinicius> global-set-key, and use keymap-local-set instead of local-set-key. Vinicius> See also the documentation of key-valid-p, probably you could use "<print>" Vinicius> instead of [print]. Not just could, but should, with keymap-global-set: (kbd "<print>") is "the function key 'printʼ" (kbd "[print]") is "the vector of characters 'print'" Robert -- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-13 11:58 ` Robert Pluim @ 2023-02-13 15:10 ` T.V Raman 0 siblings, 0 replies; 9+ messages in thread From: T.V Raman @ 2023-02-13 15:10 UTC (permalink / raw) To: Robert Pluim; +Cc: Vinicius Latorre, emacs-devel [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=gb18030, Size: 308 bytes --] Thanks all. Note that my specific use-case needed to go dig out the keycode from X because I wanted to change the <print> key to be a modifier (Super_R) in my case; I have now solved that issue. -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) 7©4 Id: kg:/m/0285kf1 0Ü8 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Emacs Under X: <print> 2023-02-10 17:00 Emacs Under X: <print> T.V Raman 2023-02-10 22:27 ` Vinicius Latorre @ 2023-02-11 2:09 ` Michael Heerdegen 1 sibling, 0 replies; 9+ messages in thread From: Michael Heerdegen @ 2023-02-11 2:09 UTC (permalink / raw) To: emacs-devel "T.V Raman" <raman@google.com> writes: > On my laptop running X and stumpwm ie none of the Gnome magic loaded: > > The second key to the right of the spacebar delivers <print> to > Emacs. No idea how to do this with Emacs alone. But when I run xev from *shell*, type <print> and then close the xev X window with my normal key binding for closing X windows (which terminates xev), the two <print> key events (press and release) are the second and third last listed in the output and displayed near the end of the *shell* buffer (starting with around line 24 before the end of the buffer). I guess that could be doable without seeing? The xev window gets input focus automatically here, so it starts interpreting and recording you key events directly after starting the command in *shell*. Michael. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-02-13 15:10 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-02-10 17:00 Emacs Under X: <print> T.V Raman 2023-02-10 22:27 ` Vinicius Latorre 2023-02-11 2:49 ` T.V Raman 2023-02-11 22:14 ` Vinicius Latorre 2023-02-11 22:18 ` Vinicius Latorre 2023-02-11 22:31 ` Vinicius Latorre 2023-02-13 11:58 ` Robert Pluim 2023-02-13 15:10 ` T.V Raman 2023-02-11 2:09 ` Michael Heerdegen
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.