[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Re: keybinding: next and previous error
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX-devel] Re: keybinding: next and previous error |
Date: |
Fri, 27 May 2005 20:38:52 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
* David Kastrup (2005-05-27) writes:
> Ralf Angeli <address@hidden> writes:
>
>> * David Kastrup (2005-05-27) writes:
>>
>> Besides, we don't have to worry about `M-g p' because AUCTeX does not
>> provide functionality for jumping to a previous error.
>
> Might be worth providing in order not to be too confusing. Even if
> all we do is beep and say that we refuse to go back. Otherwise M-g n
> might go to the next TeX error, and M-g p backward for the last "grep"
> command.
I don't have a strong opinion on this one.
>> It will even be "difficult" to describe in the manual because unless
>> I am mistaken the outcome of remapping depends upon the binding of
>> `next-error' being customized by the user.
>
> Hm. So the patch is rather redefining next-error's behavior instead
> of introducing a keybinding?
It remaps the key binding. The culprit of course is that, say, if you
opened a LaTeX file, did some grepping and then want to use `M-g n'
for navigating the grep buffer this won't work because
`TeX-next-error' is called directly. There is no searching for
`next-error'-capable buffers.
Here is the patch which should make things clearer:
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.519
diff -u -r5.519 tex.el
--- tex.el 24 May 2005 17:13:14 -0000 5.519
+++ tex.el 27 May 2005 18:37:53 -0000
@@ -3247,6 +3248,9 @@
(define-key map "\C-c\C-l" 'TeX-recenter-output-buffer)
(define-key map "\C-c^" 'TeX-home-buffer)
(define-key map "\C-c`" 'TeX-next-error)
+ (if (featurep 'xemacs)
+ (substitute-key-definition 'next-error 'TeX-next-error map global-map)
+ (define-key map [remap next-error] 'TeX-next-error))
(define-key map "\C-c\C-w" 'TeX-toggle-debug-boxes)
;; From tex-fold.el
(define-key map "\C-c\C-o\C-f" 'TeX-fold-mode)
--
Ralf
[AUCTeX-devel] Re: keybinding: next and previous error, Ralf Angeli, 2005/05/28