From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: citation separation in reftex
Date: Wed, 21 Feb 2007 15:49:07 GMT [thread overview]
Message-ID: <slrnetoqfj.nj1.tyler.smith@blackbart.mynetwork> (raw)
In-Reply-To: mailman.4828.1172027079.2155.help-gnu-emacs@gnu.org
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
next prev parent reply other threads:[~2007-02-21 15:49 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
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnetoqfj.nj1.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).