all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: (lambda nil ...) quoted with ' rather than with #' in cc-mode
Date: Fri, 09 Sep 2011 22:49:48 -0400	[thread overview]
Message-ID: <jwv1uvpf7fz.fsf-monnier+emacs@gnu.org> (raw)

As I'm sure you know, Emacs recently started to warn that cc-mode.el
uses ' to quote some lambdas.

I couldn't figure out where that was coming from, so I changed
macroexp.el's message to include the complete lambda (since "(lambda nil
...)" was too vague), which lead me to:

  (c-lang-defconst c-mode-syntax-table
    ;; The syntax tables in evaluated form.  Only used temporarily when
    ;; the constants in this file are evaluated.
    t (funcall (c-lang-const c-make-mode-syntax-table)))

The offending quoted lambda is the one returned by c-lang-const.
So I think the quote is the one from:

	`',(c-get-lang-constant name nil mode)

The problem being (if my analysis is right) that
c-make-mode-syntax-table doesn't quite hold function values (which could
be quoted with ') but function expressions (which should be quoted with
#').

Not sure how/if best to fix this for now.   As long as you stick to
dynamic scoping, it won't make much of a difference, tho.


        Stefan



                 reply	other threads:[~2011-09-10  2:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=jwv1uvpf7fz.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /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.