From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3808: 23.1.50; CC-mode: Impossible to set c-cleanup-list Date: Sat, 11 Jul 2009 11:36:38 +0000 Message-ID: <20090711113638.GA1088@muc.de> References: <200907101114.n6ABEjXQ030837@gaffa.localdomain> Reply-To: Alan Mackenzie , 3808@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247313483 3329 80.91.229.12 (11 Jul 2009 11:58:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2009 11:58:03 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Jan D." , 3808@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 11 13:57:55 2009 Return-path: Envelope-to: geb-bug-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 1MPbDH-0006pS-Bq for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 13:57:55 +0200 Original-Received: from localhost ([127.0.0.1]:60295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPbDG-0002Pw-Sq for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 07:57:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPbCy-0002EI-0n for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2009 07:57:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPbCt-0002AB-1b for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2009 07:57:35 -0400 Original-Received: from [199.232.76.173] (port=48233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPbCs-0002A2-Sb for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2009 07:57:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33841) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPbCs-0006sm-4f for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2009 07:57:30 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6BBvRtt011123; Sat, 11 Jul 2009 04:57:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6BBeV2b008393; Sat, 11 Jul 2009 04:40:31 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 11 Jul 2009 11:40:30 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3808 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3808-submit@emacsbugs.donarmstrong.com id=B3808.12473120957434 (code B ref 3808); Sat, 11 Jul 2009 11:40:30 +0000 Original-Received: (at 3808) by emacsbugs.donarmstrong.com; 11 Jul 2009 11:34:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6BBYi3b007427 for <3808@emacsbugs.donarmstrong.com>; Sat, 11 Jul 2009 04:34:46 -0700 Original-Received: (qmail 22308 invoked by uid 3782); 11 Jul 2009 11:34:42 -0000 Original-Received: from acm.muc.de (pD9E50B74.dip.t-dialin.net [217.229.11.116]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 11 Jul 2009 13:34:40 +0200 Original-Received: (qmail 8916 invoked by uid 1000); 11 Jul 2009 11:36:38 -0000 Content-Disposition: inline In-Reply-To: <200907101114.n6ABEjXQ030837@gaffa.localdomain> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 11 Jul 2009 07:57:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29318 gmane.emacs.pretest.bugs:24769 Archived-At: Hi, Jan! On Fri, Jul 10, 2009 at 01:14:45PM +0200, Jan D. wrote: > I customize c-cleanup-list. This is then the full contents of my > .emacs: > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(c-cleanup-list (quote (scope-operator space-before-funcall)))) > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > ) > I start emacs with --no-site-file, open a .c-file. Just done this, in a new userid, having copied your .emacs. To be sure, I tried on a freshly updated CVS Emacs. > Check the value of c-cleanup-list: > c-cleanup-list is a variable defined in `cc-vars.el'. > Its value is (scope-operator) I can't reproduce the problem; I get: Its value is (scope-operator space-before-funcall) , just as desired. > Local in buffer xftfont.c; global value is > (scope-operator space-before-funcall) Well, that looks OK. :-) Might it be that there's a local variables section at the end of xftfont.c which is overriding c-cleanup-list? > And indeed, space-before-funcall is not in effect. It seems impossible to > set this variable. I also tried setting c-old-style-variable-behavior to t, > but it made no difference. > The manual needs to explain how to set variables in a manner that works, > an example with lisp to add to .emacs would be nice also. "The manual" being the CC Mode manual, of course. In the appendix "Sample .emacs File", there's an example of c-cleanup-list being set in a style. The instructions on how to set "style variables" in general (of which c-cleanup-list is one) are on the page "Configuration Basics" and its sup-page "Style Variables". So I think the information is there, but perhaps it's not easy enough to find. Could you, perhaps, reconstruct how you went about looking for the info? Maybe the manual needs an extra hint or two somewhere. Thanks! -- Alan Mackenzie (Nuremberg, Germany).