all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: citation separation in reftex
Date: Fri, 16 Feb 2007 13:12:45 GMT	[thread overview]
Message-ID: <slrnetbbed.2s9.tyler.smith@blackbart.mynetwork> (raw)
In-Reply-To: mailman.4580.1171612232.2155.help-gnu-emacs@gnu.org

On 2007-02-16, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> Tyler Smith wrote:
>> 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 ...))
>

Neither of those seems to work :( I tried adding a hook as well, but
that also didn't work:

(add-hook 'reftex-mode-hook 'reftex-do-citation)

-- 
Regards,

Tyler Smith

  parent reply	other threads:[~2007-02-16 13:12 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
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 [this message]
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=slrnetbbed.2s9.tyler.smith@blackbart.mynetwork \
    --to=tyler.smith@mail.mcgill.ca \
    --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.