From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value Date: Tue, 27 Apr 2010 18:42:03 -0400 Message-ID: <87sk6go6v8.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272408148 30335 80.91.229.12 (27 Apr 2010 22:42:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 22:42:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 00:42:21 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6tTv-0006qG-3M for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 00:42:19 +0200 Original-Received: from localhost ([127.0.0.1]:46133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6tTu-0005Sc-JD for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 18:42:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6tTp-0005SW-J5 for emacs-devel@gnu.org; Tue, 27 Apr 2010 18:42:13 -0400 Original-Received: from [140.186.70.92] (port=37176 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6tTk-0005SN-SE for emacs-devel@gnu.org; Tue, 27 Apr 2010 18:42:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6tTj-0004xb-N2 for emacs-devel@gnu.org; Tue, 27 Apr 2010 18:42:08 -0400 Original-Received: from pantheon-po34.its.yale.edu ([130.132.50.80]:49933) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6tTg-0004wj-Bb; Tue, 27 Apr 2010 18:42:04 -0400 Original-Received: from furry (dhcp128036014104.central.yale.edu [128.36.14.104]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3RMg328030211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Apr 2010 18:42:03 -0400 Original-Received: by furry (Postfix, from userid 1000) id 49D90C055; Tue, 27 Apr 2010 18:42:03 -0400 (EDT) In-Reply-To: (Sam Steingold's message of "Tue, 27 Apr 2010 18:09:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124272 Archived-At: Sam Steingold writes: > this means that I cannot really set bug-reference-url-format in the > "Local Variables:" > section together with "mode: bug-reference" if I also set > enable-local-variables to :safe. > > For your reference, I set bug-reference-url-format to > clisp-bug-reference-url-format: > > (defun clisp-bug-reference-url-format () > (concat "http://sourceforge.net/tracker/index.php?func=detail&aid=" > (match-string-no-properties 2) > "&group_id=1355&atid=" > (let ((kind (match-string-no-properties 1))) > (cond ((string-match "[Bb]ug" kind) "101355") > ((string-match "[Pp]atch" kind) "301355") > ((string-match "RFE" kind) "351355") > (t (error "unknown bug kind [%s]" kind)))))) Where do you define clisp-bug-reference-url-format? In your init file? If so, you could probably add (put 'bug-reference-url-format 'safe-local-variable (lambda (s) (or (stringp s) (eq s 'clisp-bug-reference-url-format)))) at the same place.