unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: hcz@hczim.de
Cc: emacs-devel@gnu.org
Subject: Re: gas-mode.el - Comments welcome
Date: Thu, 31 May 2007 11:07:35 +0200	[thread overview]
Message-ID: <86abvlcqeg.fsf@lola.quinscape.zz> (raw)
In-Reply-To: <f3lu10$hed$1@sea.gmane.org> (Heike C. Zimmerer's message of "Thu\, 31 May 2007 09\:37\:03 +0200")

"Heike C. Zimmerer" <nospam07q1@gmx.net> writes:

>> - fix naming to use the `gas-' (or `asm-') prefix for vars such as
>>   `line-cache'.  Provide defvars with docstring explaning what
>>   they contain.
>
> The caches are always buffer-local.  According to what I learned
> from the documentation, the prefix is only required for globals.

Buffer-local variables have global bindings (they don't go away after
a function finishes).  You are confusing them with let-bound
variables.

> I sometimes even deliberately removed the prefix from symbols to
> emphasize on its local binding (as here).  Anything wrong with it?

Yes.  Conflict with similarly named variables elsewhere.

-- 
David Kastrup

  reply	other threads:[~2007-05-31  9:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-30 14:43 gas-mode.el - Comments welcome Heike C. Zimmerer
2007-05-30 18:23 ` Masatake YAMATO
2007-05-30 22:18   ` Heike C. Zimmerer
2007-05-31  4:11     ` Masatake YAMATO
2007-05-30 23:05 ` Stefan Monnier
2007-05-31  7:37   ` Heike C. Zimmerer
2007-05-31  9:07     ` David Kastrup [this message]
2007-05-31  9:28       ` Heike C. Zimmerer
2007-05-31 17:07     ` Stefan Monnier
2007-06-01  9:18 ` Johan Bockgård
2007-06-01 13:09   ` Heike C. Zimmerer
2008-07-22 19:27 ` Dan Nicolaescu

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=86abvlcqeg.fsf@lola.quinscape.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=hcz@hczim.de \
    /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 public inbox

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

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