all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: citation separation in reftex
Date: Fri, 16 Feb 2007 00:50:01 -0700	[thread overview]
Message-ID: <er3nn3$7gs$1@sea.gmane.org> (raw)
In-Reply-To: <slrneta8e1.tjg.tyler.smith@blackbart.mynetwork>

Tyler Smith wrote:
> 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. 

That indicates that the original function definition is loaded after
your .emacs file, probably because the reftex library isn't actually
loaded until some reftex command is used (i.e. autoloaded).

You could either explicitly load reftex before you redefine the
function:

(require 'reftex)
(defun reftex-do-citation ...)

Or defer the function redefinition until after reftex has been loaded:

(eval-after-load "reftex" '(defun reftex-do-citation ...))

-- 
Kevin Rodgers
Denver, Colorado, USA

  reply	other threads:[~2007-02-16  7:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 16:10 citation separation in reftex Tyler Smith
2007-02-15 20:33 ` Jim Ottaway
     [not found] ` <mailman.4566.1171571649.2155.help-gnu-emacs@gnu.org>
2007-02-16  3:15   ` Tyler Smith
2007-02-16  7:50     ` Kevin Rodgers [this message]
2007-02-16  9:44     ` Jim Ottaway
     [not found]     ` <mailman.4580.1171612232.2155.help-gnu-emacs@gnu.org>
2007-02-16 13:12       ` Tyler Smith
2007-02-21  3:04         ` Kevin Rodgers
     [not found]         ` <mailman.4828.1172027079.2155.help-gnu-emacs@gnu.org>
2007-02-21 15:49           ` Tyler Smith
2007-02-21 17:00             ` Jim Ottaway
     [not found]             ` <mailman.4855.1172077233.2155.help-gnu-emacs@gnu.org>
2007-02-21 20:38               ` Tyler Smith
2007-02-22  4:44                 ` Kevin Rodgers

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='er3nn3$7gs$1@sea.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.