From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#13685: a way to say that dir-locals should only apply to buffers with files Date: Wed, 13 Feb 2013 09:18:05 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1360775992 852 80.91.229.3 (13 Feb 2013 17:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 17:19:52 +0000 (UTC) Cc: 13685@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 18:20:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U5g06-0003Al-9r for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 18:20:06 +0100 Original-Received: from localhost ([::1]:59255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fzm-0000UP-RV for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 12:19:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fzi-0000PK-AE for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 12:19:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5fzX-0004mY-9m for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 12:19:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5fzX-0004mU-7D for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 12:19:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5g03-0004yk-8u for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 12:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2013 17:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13685-submit@debbugs.gnu.org id=B13685.136077595019041 (code B ref 13685); Wed, 13 Feb 2013 17:20:03 +0000 Original-Received: (at 13685) by debbugs.gnu.org; 13 Feb 2013 17:19:10 +0000 Original-Received: from localhost ([127.0.0.1]:54414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5fzC-0004x4-ID for submit@debbugs.gnu.org; Wed, 13 Feb 2013 12:19:10 -0500 Original-Received: from mail-qa0-f49.google.com ([209.85.216.49]:61150) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5fzA-0004wx-OM for 13685@debbugs.gnu.org; Wed, 13 Feb 2013 12:19:09 -0500 Original-Received: by mail-qa0-f49.google.com with SMTP id o13so655985qaj.1 for <13685@debbugs.gnu.org>; Wed, 13 Feb 2013 09:18:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=AT4r7C0c2TmaQ/nuALQjBE5sc2tcdke4dXj1LfOWDtA=; b=GW/2OVSQ5ZDPRoU+j0BvKr5SSzyBQuzq6sQZzl82Cgoh0Q7ZtyOwIx09B+bpPSunIY WBO/ST47ooLw9sm9vr8vrZGAxVLMcmpxZj7nL8xDqkMJQf6pUPPQA2pXjT+2V1RvfDyW sGZVumoid3VVw6cUJ4WNjuGremvLASPcVZApK796cRPhuwnU6/KbOAbIlCQ/xZtHNyYN vvt4GHcNAhjjD1qdXdYlBR+THqTeDalU8hhbkCW4U/MQFkWETHkdAESokSuR1RAJcQcz 0cgeJZ81IzCoFk1ZpifcwpJIxkiozrbu53LjX80w5LdFuzQobYyHjKPN4tb2ZvsJsbDM LD0A== X-Received: by 10.229.201.98 with SMTP id ez34mr2093632qcb.29.1360775915968; Wed, 13 Feb 2013 09:18:35 -0800 (PST) Original-Received: by 10.49.109.99 with HTTP; Wed, 13 Feb 2013 09:18:05 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: c3KcRcazAim--tpX4mkTaJQgnbA X-Gm-Message-State: ALoCoQkNOAq/7DccdiQ0w2VF/qGOMIMwrWr1xshv02ZAGg1iyWtIA5HtqAnru6t9DapGNWhm1Tu4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71187 Archived-At: On Wed, Feb 13, 2013 at 12:36 AM, Andreas Schwab wrote: > Josh writes: > >> Likewise, (apply-if . (lambda (buffer) (not (buffer-file-name buffer)))) > > Be careful about execution of arbitrary code. > > Andreas. Indeed, such a feature should be governed by `enable-local-eval' and `safe-local-eval-forms' or similar, with `buffer-file-name' being an element of the latter by default.