From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: using "variables" (correct term?) Date: Thu, 05 Feb 2015 22:31:40 +0100 Message-ID: <87r3u4jb9f.fsf@yahoo.fr> References: <87egq41a29.fsf@stevenarntson.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423171898 25145 80.91.229.3 (5 Feb 2015 21:31:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 21:31:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Steven Arntson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 22:31:37 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJU1P-0003YV-Mk for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 22:31:35 +0100 Original-Received: from localhost ([::1]:45671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJU1O-0004Eb-Vp for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 16:31:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJU1D-0004EG-I8 for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 16:31:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJU19-0001C6-IU for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 16:31:23 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:7714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJU19-0001Bl-DN for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 16:31:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0FAEfg01SkD4Xx/2dsb2JhbABahDGwAgEBAQEBAQaYMgKBYwEBAQEBfYQNAQQBeQULCAMhJQ8BBEkTG4d9AQwIwgaOIwGGIwEBCAIBH4YEgiqHSgeEKQEEmESGMIw7IoNvPTGCQgEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 05 Feb 2015 22:31:17 +0100 In-Reply-To: <87egq41a29.fsf@stevenarntson.com> (Steven Arntson's message of "Thu, 05 Feb 2015 10:34:54 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102515 Archived-At: Steven Arntson 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