all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "Jan D." <jan.h.d@swipnet.se>, 3808@emacsbugs.donarmstrong.com
Cc: emacs-pretest-bug@gnu.org
Subject: bug#3808: 23.1.50; CC-mode: Impossible to set c-cleanup-list
Date: Sat, 11 Jul 2009 11:36:38 +0000	[thread overview]
Message-ID: <20090711113638.GA1088@muc.de> (raw)
In-Reply-To: <200907101114.n6ABEjXQ030837@gaffa.localdomain>

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).





  reply	other threads:[~2009-07-11 11:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 11:14 bug#3808: 23.1.50; CC-mode: Impossible to set c-cleanup-list Jan D.
2009-07-11 11:36 ` Alan Mackenzie [this message]
2009-07-12 10:33   ` Jan Djärv
2009-07-12 14:06     ` Alan Mackenzie
2009-07-12 15:21       ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090711113638.GA1088@muc.de \
    --to=acm@muc.de \
    --cc=3808@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.