unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Tab/S-Tab in compile buffers
@ 2005-07-22 10:15 LENNART BORGMAN
  2005-07-22 18:22 ` Juri Linkov
  2005-07-22 22:52 ` Richard M. Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: LENNART BORGMAN @ 2005-07-22 10:15 UTC (permalink / raw)


A compilation buffer has a lot of underlined links. I would expect Tab/S-Tab to move between those just as they do in Help or Info (and in web-browsers ;-).

Should Tab/S-Tab behave the same way in a compilation buffer?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tab/S-Tab in compile buffers
  2005-07-22 10:15 Tab/S-Tab in compile buffers LENNART BORGMAN
@ 2005-07-22 18:22 ` Juri Linkov
  2005-07-22 22:43   ` Lennart Borgman
  2005-07-22 22:43   ` Lennart Borgman
  2005-07-22 22:52 ` Richard M. Stallman
  1 sibling, 2 replies; 5+ messages in thread
From: Juri Linkov @ 2005-07-22 18:22 UTC (permalink / raw)
  Cc: emacs-devel

> A compilation buffer has a lot of underlined links. I would expect
> Tab/S-Tab to move between those just as they do in Help or Info (and
> in web-browsers ;-).
>
> Should Tab/S-Tab behave the same way in a compilation buffer?

A few days ago I added the [backtab] key binding to the existing [tab]
key binding in grep.el for symmetry.  I don't know why [tab] was
bound to `compilation-next-file' instead of `compilation-next-error'.
It is more natural to expect [tab] moving to the next underlined link
(which `compilation-next-error' does).  So what about the following patch
(I also deleted commented-out bindings for next-line because this is now
implemented by `next-error-follow-minor-mode'):

Index: lisp/progmodes/compile.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.365
diff -c -r1.365 compile.el
*** lisp/progmodes/compile.el	9 Jul 2005 20:45:26 -0000	1.365
--- lisp/progmodes/compile.el	22 Jul 2005 18:19:55 -0000
***************
*** 1158,1163 ****
--- 1173,1180 ----
      (define-key map "\M-p" 'compilation-previous-error)
      (define-key map "\M-{" 'compilation-previous-file)
      (define-key map "\M-}" 'compilation-next-file)
+     (define-key map "\t" 'compilation-next-error)
+     (define-key map [backtab] 'compilation-previous-error)
  
      (define-key map " " 'scroll-up)
      (define-key map "\^?" 'scroll-down)
Index: lisp/progmodes/grep.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/grep.el,v
retrieving revision 1.39
diff -c -r1.39 grep.el
*** lisp/progmodes/grep.el	19 Jul 2005 14:21:23 -0000	1.39
--- lisp/progmodes/grep.el	22 Jul 2005 18:19:57 -0000
***************
*** 187,203 ****
      (define-key map "\^?" 'scroll-down)
      (define-key map "\C-c\C-f" 'next-error-follow-minor-mode)
  
-     ;; This is intolerable -- rms
- ;;;    (define-key map [remap next-line] 'compilation-next-error)
- ;;;    (define-key map [remap previous-line] 'compilation-previous-error)
- 
      (define-key map "\r" 'compile-goto-error)  ;; ?
      (define-key map "n" 'next-error-no-select)
      (define-key map "p" 'previous-error-no-select)
      (define-key map "{" 'compilation-previous-file)
      (define-key map "}" 'compilation-next-file)
!     (define-key map [backtab] 'compilation-previous-file)
!     (define-key map "\t" 'compilation-next-file)
  
      ;; Set up the menu-bar
      (define-key map [menu-bar grep]
--- 187,199 ----
      (define-key map "\^?" 'scroll-down)
      (define-key map "\C-c\C-f" 'next-error-follow-minor-mode)
  
      (define-key map "\r" 'compile-goto-error)  ;; ?
      (define-key map "n" 'next-error-no-select)
      (define-key map "p" 'previous-error-no-select)
      (define-key map "{" 'compilation-previous-file)
      (define-key map "}" 'compilation-next-file)
!     (define-key map "\t" 'compilation-next-error)
!     (define-key map [backtab] 'compilation-previous-error)
  
      ;; Set up the menu-bar
      (define-key map [menu-bar grep]

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tab/S-Tab in compile buffers
  2005-07-22 18:22 ` Juri Linkov
@ 2005-07-22 22:43   ` Lennart Borgman
  2005-07-22 22:43   ` Lennart Borgman
  1 sibling, 0 replies; 5+ messages in thread
From: Lennart Borgman @ 2005-07-22 22:43 UTC (permalink / raw)
  Cc: emacs-devel

Juri Linkov wrote:

>>A compilation buffer has a lot of underlined links. I would expect
>>Tab/S-Tab to move between those just as they do in Help or Info (and
>>in web-browsers ;-).
>>
>>Should Tab/S-Tab behave the same way in a compilation buffer?
>>    
>>
>
>A few days ago I added the [backtab] key binding to the existing [tab]
>key binding in grep.el for symmetry.  I don't know why [tab] was
>bound to `compilation-next-file' instead of `compilation-next-error'.
>It is more natural to expect [tab] moving to the next underlined link
>(which `compilation-next-error' does).  So what about the following patch
>(I also deleted commented-out bindings for next-line because this is now
>implemented by `next-error-follow-minor-mode'):
>  
>
Thanks, I think it would be nice to have this.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tab/S-Tab in compile buffers
  2005-07-22 18:22 ` Juri Linkov
  2005-07-22 22:43   ` Lennart Borgman
@ 2005-07-22 22:43   ` Lennart Borgman
  1 sibling, 0 replies; 5+ messages in thread
From: Lennart Borgman @ 2005-07-22 22:43 UTC (permalink / raw)
  Cc: emacs-devel

Juri Linkov wrote:

>>A compilation buffer has a lot of underlined links. I would expect
>>Tab/S-Tab to move between those just as they do in Help or Info (and
>>in web-browsers ;-).
>>
>>Should Tab/S-Tab behave the same way in a compilation buffer?
>>    
>>
>
>A few days ago I added the [backtab] key binding to the existing [tab]
>key binding in grep.el for symmetry.  I don't know why [tab] was
>bound to `compilation-next-file' instead of `compilation-next-error'.
>It is more natural to expect [tab] moving to the next underlined link
>(which `compilation-next-error' does).  So what about the following patch
>(I also deleted commented-out bindings for next-line because this is now
>implemented by `next-error-follow-minor-mode'):
>  
>
Thanks, I think it would be nice to have this.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tab/S-Tab in compile buffers
  2005-07-22 10:15 Tab/S-Tab in compile buffers LENNART BORGMAN
  2005-07-22 18:22 ` Juri Linkov
@ 2005-07-22 22:52 ` Richard M. Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: Richard M. Stallman @ 2005-07-22 22:52 UTC (permalink / raw)
  Cc: emacs-devel

    A compilation buffer has a lot of underlined links. I would expect Tab/S-Tab to move between those just as they do in Help or Info (and in web-browsers ;-).

It sounds like a good idea.  These buffers are usually read-only,
so the other usual meanings of TAB are not applicable.  There are
already commands to move to the next or previous error.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-22 22:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 10:15 Tab/S-Tab in compile buffers LENNART BORGMAN
2005-07-22 18:22 ` Juri Linkov
2005-07-22 22:43   ` Lennart Borgman
2005-07-22 22:43   ` Lennart Borgman
2005-07-22 22:52 ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).