From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe M. Coatmeur Newsgroups: gmane.emacs.help Subject: Concat var names ? Date: Mon, 28 May 2012 04:37:29 +0000 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1338176717 20771 80.91.229.3 (28 May 2012 03:45:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 May 2012 03:45:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 28 05:45:16 2012 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 1SYqtM-0007U2-Up for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2012 05:45:13 +0200 Original-Received: from localhost ([::1]:46133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYqtM-0005RD-Jn for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2012 23:45:12 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Injection-Info: mx04.eternal-september.org; posting-host="HXRtxP3eotRXsoacdvcZiQ"; logging-data="23900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AOgBk0Ha0gFRupJlchJK11Yds8b/bPEc=" User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.1 Mule/6.0 (HANACHIRUSATO) Cancel-Lock: sha1:sDeFxCi9XLEgvWzMecBbkdpMHlE= Original-Xref: usenet.stanford.edu gnu.emacs.help:192619 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:85025 Archived-At: Hi ; I have those two functions and I want to make them one : (defun mail-bug-desktop-notify-one () (mapcar (lambda (x) (if (not (member x mail-bug-advertised-mails-one)) (progn (mail-bug-desktop-notification (format "%s" (first x)) (format "%s \n%s" (second x) (third x)) "5000" mail-bug-new-mail-icon-one) (add-to-list 'mail-bug-advertised-mails-one x)))) mail-bug-unseen-mails-one)) But I have to create distinct lists, so I'd really like to be able to say (setq suffix "plop") (setq myvar-plop "value") (message "%s" (concat "myvar-" suffix)) And get "myvar-value" instead of myvar-plop... Or even better, to use the same mechanism, a mapcar, but what about the creation of mail-bug-advertised-mails-SUFFIX ? How do I instruct my function to tell one list from the other ? Phil