From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: alert user the NEWS file has changed Date: Fri, 25 Apr 2003 05:39:23 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ptnb1sok.fsf@jidanni.org> Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1051221119 15972 80.91.224.249 (24 Apr 2003 21:51:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 21:51:59 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 23:51:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198odE-00048c-00 for ; Thu, 24 Apr 2003 23:51:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198odb-00044c-01 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 17:52:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198odH-00040W-00 for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2003 17:51:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198odG-000405-00 for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2003 17:51:54 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198odC-0003lr-00 for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2003 17:51:50 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198ocB-00044L-00 for ; Thu, 24 Apr 2003 23:50:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198obZ-00042R-00 for ; Thu, 24 Apr 2003 23:50:09 +0200 Original-Lines: 113 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4885 --=-=-= Marco sent this to me. As it has a spam status rating of -37.7, it must be good stuff. Hence I will share it here. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline From: Marco Parrone Date: 23 Apr 2003 14:32:37 +0200 X-Spam-Status: No, hits=-37.7 required=6.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE, QUOTED_EMAIL_TEXT,RCVD_IN_NJABL,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) MIME-Version: 1.0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dan Jacobson writes: > >> There should be a device to make sure the user knows the NEWS file > >> has changed, saving a timestamp in his .emacs. [...] > Hmmm, I bet if I make the NEWS file one of the mailboxes tracked by > gnus, that would be an interesting way of being aware if it changed... [...] You can download checkurls [1] version 0.5.0-alpha1 [2] [3], install it, and put the following in your ~/.emacs: (shell-command "checkurl file_in_subdir_n_from_the_end:///usr/local/share/emacs:2:etc/NEWS &" "*checkurl*") or checkurl file_in_subdir_n_from_the_end:///usr/local/share/emacs:2:etc/NEWS in your ~/.profile. This may send you and email a) the first time you run it, with the full NEWS file, and b) each time you run it and the file is changed, with a the differences from the previous version. See `info checkurls' and `info checkurl' for more infos. The URL can change depending on where you installed Emacs. file_in_subdir_n_from_the_end://PATH:N:PATH2 This means the PATH2 file in the Nth subdir (counting from the end) in the PATH directory. So if you have marco@marc0host:~/web/marc0$ ls /usr/local/share/emacs/ 21.3.50 site-lisp marco@marc0host:~/web/marc0$ then file_in_subdir_n_from_the_end:///usr/local/share/emacs:2:etc/NEWS will expand to /usr/local/share/emacs/21.3.50/etc/NEWS And then in the future if you have marco@marc0host:~/web/marc0$ ls /usr/local/share/emacs/ 21.3.50 24.5.40 site-lisp marco@marc0host:~/web/marc0$ then file_in_subdir_n_from_the_end:///usr/local/share/emacs:2:etc/NEWS will expand to /usr/local/share/emacs/24.5.40/etc/NEWS 1. http://www.autistici.org/marc0/CheckurlsHomepage.html 2. http://www.autistici.org/marc0/src/checkurls/checkurls-0.5.0-alpha1.tar.gz 3. http://www.autistici.org/marc0/src/checkurls/checkurls-0.5.0-alpha1.tar.gz - -- Marco Parrone - marc0@autistici.org www.autistici.org/marc0 2143 9E77 D5E6 115A 48AD A170 D0EE F736 (4E88 99C2) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 iD8DBQE+poed0O73Nk6ImcIRAs6aAJ9CYCS8YB++x4QkoJICRwaABu3/gQCeMGtB PNmJ1/OmVTf03e11ALqlVLM= =RqoB -----END PGP SIGNATURE----- --=-=-= -- http://jidanni.org/ Taiwan(04)25854780 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --=-=-=--