unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Drew Adams <drew.adams@oracle.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: [External] : Does defvar-local has same effect as make-variable-buffer-local?
Date: Sun, 16 May 2021 00:41:58 +0300	[thread overview]
Message-ID: <YKBAJrzceQ0pNa9b@protected.localdomain> (raw)
In-Reply-To: <SA2PR10MB44740EC658B405A4DD2E4954F32F9@SA2PR10MB4474.namprd10.prod.outlook.com>

* Drew Adams <drew.adams@oracle.com> [2021-05-16 00:02]:
> > (defmacro defvar-local (var val &optional docstring)
> >   `(progn (defvar ,var ,val docstring)
> >           (make-variable-buffer-local ',val)))
> 
> Sorry, `docstring' too should have a comma in front of it:
> 
> (defmacro defvar-local (var val &optional docstring)
>   `(progn (defvar ,var ,val ,docstring)
>           (make-variable-buffer-local ',val)))

Oh yes, I missed what you explained, thanks.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




  reply	other threads:[~2021-05-15 21:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 20:14 Does defvar-local has same effect as make-variable-buffer-local? Jean Louis
2021-05-15 20:49 ` [External] : " Drew Adams
2021-05-15 21:01   ` Drew Adams
2021-05-15 21:41     ` Jean Louis [this message]
2021-05-15 22:16       ` Drew Adams
2021-05-15 22:21         ` Jean Louis
2021-05-16  4:11 ` Eli Zaretskii
2021-05-16  8:09   ` Jean Louis
2021-05-16  8:52     ` Yuri Khan
2021-05-16 16:53       ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-16  8:55     ` Eli Zaretskii
2021-05-16 11:26       ` Jean Louis

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=YKBAJrzceQ0pNa9b@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).