Public bug reported:

Problem: emacs erroneously repositions the cursor before inserting a
reference when using reftex-citation.

Steps to reproduce:

1. Run emacs -q --no-site-file
2. Load the attached file testref.tex
3. Hit M-x reftex-mode RET
4. Position the cursor somewhere and hit C-c [ ano RET RET

What happens:

1. The cursor moves to the backslash in \end{bibliography}
2. \cite{ano} is inserted at this new cursor position

What should happen:

1. The cursor should not move
2. \cite{ano} should appear at the original cursor position

--------------------------------------------------

Emacs mode info, produced by C-h m in the buffer containing testref.tex

Enabled minor modes: Auto-Compression Auto-Encryption Blink-Cursor
File-Name-Shadow Font-Lock Global-Font-Lock Line-Number Menu-Bar
Mouse-Wheel Reftex Shell-Dirtrack Tool-Bar Tooltip Transient-Mark

(Information about these minor modes follows the major mode info.)

LaTeX mode:
Major mode for editing files of input for LaTeX.
Makes $ and } display the characters they match.
Makes " insert `` when it seems to be the beginning of a quotation,
and '' when it appears to be the end; it inserts " only after a \.
[etc]

--------------------------------------------------

Package version info:

$ apt-cache policy emacs23 emacs23-common
emacs23:
  Installed: 23.2+1-7ubuntu2
  Candidate: 23.2+1-7ubuntu2
  Version table:
 *** 23.2+1-7ubuntu2 0
        500 http://ie.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
emacs23-common:
  Installed: 23.2+1-7ubuntu2
  Candidate: 23.2+1-7ubuntu2
  Version table:
 *** 23.2+1-7ubuntu2 0
        500 http://ie.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

** Affects: emacs23 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/889077

Title:
  reftex-citation moves cursor and puts citation in the wrong place

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/889077/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to