From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: refreshing all frames from files Date: Wed, 28 Feb 2007 23:28:35 -0500 Message-ID: <45E65673.8020704@gatech.edu> References: <1172715412.818375.83150@8g2000cwh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1416899246==" X-Trace: sea.gmane.org 1172723342 16160 80.91.229.12 (1 Mar 2007 04:29:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 04:29:02 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 05:28:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMcuU-0006PZ-Ia for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 05:28:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMcuV-0004Ko-Kx for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 23:28:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMcuI-0004KZ-Hs for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 23:28:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMcuG-0004JG-J4 for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 23:28:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMcuG-0004JB-Gd for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 23:28:40 -0500 Original-Received: from deliverator6.gatech.edu ([130.207.165.168]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HMcuG-0004Wk-2y for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 23:28:40 -0500 Original-Received: from deliverator6.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id F35091A44 for ; Wed, 28 Feb 2007 23:28:38 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx5.gatech.edu (mailprx5.prism.gatech.edu [130.207.171.19]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator6.gatech.edu (Postfix) with ESMTP id DEC2D1A43 for ; Wed, 28 Feb 2007 23:28:38 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [128.61.73.81] (r73h81.res.gatech.edu [128.61.73.81]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx5.gatech.edu, sender=n/a) by mailprx5.gatech.edu (Postfix) with ESMTP id B97762214 for ; Wed, 28 Feb 2007 23:28:38 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.9 (X11/20070104) In-Reply-To: X-Enigmail-Version: 0.94.2.0 X-detected-kernel: Solaris 9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41549 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1416899246== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig738DF1A625A1B9D2C8FFD042" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig738DF1A625A1B9D2C8FFD042 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Gary Wessle wrote: > "weber" writes: >=20 >> On 28 fev, 22:44, Gary Wessle 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) --------------enig738DF1A625A1B9D2C8FFD042 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5lZ5Q5LSyju97VkRAgczAKCMOBwntq+rcIYHZYlN8jkv5hIuygCgjc2U zvgcTYP6YlgpU5xN6UUIPuc= =PKBB -----END PGP SIGNATURE----- --------------enig738DF1A625A1B9D2C8FFD042-- --===============1416899246== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1416899246==--