unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using variables $ma in expression 'let'
@ 2020-12-06 19:57 daniela-spit
  2020-12-06 20:02 ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: daniela-spit @ 2020-12-06 19:57 UTC (permalink / raw)
  To: Help Gnu Emacs

Notices that some code uses '$' in variable names.

What is it about?

   (let ((deactivate-mark nil) $ma $mb)






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using variables $ma in expression 'let'
  2020-12-06 19:57 Using variables $ma in expression 'let' daniela-spit
@ 2020-12-06 20:02 ` tomas
  2020-12-06 20:15   ` daniela-spit
  0 siblings, 1 reply; 4+ messages in thread
From: tomas @ 2020-12-06 20:02 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

On Sun, Dec 06, 2020 at 08:57:22PM +0100, daniela-spit@gmx.it wrote:
> Notices that some code uses '$' in variable names.
> 
> What is it about?
> 
>    (let ((deactivate-mark nil) $ma $mb)

Seen from Lisp's point of view, it's just a plain normal variable.

But perhaps the code author wants to convey something to you,
the reader.

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using variables $ma in expression 'let'
  2020-12-06 20:02 ` tomas
@ 2020-12-06 20:15   ` daniela-spit
  2020-12-06 21:23     ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: daniela-spit @ 2020-12-06 20:15 UTC (permalink / raw)
  To: tomas; +Cc: help-gnu-emacs


> Sent: Sunday, December 06, 2020 at 9:02 PM
> From: tomas@tuxteam.de
> To: help-gnu-emacs@gnu.org
> Subject: Re: Using variables $ma in expression 'let'
>
> On Sun, Dec 06, 2020 at 08:57:22PM +0100, daniela-spit@gmx.it wrote:
> > Notices that some code uses '$' in variable names.
> >
> > What is it about?
> >
> >    (let ((deactivate-mark nil) $ma $mb)
>
> Seen from Lisp's point of view, it's just a plain normal variable.
>
> But perhaps the code author wants to convey something to you,
> the reader.

Thank you, I simply wondered if it was some special tag interpreted
by emacs.

Do authors usually try to convey that a variable is only part of a function?

> Cheers
>  - t
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using variables $ma in expression 'let'
  2020-12-06 20:15   ` daniela-spit
@ 2020-12-06 21:23     ` tomas
  0 siblings, 0 replies; 4+ messages in thread
From: tomas @ 2020-12-06 21:23 UTC (permalink / raw)
  To: daniela-spit; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

On Sun, Dec 06, 2020 at 09:15:25PM +0100, daniela-spit@gmx.it wrote:
> 
> > Sent: Sunday, December 06, 2020 at 9:02 PM
> > From: tomas@tuxteam.de
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: Using variables $ma in expression 'let'
> >
> > On Sun, Dec 06, 2020 at 08:57:22PM +0100, daniela-spit@gmx.it wrote:
> > > Notices that some code uses '$' in variable names.
> > >
> > > What is it about?
> > >
> > >    (let ((deactivate-mark nil) $ma $mb)
> >
> > Seen from Lisp's point of view, it's just a plain normal variable.
> >
> > But perhaps the code author wants to convey something to you,
> > the reader.
> 
> Thank you, I simply wondered if it was some special tag interpreted
> by emacs.
> 
> Do authors usually try to convey that a variable is only part of a function?

I think there's no general rule. Ask the author :-)

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-06 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-06 19:57 Using variables $ma in expression 'let' daniela-spit
2020-12-06 20:02 ` tomas
2020-12-06 20:15   ` daniela-spit
2020-12-06 21:23     ` tomas

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