From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: Re: citation separation in reftex Date: Fri, 16 Feb 2007 03:15:13 GMT Organization: Business Internet Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1171597282 2397 80.91.229.12 (16 Feb 2007 03:41:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2007 03:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 16 04:41:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HHtyF-0007yT-HA for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 04:41:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHtyF-0000vF-3u for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Feb 2007 22:41:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!elk.ncren.net!newsflash.concordia.ca!News.Dal.Ca!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 31 Original-NNTP-Posting-Host: 142.177.89.129 Original-X-Complaints-To: abuse@aliant.net Original-X-Trace: ursa-nb00s0.nbnet.nb.ca 1171595713 142.177.89.129 (Thu, 15 Feb 2007 23:15:13 AST) Original-NNTP-Posting-Date: Thu, 15 Feb 2007 23:15:13 AST Original-Xref: shelby.stanford.edu gnu.emacs.help:145641 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41246 Archived-At: On 2007-02-15, Jim Ottaway wrote: > On 15 Feb 2007, Tyler Smith wrote: >> I'm having a small problem with Auctex/Reftex. I often have multiple >> citations to include, and since the default separation is a comma with >> no space, the citation extends beyond the limits of the paragraph and >> autofill can't deal with it. How can I set reftex to insert citations >> separated by ', ' instead of ',' ? >> >> I tried the info manuals, but I couldn't find the answer there. > > Unfortunately, it appears to be hard-coded that way in reftex-cite.el in > the function reftex-citation and passim. > Thanks! I found the relevant section in reftex-do-citation: (let ((concat-keys (mapconcat 'car selected-entries ","))) and switched it to: (let ((concat-keys (mapconcat 'car selected-entries ", "))) I put the modified function in scratch and c-x c-e to run it, and now the function works as I want. How do I get the modifed code to run automatically? I tried putting it in .emacs but that doesn't work. -- Regards, Tyler Smith