From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: after-find-file-from-revert-buffer
Date: Wed, 6 Apr 2011 19:03:14 +0200 [thread overview]
Message-ID: <BANLkTimqG5jaDMYiJWOZ5iWWAZtUULTAwg@mail.gmail.com> (raw)
In-Reply-To: <jwvzko3tjep.fsf-monnier+emacs@gnu.org>
On Wed, Apr 6, 2011 at 18:51, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I was thinking of using a revert-buffer-function of the form
>
> (λ (&rest args)
> (let ((save-place-in-revert-buffer t))
> (apply revert-buffer-default args)))
>
>> (defun revert-buffer (...)
>> (let ((revert-buffer-in-progress t))
>> ...))
Global, you mean? I'm not sure it's worth the hassle.
> Yes, that's is better.
OK, I'll install that.
> I guess you could use a single let that covers both branches of the `if'.
IMO, it seems ugly to wrap the whole function just to add a variable.
But it's your call.
Juanma
next prev parent reply other threads:[~2011-04-06 17:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 0:28 after-find-file-from-revert-buffer Juanma Barranquero
2011-04-06 1:34 ` after-find-file-from-revert-buffer Stefan Monnier
2011-04-06 1:42 ` after-find-file-from-revert-buffer Juanma Barranquero
2011-04-06 15:17 ` after-find-file-from-revert-buffer Stefan Monnier
2011-04-06 17:43 ` after-find-file-from-revert-buffer Juanma Barranquero
2011-04-06 15:18 ` after-find-file-from-revert-buffer Juanma Barranquero
2011-04-06 16:51 ` after-find-file-from-revert-buffer Stefan Monnier
2011-04-06 17:03 ` Juanma Barranquero [this message]
2011-04-06 17:32 ` after-find-file-from-revert-buffer Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTimqG5jaDMYiJWOZ5iWWAZtUULTAwg@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 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).