all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: dhruva <dhruvakm@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: finding old-style-backquote
Date: Fri, 14 Sep 2007 13:23:26 -0400	[thread overview]
Message-ID: <jwv3axhrwm9.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <e3f230850709140739i6f55eb42t42554f7dafd31f23@mail.gmail.com> (dhruva's message of "Fri\, 14 Sep 2007 20\:09\:49 +0530")

> On 9/14/07, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> In any case C-s (` is not that hard to type, is it?

> (if (boundp '*def-font)
>     (progn
>       (if (boundp 'default-frame-plist)
> 	  (add-to-list 'default-frame-plist '(font ,*def-font)))
>       (add-to-list 'default-frame-alist '(font . ,*def-font))))

> In the above expression, I get a warning that it uses old style
> backquote. I am not able to catch it. Looking for identifying the
> culprit.

Buggy code: your new-style unquotes (i.e. ",*def-font") are not
inside backquotes so they will not be evaluated and your add-to-list will
hence not do what you intended.


        Stefan

      reply	other threads:[~2007-09-14 17:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14  7:51 finding old-style-backquote dhruva
2007-09-14 14:20 ` Stefan Monnier
2007-09-14 14:39   ` dhruva
2007-09-14 17:23     ` Stefan Monnier [this message]

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=jwv3axhrwm9.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dhruvakm@gmail.com \
    --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.