all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Steven Arntson <steven@stevenarntson.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: using "variables" (correct term?)
Date: Thu, 05 Feb 2015 22:31:40 +0100	[thread overview]
Message-ID: <87r3u4jb9f.fsf@yahoo.fr> (raw)
In-Reply-To: <87egq41a29.fsf@stevenarntson.com> (Steven Arntson's message of "Thu, 05 Feb 2015 10:34:54 -0800")

Steven Arntson <steven@stevenarntson.com> writes:

> Perhaps what I'm really searching for here is just the correct term,
> because I don't think it's "variables."
>
> I'm trying to send out some form letters to various people, and am
> looking for a way to define something at the top, like:
>
>      #+RECIPIENT: Jane Doe
>
> which would automatically replace itself in the letter when referenced
> with "RECIPIENT". Is this called a "variable"? How would I go about
> doing it? I'm using org-mode, but the solution needn't be org-based.

Org somehow re-invented file local variables with its own syntax and
parsing. That's what most of these #+FOO: lines are. But they are not
arbitrary, so I don't think you can't use RECIPIENT (I didn't test).

OTOH, there is a feature called "macro" which are, again, specific to Org:
(info "(org) Macro replacement")

(they are not macros in the "keyboard macro" sense.)

HTH,

-- 
Nicolas Richard



  parent reply	other threads:[~2015-02-05 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 18:34 using "variables" (correct term?) Steven Arntson
2015-02-05 18:38 ` Andreas Politz
2015-02-05 19:01   ` Steven Arntson
2015-02-05 21:31 ` Nicolas Richard [this message]
2015-02-06  2:10   ` Steven Arntson
     [not found] <mailman.19347.1423161313.1147.help-gnu-emacs@gnu.org>
2015-02-05 20:07 ` Barry Margolin

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=87r3u4jb9f.fsf@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=steven@stevenarntson.com \
    /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.