From: aklaing@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: How to return to the position from where I did tags-query-replace?
Date: Sun, 4 Feb 2018 12:37:29 -0800 (PST) [thread overview]
Message-ID: <745ff567-d90b-4532-9dd3-88c2e5beafaa@googlegroups.com> (raw)
In-Reply-To: <86inbcv6wz.fsf@zoho.com>
Yes. It (tags-query-replace) throws exceptions whether it completes successfully or not. It does not work because the (apply fun args) is in the middle of other code. So the part of the calling code which follows the (apply fun args) does not execute unless you catch the exception.
There is more detailed doc at:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Signaling-Errors.html (first paragraph). Further down the page it talks about user-error.
On Sunday, February 4, 2018 at 3:25:36 PM UTC-5, Emanuel Berg wrote:
> aklaing wrote:
>
> > Thanks Emanuel for taking a look at this.
> > [...]
>
> NP, but are you saying, your function throws an
> error when it *does* work, and this make the
> advice not work?
>
> If so, IMO it'll just be too confusion to try
> to write a framework around that.
>
> The docstring for `error' doesn't say anything
> about aborting normal execution, but maybe it
> does, I don't know:
>
> (error STRING &rest ARGS)
>
> Signal an error, making error message by
> passing all args to `format'. In Emacs, the
> convention is that error messages start
> with a capital letter but *do not* end with
> a period. Please follow this convention for
> the sake of consistency.
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2018-02-04 20:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 18:33 How to return to the position from where I did tags-query-replace? Yevgeniy Makarov
2007-09-05 21:41 ` Eric Hanchrow
[not found] ` <mailman.388.1189029337.18990.help-gnu-emacs@gnu.org>
2018-02-03 22:27 ` Ambrose Laing
2018-02-04 3:28 ` Emanuel Berg
2018-02-04 4:30 ` Emanuel Berg
2018-02-04 4:34 ` Emanuel Berg
2018-02-04 4:46 ` Emanuel Berg
2018-02-04 20:14 ` aklaing
2018-02-04 20:25 ` Emanuel Berg
2018-02-04 20:36 ` Emanuel Berg
2018-02-04 20:37 ` aklaing [this message]
2018-02-04 20:41 ` Emanuel Berg
2018-02-04 20:52 ` aklaing
2018-02-04 21:02 ` Emanuel Berg
2018-02-04 20:29 ` aklaing
2018-02-04 20:38 ` Emanuel Berg
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=745ff567-d90b-4532-9dd3-88c2e5beafaa@googlegroups.com \
--to=aklaing@gmail.com \
--cc=help-gnu-emacs@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.