From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: File local-variables broken? Date: Tue, 29 Apr 2008 15:25:00 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209475524 15294 80.91.229.12 (29 Apr 2008 13:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2008 13:25:24 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org To: "Neal Becker" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 29 15:25:56 2008 connect(): Connection refused 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.50) id 1JqpqC-0001zJ-1h for ged-emacs-devel@m.gmane.org; Tue, 29 Apr 2008 15:25:52 +0200 Original-Received: from localhost ([127.0.0.1]:34782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqppU-0007gx-P3 for ged-emacs-devel@m.gmane.org; Tue, 29 Apr 2008 09:25:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqppP-0007f8-Kb for emacs-devel@gnu.org; Tue, 29 Apr 2008 09:25:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqppO-0007dG-5v for emacs-devel@gnu.org; Tue, 29 Apr 2008 09:25:03 -0400 Original-Received: from [199.232.76.173] (port=53017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqppN-0007cx-Ul for emacs-devel@gnu.org; Tue, 29 Apr 2008 09:25:02 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqppN-0002EX-Ea for emacs-devel@gnu.org; Tue, 29 Apr 2008 09:25:01 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so9wah.10 for ; Tue, 29 Apr 2008 06:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Lc/NONR9tgo751Zt3kTp76IsyW/LdOpmMH26m1nZs0s=; b=oSJYZYXfBXFP98c4/q98Vo4FDxUFOFlcYFPC9vXGoPGgGl3ELFxpjQ1Uno+/kd9Q4ci7XA6boYHwTEcmdRyVWvKCHmj1Z/p6d9uoxv4Ae8FhhYW5Ot5O7oKTNcQ3r5WYAjeIsx0T0Y0RKpwVsKEPVfCsbzD+mNh9tKAkaw54SaI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DE5eCJp+q+gRDQpMuZVFNXHzzstJ+PdVPBR3m3eaPhlXwrISf2mvJatLoRo3g5A3bBYns4ehqVF0rjTkLpebyqYtEDV73WMTaILFKkaTc87EJQQpOhD47qUR7drqtseWYaGOqlUaMkFFgX5ZM13J7D64qNZmkOsBaB+mUOoegms= Original-Received: by 10.114.121.1 with SMTP id t1mr7846706wac.67.1209475500576; Tue, 29 Apr 2008 06:25:00 -0700 (PDT) Original-Received: by 10.115.72.13 with HTTP; Tue, 29 Apr 2008 06:25:00 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:96137 Archived-At: On Tue, Apr 29, 2008 at 1:50 PM, Neal Becker wrote: >> This is the offending code: >> // Local Variables: ** >> // mode:c ** >> // c-file-style:linux ** >> // c-basic-offset:4 ** >> // End: ** I see the problem. `c-file-style' complains (correctly) because `linux' is not a string. Using // c-file-style:"linux" ** works as expected. Now, the problem can be trivially fixed either by making `c-set-style' to accept also a symbol as first arg (and take its name), or forcing `c-postprocess-file-styles' to pass a string to `c-file-style'. Whether that would be a user convenience or an ugly hack is for the CC maintainers to decide :-) Juanma