all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
@ 2019-03-08  1:27 Drew Adams
  2019-03-08  1:29 ` Drew Adams
  2019-03-08 13:33 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Drew Adams @ 2019-03-08  1:27 UTC (permalink / raw)
  To: 34784

See https://emacs.stackexchange.com/a/48221/105.

There is apparently a <timeout> function key and a `timeout'
function-key event?  Please consider documenting this in the Elisp
manual.


In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08  1:27 bug#34784: 26.1; Doc of pseudofunction key `<timeout>' Drew Adams
@ 2019-03-08  1:29 ` Drew Adams
  2019-03-08 13:33 ` Eli Zaretskii
  1 sibling, 0 replies; 10+ messages in thread
From: Drew Adams @ 2019-03-08  1:29 UTC (permalink / raw)
  To: 34784

I meant to use "function key", not "pseudofunction key" in the Bug title.  Forgot to correct that.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08  1:27 bug#34784: 26.1; Doc of pseudofunction key `<timeout>' Drew Adams
  2019-03-08  1:29 ` Drew Adams
@ 2019-03-08 13:33 ` Eli Zaretskii
  2019-03-08 16:52   ` Drew Adams
  2020-08-24 19:22   ` Stefan Kangas
  1 sibling, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2019-03-08 13:33 UTC (permalink / raw)
  To: Drew Adams; +Cc: 34784

tags 34784 notabug
thanks

> Date: Thu, 7 Mar 2019 17:27:14 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> See https://emacs.stackexchange.com/a/48221/105.
> 
> There is apparently a <timeout> function key and a `timeout'
> function-key event?

There's no timeout function key, it's an event that CUA invented, a
symbol, that's all.  See cua-base.el.  Any Lisp program can invent
events of its liking and then inject those events and bind commands to
them.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08 13:33 ` Eli Zaretskii
@ 2019-03-08 16:52   ` Drew Adams
  2019-03-08 17:02     ` Eli Zaretskii
  2020-08-24 19:22   ` Stefan Kangas
  1 sibling, 1 reply; 10+ messages in thread
From: Drew Adams @ 2019-03-08 16:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 34784

> tags 34784 notabug
> thanks
> 
> > There is apparently a <timeout> function key and a `timeout'
> > function-key event?
> 
> There's no timeout function key, it's an event that CUA invented, a
> symbol, that's all.  See cua-base.el.  Any Lisp program can invent
> events of its liking and then inject those events and bind commands to
> them.

I thought that might be the case.

But according to how the Elisp manual talks about
function keys, "fake function keys", and events this
_is_ a function key: one that corresponds to the
`timeout' "event that CUA invented".  It's not a
function key that exists or is used outside CUA,
perhaps (that I wasn't sure about), but it is a
function key, at least in terms of how the manual
talks about such things.

Anyway, back to the point of this bug report: How
is a user to know this info about `<timeout>',
without digging into the code?

The doc speaks of "_fake_ function keys" for use in
menu items (only).  But the doc really doesn't guide
users when it comes to things like this.  Yes, it
talks, in the doc about events, about function-key
events, saying that the event is represented by the
function-key symbol.

But I don't see where the doc describes the kind of
thing that is happening with `C-c <timeout>'.  And
I don't see how a user would find out what that
function key (and it apparently is a function key
and not a fake function key) does, without digging
into the CUA code.

Maybe CUA needs, itself, to provide some help/doc
for users about this?  Or maybe Emacs can provide
some general mechanism for users to discover what
such an event does/means?

Keys in a key sequence that we present to a user
should be clear - including function keys.  We
document those that are common.  We don't document
`<timeout>'.  At least CUA should document it, I
think.

There should be some way for a user to find out
more about it, when `C-c C-h' shows it.  How does
a user type/use a key sequence such as
`C-c <timeout>'?  How does a user find that out?

Some user help is missing here.  You may have a
different/better idea of what is missing and where
it belongs, but don't you agree that something is
missing in terms of user help here?






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08 16:52   ` Drew Adams
@ 2019-03-08 17:02     ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2019-03-08 17:02 UTC (permalink / raw)
  To: Drew Adams; +Cc: 34784

> Date: Fri, 8 Mar 2019 08:52:46 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 34784@debbugs.gnu.org
> 
> Anyway, back to the point of this bug report: How
> is a user to know this info about `<timeout>',
> without digging into the code?

Why should they?  This is an internal matter between CUA and itself, a
detail of its implementation.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
       [not found]     ` <<838sxp9u54.fsf@gnu.org>
@ 2019-03-08 17:20       ` Drew Adams
  2019-03-08 18:51         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Drew Adams @ 2019-03-08 17:20 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 34784

> > Anyway, back to the point of this bug report: How
> > is a user to know this info about `<timeout>',
> > without digging into the code?
> 
> Why should they?  This is an internal matter between CUA and itself, a
> detail of its implementation.

Huh? Why shouldn't they?  If a user sees this help:

 key             binding
 ---             -------
 C-c <timeout>   copy-region-as-kill

and s?he wants to know how to invoke
`copy-region-as-kill' starting with prefix `C-c',
where is s?he supposed to turn for that info?

If this were "an internal matter between CUA and
itself" then `C-c C-h' wouldn't (and shouldn't)
show it to users.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08 17:20       ` Drew Adams
@ 2019-03-08 18:51         ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2019-03-08 18:51 UTC (permalink / raw)
  To: Drew Adams; +Cc: 34784

> Date: Fri, 8 Mar 2019 09:20:19 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 34784@debbugs.gnu.org
> 
> > > Anyway, back to the point of this bug report: How
> > > is a user to know this info about `<timeout>',
> > > without digging into the code?
> > 
> > Why should they?  This is an internal matter between CUA and itself, a
> > detail of its implementation.
> 
> Huh? Why shouldn't they?

Because it's an implementation detail.

> If a user sees this help:
> 
>  key             binding
>  ---             -------
>  C-c <timeout>   copy-region-as-kill
> 
> and s?he wants to know how to invoke
> `copy-region-as-kill' starting with prefix `C-c',
> where is s?he supposed to turn for that info?

To the source code, of course.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
       [not found]         ` <<837ed99p36.fsf@gnu.org>
@ 2019-03-08 19:39           ` Drew Adams
  2019-03-08 19:48             ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Drew Adams @ 2019-03-08 19:39 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 34784

> > > > Anyway, back to the point of this bug report: How
> > > > is a user to know this info about `<timeout>',
> > > > without digging into the code?
> > >
> > > Why should they?  This is an internal matter between CUA and itself, a
> > > detail of its implementation.
> >
> > Huh? Why shouldn't they?
> 
> Because it's an implementation detail.

How so - what makes you think that?

> > If a user sees this help:
> >
> >  key             binding
> >  ---             -------
> >  C-c <timeout>   copy-region-as-kill
> >
> > and s?he wants to know how to invoke
> > `copy-region-as-kill' starting with prefix `C-c',
> > where is s?he supposed to turn for that info?
> 
> To the source code, of course.

To understand an external, user-visible, external, key
description from `C-h' a user needs to dig into the
source code?  That's a sorry stance for Emacs help to
take, I think.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08 19:39           ` Drew Adams
@ 2019-03-08 19:48             ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2019-03-08 19:48 UTC (permalink / raw)
  To: Drew Adams; +Cc: 34784

> Date: Fri, 8 Mar 2019 11:39:29 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 34784@debbugs.gnu.org
> 
> > > > > Anyway, back to the point of this bug report: How
> > > > > is a user to know this info about `<timeout>',
> > > > > without digging into the code?
> > > >
> > > > Why should they?  This is an internal matter between CUA and itself, a
> > > > detail of its implementation.
> > >
> > > Huh? Why shouldn't they?
> > 
> > Because it's an implementation detail.
> 
> How so - what makes you think that?

Because I've read the code.

> > > and s?he wants to know how to invoke
> > > `copy-region-as-kill' starting with prefix `C-c',
> > > where is s?he supposed to turn for that info?
> > 
> > To the source code, of course.
> 
> To understand an external, user-visible, external, key
> description from `C-h' a user needs to dig into the
> source code?  That's a sorry stance for Emacs help to
> take, I think.

No, it's just a (mildly unfortunate) consequence of the fact that
internal details are visible in user-level commands.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#34784: 26.1; Doc of pseudofunction key `<timeout>'
  2019-03-08 13:33 ` Eli Zaretskii
  2019-03-08 16:52   ` Drew Adams
@ 2020-08-24 19:22   ` Stefan Kangas
  1 sibling, 0 replies; 10+ messages in thread
From: Stefan Kangas @ 2020-08-24 19:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 34784-done

Eli Zaretskii <eliz@gnu.org> writes:

> tags 34784 notabug
> thanks
>
>> Date: Thu, 7 Mar 2019 17:27:14 -0800 (PST)
>> From: Drew Adams <drew.adams@oracle.com>
>>
>> See https://emacs.stackexchange.com/a/48221/105.
>>
>> There is apparently a <timeout> function key and a `timeout'
>> function-key event?
>
> There's no timeout function key, it's an event that CUA invented, a
> symbol, that's all.  See cua-base.el.  Any Lisp program can invent
> events of its liking and then inject those events and bind commands to
> them.

This is not considered a bug, so I'm closing this bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-24 19:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-08  1:27 bug#34784: 26.1; Doc of pseudofunction key `<timeout>' Drew Adams
2019-03-08  1:29 ` Drew Adams
2019-03-08 13:33 ` Eli Zaretskii
2019-03-08 16:52   ` Drew Adams
2019-03-08 17:02     ` Eli Zaretskii
2020-08-24 19:22   ` Stefan Kangas
     [not found] <<247b0874-cbb1-40e1-996f-5f931c142616@default>
     [not found] ` <<83imwta3t0.fsf@gnu.org>
     [not found]   ` <<b4181ab6-8e04-4851-b3cf-f63723ffcf6a@default>
     [not found]     ` <<838sxp9u54.fsf@gnu.org>
2019-03-08 17:20       ` Drew Adams
2019-03-08 18:51         ` Eli Zaretskii
     [not found] <<<247b0874-cbb1-40e1-996f-5f931c142616@default>
     [not found] ` <<<83imwta3t0.fsf@gnu.org>
     [not found]   ` <<<b4181ab6-8e04-4851-b3cf-f63723ffcf6a@default>
     [not found]     ` <<<838sxp9u54.fsf@gnu.org>
     [not found]       ` <<f36457e6-0e75-4a6e-9aad-cb6bf2df1a46@default>
     [not found]         ` <<837ed99p36.fsf@gnu.org>
2019-03-08 19:39           ` Drew Adams
2019-03-08 19:48             ` Eli Zaretskii

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.