all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Flaschen <matthew.flaschen@gatech.edu>
To: emacs <help-gnu-emacs@gnu.org>
Subject: Re: refreshing all frames from files
Date: Wed, 28 Feb 2007 23:28:35 -0500	[thread overview]
Message-ID: <45E65673.8020704@gatech.edu> (raw)
In-Reply-To: <m3vehl8y7o.fsf@localhost.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1004 bytes --]

Gary Wessle wrote:
> "weber" <hugows@gmail.com> writes:
> 
>> On 28 fev, 22:44, Gary Wessle <phd...@yahoo.com> wrote:
>>> Hi
>>>
>>> often times I would have many files visited and thus few windows in
>>> the frame, is there a key hit to refresh all of them at once instead
>>> of C-x C-v for each and every one?
>>>
>>> thanks
>> What do you mean refresh?
>  the files get changed by another process and I want to view the
>  changes with out having to do C-x C-v for each and every one.

I just worked up the below.  I set the key combo As C-x v, which is
unused by default.  However, you can change it.  Put it in ~/.emacs:

Matthew Flaschen
---------------------------------------------------------------------

(defun refresh-all-buffers ()
"Refreshes all buffers from disk"
(interactive)
(mapc
 (lambda (buffer)
   (if (buffer-file-name buffer)
   (find-alternate-file (buffer-file-name buffer))))
 (buffer-list)))

(global-set-key [?\C-x ?v] 'refresh-all-buffers)


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-03-01  4:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01  1:44 refreshing all frames from files Gary Wessle
2007-03-01  2:16 ` weber
2007-03-01  3:00   ` Gary Wessle
2007-03-01  4:28     ` Matthew Flaschen [this message]
2007-03-01  5:25     ` Kevin Rodgers
     [not found]     ` <mailman.241.1172726970.7795.help-gnu-emacs@gnu.org>
2007-03-01  6:11       ` Gary Wessle
2007-03-01 11:57         ` Xavier Maillard
2007-03-01 12:07         ` weber
     [not found]         ` <mailman.244.1172750433.7795.help-gnu-emacs@gnu.org>
2007-03-02  1:27           ` Gary Wessle
2007-03-02  3:50             ` Kevin Rodgers
     [not found]             ` <mailman.296.1172813363.7795.help-gnu-emacs@gnu.org>
2007-03-02 17:21               ` Gary Wessle
2007-03-03  5:20             ` Stefan Monnier
2007-03-03 17:01               ` Gary Wessle

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=45E65673.8020704@gatech.edu \
    --to=matthew.flaschen@gatech.edu \
    --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.