* org-capture user-error: Abort
@ 2020-12-12 20:15 daniela-spit
2020-12-13 1:07 ` Ihor Radchenko
2020-12-13 5:22 ` Jean Louis
0 siblings, 2 replies; 9+ messages in thread
From: daniela-spit @ 2020-12-12 20:15 UTC (permalink / raw)
To: Org-Mode mailing list, bug-gnu-emacs
Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-12 20:15 org-capture user-error: Abort daniela-spit
@ 2020-12-13 1:07 ` Ihor Radchenko
2020-12-13 18:07 ` Diego Zamboni
2020-12-13 5:22 ` Jean Louis
1 sibling, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2020-12-13 1:07 UTC (permalink / raw)
To: daniela-spit, Org-Mode mailing list, bug-gnu-emacs
daniela-spit@gmx.it writes:
> Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
This is intended. Normally, it just shows up as a message in the
minibuffer. Or do you have debug-on-error enabled?
Best,
Ihor
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-12 20:15 org-capture user-error: Abort daniela-spit
2020-12-13 1:07 ` Ihor Radchenko
@ 2020-12-13 5:22 ` Jean Louis
2020-12-13 8:24 ` Ihor Radchenko
2020-12-13 8:25 ` Michael Albinus
1 sibling, 2 replies; 9+ messages in thread
From: Jean Louis @ 2020-12-13 5:22 UTC (permalink / raw)
To: daniela-spit; +Cc: bug-gnu-emacs, Org-Mode mailing list
* daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-12-12 23:19]:
> Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
Those are error messages invented by programmers who never had any
project supervisor who thinks of users.
If user wish to abort it is not an error. Even if it is error, why it
should be written with the dash as "user-error"?!
If message is at all necessary then computer should say "Action
aborted" or similar.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 5:22 ` Jean Louis
@ 2020-12-13 8:24 ` Ihor Radchenko
2020-12-13 10:46 ` Jean Louis
2020-12-13 8:25 ` Michael Albinus
1 sibling, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2020-12-13 8:24 UTC (permalink / raw)
To: Jean Louis, daniela-spit; +Cc: bug-gnu-emacs, Org-Mode mailing list
Jean Louis <bugs@gnu.support> writes:
> * daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-12-12 23:19]:
>> Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
>
> Those are error messages invented by programmers who never had any
> project supervisor who thinks of users.
Please be nice.
> If user wish to abort it is not an error. Even if it is error, why it
> should be written with the dash as "user-error"?!
>
> If message is at all necessary then computer should say "Action
> aborted" or similar.
(user-error "Action aborted") only prints "Action aborted".
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 5:22 ` Jean Louis
2020-12-13 8:24 ` Ihor Radchenko
@ 2020-12-13 8:25 ` Michael Albinus
2020-12-13 10:48 ` Jean Louis
1 sibling, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2020-12-13 8:25 UTC (permalink / raw)
To: Jean Louis; +Cc: daniela-spit, bug-gnu-emacs, Org-Mode mailing list
Jean Louis <bugs@gnu.support> writes:
Hi Jean,
> Even if it is error, why it should be written with the dash as
> "user-error"?!
`user-error' is a standard error symbol in Emacs, which is fired by the
function `user-error'. See (info "(elisp) Signaling Errors")
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 8:24 ` Ihor Radchenko
@ 2020-12-13 10:46 ` Jean Louis
0 siblings, 0 replies; 9+ messages in thread
From: Jean Louis @ 2020-12-13 10:46 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: daniela-spit, bug-gnu-emacs, Org-Mode mailing list
* Ihor Radchenko <yantar92@gmail.com> [2020-12-13 11:21]:
> Jean Louis <bugs@gnu.support> writes:
>
> > * daniela-spit@gmx.it <daniela-spit@gmx.it> [2020-12-12 23:19]:
> >> Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
> >
> > Those are error messages invented by programmers who never had any
> > project supervisor who thinks of users.
>
> (user-error "Action aborted") only prints "Action aborted".
Function is used wrongly. People do read source code.
(user-error FORMAT &rest ARGS)
Probably introduced at or before Emacs version 24.
Signal a user error, making a message by passing ARGS to ‘format-message’.
This is like ‘error’ except that a user error (or "pilot error") comes
from an incorrect manipulation by the user, not from an actual problem.
In contrast with other errors, user errors normally do not cause
entry to the debugger, even when ‘debug-on-error’ is non-nil.
This can be overridden by ‘debug-ignored-errors’.
Did user incorrectly manipulated anything? I don't think so.
There was definitely good intention to glue the things together and
make things function. But it was not made from viewpoint that software
will be used by people, maybe people read source code which is what we
want. Under certain condition that will come up as actual error, see
debug-ignored-errors.
Why tell to user that it was user error when it was not? It was one of
options.
Focus on technicality that causes the problem which does not fit
reasonably into human meanings. We like meanings, that is why we want
to fit meanings where they belong. Systems are not enough meaningful.
I can love my bicycle as I want, but it may not be usable by other
people due to all idiosyncratic enhancements I have made to it.
Jean
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 8:25 ` Michael Albinus
@ 2020-12-13 10:48 ` Jean Louis
0 siblings, 0 replies; 9+ messages in thread
From: Jean Louis @ 2020-12-13 10:48 UTC (permalink / raw)
To: Michael Albinus; +Cc: daniela-spit, bug-gnu-emacs, Org-Mode mailing list
* Michael Albinus <michael.albinus@gmx.de> [2020-12-13 11:25]:
> Jean Louis <bugs@gnu.support> writes:
>
> Hi Jean,
>
> > Even if it is error, why it should be written with the dash as
> > "user-error"?!
>
> `user-error' is a standard error symbol in Emacs, which is fired by the
> function `user-error'. See (info "(elisp) Signaling Errors")
And error is by definition a wrong action attributable to bad judgment
or ignorance or inattention.
When user is offered choice:
[q] Abort
then such is not a wrong action or bad judgment or ignorance or
inattention. Even the function description says it should be used in
different set of circumstances.
Org capture screen does not provide that circumstance that function
should be used there as user's choice is not an error.
Jean
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 1:07 ` Ihor Radchenko
@ 2020-12-13 18:07 ` Diego Zamboni
2020-12-13 18:11 ` daniela-spit
0 siblings, 1 reply; 9+ messages in thread
From: Diego Zamboni @ 2020-12-13 18:07 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: daniela-spit, bug-gnu-emacs, Org-Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 503 bytes --]
>
>
> > Emacs fires "user-error: Abort" after pressing "q" to abort org-capture.
>
> This is intended. Normally, it just shows up as a message in the
> minibuffer. Or do you have debug-on-error enabled?
>
Same as Ihor, when I press `q` in the org-capture screen I only see "Abort"
in the minibuffer. Where do you see the `user-error`? As long as the
effect is what you need (getting out of the capture screen), what is the
problem with the code using the `user-error` function to achieve this
effect?
[-- Attachment #2: Type: text/html, Size: 775 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-capture user-error: Abort
2020-12-13 18:07 ` Diego Zamboni
@ 2020-12-13 18:11 ` daniela-spit
0 siblings, 0 replies; 9+ messages in thread
From: daniela-spit @ 2020-12-13 18:11 UTC (permalink / raw)
To: Diego Zamboni; +Cc: bug-gnu-emacs, Org-Mode mailing list, Ihor Radchenko
[-- Attachment #1: Type: text/html, Size: 1860 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-12-13 18:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-12 20:15 org-capture user-error: Abort daniela-spit
2020-12-13 1:07 ` Ihor Radchenko
2020-12-13 18:07 ` Diego Zamboni
2020-12-13 18:11 ` daniela-spit
2020-12-13 5:22 ` Jean Louis
2020-12-13 8:24 ` Ihor Radchenko
2020-12-13 10:46 ` Jean Louis
2020-12-13 8:25 ` Michael Albinus
2020-12-13 10:48 ` Jean Louis
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).