[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: citation separation in reftex
From: |
Tyler Smith |
Subject: |
Re: citation separation in reftex |
Date: |
Wed, 21 Feb 2007 15:49:07 GMT |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
On 2007-02-21, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> Tyler Smith wrote:
>> 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)
>
> Before you've redefined the function and the original has been loaded
> (i.e. it's working, but not the way you want), where does `C-h f' say
> it is defined?
>
I can't see reftex-do-citation with C-h f, as it's not
interactive. reftex-citation is the function that calls it, and for
that:
reftex-citation is an interactive autoloaded Lisp function in `reftex-cite'.
--
Regards,
Tyler Smith
- citation separation in reftex, Tyler Smith, 2007/02/15
- Re: citation separation in reftex, Jim Ottaway, 2007/02/15
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/15
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/16
- Re: citation separation in reftex, Jim Ottaway, 2007/02/16
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/16
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/20
- Message not available
- Re: citation separation in reftex,
Tyler Smith <=
- Re: citation separation in reftex, Jim Ottaway, 2007/02/21
- Message not available
- Re: citation separation in reftex, Tyler Smith, 2007/02/21
- Re: citation separation in reftex, Kevin Rodgers, 2007/02/21