Re: Key binding M-g should really be goto-line (To M-g M-g or not to M-g)

2005-03-09 Thread Jari Aalto
| >David Kastrup <[EMAIL PROTECTED]> writes: | > no previous desire, not fitting the feature | > freeze. Is this a plot to distract people from releasing? | | IMO, it is a reasonable opportunity to DTRT before locking M-g down as | a single command-key only. Juri made interesting suggestings, an

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Romain Francoise
Juri Linkov <[EMAIL PROTECTED]> writes: > It would be useful to move `dired-jump' to dired.el and to modify it > to ask the file name with the default set to buffer-file-name (or to > create a new similar function and bind it to M-g f). I can second the suggestion to move `dired-jump' to dired.el

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Juri Linkov
[EMAIL PROTECTED] (Johan Bockgård) writes: > Indeed not. It's called `dired-jump' (bound to C-x C-j when dired-x > is loaded). It is good as a global binding, but it has one limitation: it can't jump to an arbitrary file, it jumps only to buffer-file-name when called not from a dired buffer. It w

Re: Disabling Tramp

2005-03-09 Thread Michael Albinus
[EMAIL PROTECTED] (Kim F. Storm) writes: >> Tramp will pass all file operations to ange-ftp then. > > Wouldn't it be good to mention this in etc/NEWS? done. > BTW, would it be possible to mention _why_ tramp is better than > ange-ftp...? I believe the NEWS file does it already. Best regards, M

Re: isearch-forward and Info-search

2005-03-09 Thread Juri Linkov
Miles Bader <[EMAIL PROTECTED]> writes: > I think it would be a lot less annoying if it at least changed the > prompt to say what it was doing, in the manner of a wrapped isearch > ("I-search in node ...: " ?). > > Maybe it could even act more like wrapped i-search, and fail once, > before proceedi

Re: isearch-forward and Info-search

2005-03-09 Thread Juri Linkov
Nick Roberts <[EMAIL PROTECTED]> writes: > Maybe theres been a long thread about this which I've missed, in which case > I apologise but is there a variable to change this behaviour back to the > old one? The variable is `Info-isearch-search' and when set to nil it changes the behavior to the old

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Juri Linkov
[EMAIL PROTECTED] (Kim F. Storm) writes: > One command I use quite often is "find-file-and-line-near-point" > which takes something like FILE:LINE "near" the cursor and jumps to > LINE in FILE. This is what `goto-line' is supposed to do. Since it was already completely modified recently with the

C-a moves point to the previous line

2005-03-09 Thread Kenichi Handa
I've just found that C-a moves point to the beginning of previous line when hit at the end of buffer. --- Ken'ichi HANDA [EMAIL PROTECTED] ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: isearch-forward and Info-search

2005-03-09 Thread Richard Stallman
I think it would be a lot less annoying if it at least changed the prompt to say what it was doing, in the manner of a wrapped isearch ("I-search in node ...: " ?). Maybe it could even act more like wrapped i-search, and fail once, before proceeding to the next info page if you

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Richard Stallman
I think I will move the goto-line binding to M-g M-g, making it a prefix key, so that in the future we can put on other commands. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Johan Bockgård
Miles Bader <[EMAIL PROTECTED]> writes: > Actually I often want to jump to a file's dired entry while visiting > the file. It's not like it's all _that_ hard to do now (just do `C-x > C-f RET' to visit the cur directory, and look for the file), but the > concept is not completely absurd. Indeed n

Re: Key binding M-g should really be goto-line

2005-03-09 Thread David Kastrup
Miles Bader <[EMAIL PROTECTED]> writes: > On Wed, 09 Mar 2005 23:34:54 +0100, David Kastrup <[EMAIL PROTECTED]> wrote: >> It seems absurd to have dired-goto-file as a global binding. > > Actually I often want to jump to a file's dired entry while visiting > the file. It's not like it's all _that_

Re: Disabling Tramp

2005-03-09 Thread Kevin Rodgers
Kai Gro?johann wrote: > One can remove the Tramp entries from file-name-handler-alist and > re-add the Ange-FTP entries there. But it's also possible to just > type "/ftp:[EMAIL PROTECTED]:/some/file" as the filename, or to set > tramp-default-method, as Michael mentioned. It's generally agreed th

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Miles Bader
On Wed, 09 Mar 2005 23:34:54 +0100, David Kastrup <[EMAIL PROTECTED]> wrote: > It seems absurd to have dired-goto-file as a global binding. Actually I often want to jump to a file's dired entry while visiting the file. It's not like it's all _that_ hard to do now (just do `C-x C-f RET' to visit t

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Kevin Rodgers
Richard Stallman wrote: This is not the part of Emacs that is important to improve. Hackers tend to focus their attention on the parts of Emacs that make it seem more elegant in programmers' terms, but this doesn't make Emacs more powerful or a better editor. Maybe not now, but an elegant rewrite m

Re: Key binding M-g should really be goto-line

2005-03-09 Thread David Kastrup
Romain Francoise <[EMAIL PROTECTED]> writes: > Juri Linkov <[EMAIL PROTECTED]> writes: > >> M-g could display a message: > >> Go to: line, M-g = line, char, file, next error, prev error, Other... > >> and have a keymap with the following key bindings: > >> M-g M-g - goto-line >> M-g l - goto

Re: [sigra@home.se: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows]

2005-03-09 Thread Stefan Monnier
> [The discussion is about a font-locking problem reported in CC Mode: The > user types the start of a C function, but puts a NL in the middle: > void function > (int x); > The second line gets incorrectly fontified, because in its > after-change-functions, font-lock cons

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Romain Francoise
Juri Linkov <[EMAIL PROTECTED]> writes: > M-g could display a message: > Go to: line, M-g = line, char, file, next error, prev error, Other... > and have a keymap with the following key bindings: > M-g M-g - goto-line > M-g l - goto-line > M-g c - goto-char > M-g f - dired-goto-fi

Re: [sigra@home.se: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows]

2005-03-09 Thread Alan Mackenzie
[EMAIL PROTECTED] has been added] [The discussion is about a font-locking problem reported in CC Mode: The user types the start of a C function, but puts a NL in the middle: void function (int x); The second line gets incorrectly fontified, because in its after-change-fu

Re: Disabling Tramp

2005-03-09 Thread Guy Gascoigne - Piggford
Thank you, that setting did exactly what I wanted. Guy Michael Albinus wrote: Guy Gascoigne - Piggford <[EMAIL PROTECTED]> writes: Using a build of cvs emacs, is there a simple way to disable tramp? I just want to use ange-ftp. Unloading Tramp wouldn't be sufficient because of the associa

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Lute Kamstra
Richard Stallman <[EMAIL PROTECTED]> writes: > Below is a quick "proof-of-concept" patch for src/eval.c and > lisp/emacs-lisp/debug.el to get a better idea of what I mean. > As you can see, the change to eval.c isn't that big. > > The code is not unclean, but I don't think it is a real

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Lute Kamstra
Richard Stallman <[EMAIL PROTECTED]> writes: > > does it have any real impact? > > It can be confusing for new users of the debugger: Hey, what's > that doing in my function? Did I put that there? > > The user probably rembemers having set "debug on entry" for the > function, and has

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Richard Stallman
Below is a quick "proof-of-concept" patch for src/eval.c and lisp/emacs-lisp/debug.el to get a better idea of what I mean. As you can see, the change to eval.c isn't that big. The code is not unclean, but I don't think it is a real problem that the debug-on-entry code is visible. So

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Richard Stallman
> does it have any real impact? It can be confusing for new users of the debugger: Hey, what's that doing in my function? Did I put that there? The user probably rembemers having set "debug on entry" for the function, and has just been reminded by entering the debugger, so that ought

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Richard Stallman
Temporary setting debugger-jumping-flag would solve the problem of stepping into the code of the debugger. (I'll implement this fix.) Thanks. The debug-entry-code would still be visible in the backtrace however. That is not a problem. It might e

Re: Do you understand this?

2005-03-09 Thread Richard Stallman
I installed some text that I hope explains this better. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: English usage bug in bytecomp.el

2005-03-09 Thread Richard Stallman
I think David's suggestion of "as of" is good, though I think better as a simple replacement for "since" than at the front: FOO is an obsolete function (as of 21.4) That looks good. ___ Emacs-devel mailing list Emacs-devel@gnu.org http:

Re: Disabling Tramp

2005-03-09 Thread Kim F. Storm
[EMAIL PROTECTED] (Kai GroÃjohann) writes: > [EMAIL PROTECTED] (Kim F. Storm) writes: > >> BTW, would it be possible to mention _why_ tramp is better than >> ange-ftp...? > > I think that's difficult because Tramp isn't better. It does a > different job. The way I see it, it does the same job (a

Re: Disabling Tramp

2005-03-09 Thread Kai Großjohann
[EMAIL PROTECTED] (Kim F. Storm) writes: > BTW, would it be possible to mention _why_ tramp is better than > ange-ftp...? I think that's difficult because Tramp isn't better. It does a different job. Tramp consists of three parts. One part groks filenames of the form "/method:[EMAIL PROTECTED]

Re: Key binding M-g should really be goto-line

2005-03-09 Thread David Kastrup
Miles Bader <[EMAIL PROTECTED]> writes: >> My proposal for an C-x ` alternative would be C-x ? which appears to >> be free at the moment. ? is a frequent character in all languages I >> know, and so it should be more accessible than ` on most keyboards. >> It also is connotated with "error" somew

Re: obscure Emacs redisplay bug (Windows?)

2005-03-09 Thread Stephan Stahl
Hi Kim. [EMAIL PROTECTED] (Kim F. Storm) said: >>> Maybe it was built in a special way? >>> >> >> `emacs-version' gives me >> >> GNU Emacs 21.3.50.1 (i386-mingw-windows98.3000) of 2005-01-30 on NONIQPC > > Anybody else tried that version with good results? I'm using the same version (but running

Re: obscure Emacs redisplay bug (Windows?)

2005-03-09 Thread Jason Rumney
Kim F. Storm wrote: "Martin Rudalics" <[EMAIL PROTECTED]> writes: Do you get a menu-bar if you start emacs -q ? No. No menu-bar on windows -- that's very odd. Sounds like the version you got is hoaxed? Windows ME (as long as Emacs does

Re: obscure Emacs redisplay bug (Windows?)

2005-03-09 Thread Stephan Stahl
Hi Kim. [EMAIL PROTECTED] (Kim F. Storm) said: >>> Maybe it was built in a special way? >>> >> >> `emacs-version' gives me >> >> GNU Emacs 21.3.50.1 (i386-mingw-windows98.3000) of 2005-01-30 on NONIQPC > > Anybody else tried that version with good results? I'm using the same version (but running

browse-url.el support for firefox

2005-03-09 Thread Simon Josefsson
Ok to install? Conditioned on copyright assignments, of course. (I've asked [EMAIL PROTECTED], although Steve have papers for Emacs on file before.) Not sure if the patch is really copyrightable though, it is mostly cut'n'paste'n'search'n'replace. While I'm at it, I find browse-url.el slightly i

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Kim F. Storm
David Kastrup <[EMAIL PROTECTED]> writes: > Juri Linkov <[EMAIL PROTECTED]> writes: > >> 2. goto-line is not too frequent command to deserve the sole >> M-g key. There are many other goto-related commands that could >> share the same mnemonics and have the common M-g prefix key. > > Forget it. N

Re: [ps-print] Why imposing symbols for user functions?

2005-03-09 Thread drkm
Richard Stallman <[EMAIL PROTECTED]> wrote: > If it works, I guess the change is ok. > Have you tried it and does it work? Yes, I use it for many months ago, with lambda functions in `ps-left-header' and `ps-right-header'. --drkm Découvrez le nouveau Yaho

Re: obscure Emacs redisplay bug (Windows?)

2005-03-09 Thread Kim F. Storm
"Martin Rudalics" <[EMAIL PROTECTED]> writes: >> Do you get a menu-bar if you start emacs -q ? > > No. > No menu-bar on windows -- that's very odd. Sounds like the version you got is hoaxed? >> >> If you do, something in your .emacs disables the menu-bar. >> > > I don't get a menubar without any

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Miles Bader
> My proposal for an C-x ` alternative would be C-x ? which appears to > be free at the moment. ? is a frequent character in all languages I > know, and so it should be more accessible than ` on most keyboards. > It also is connotated with "error" somewhat. That's really no better than C-x ` so w

Re: English usage bug in bytecomp.el

2005-03-09 Thread Miles Bader
On Wed, 09 Mar 2005 10:49:50 +0100, David Kastrup <[EMAIL PROTECTED]> wrote: > "FOO is an obsolete function in version 21.4 and later." Your original suggestion of "as of" seems better: "FOO is an obsolete function (as of Emacs 21.4)" Seems simple, correct, very clear, and is just about the s

Re: Problems with debug-on-entry in the Lisp debugger.

2005-03-09 Thread Lute Kamstra
Stefan Monnier <[EMAIL PROTECTED]> writes: >> This gives a backtrace like this: > >> -- Buffer: *Backtrace* -- >> Debugger entered--entering a function: >> * (lambda (var) (if (or inhibit-debug-on-entry debugger-jumping-flag) nil >> (debug ...)) (list (quote setq) var (list ... var)))(x)

Re: require-hard-newlines to use newline

2005-03-09 Thread Chong Yidong
> 2. Defining two new abnormal hooks, maybe named yank-encode-functions and > kill-encode-functions, to be called by kill-region etc (or possibly the > lower-level functions like kill-new and kill-append.) Each function would > be called with one argument, the yanked or killed string, and return an

Re: English usage bug in bytecomp.el

2005-03-09 Thread David Kastrup
Richard Stallman <[EMAIL PROTECTED]> writes: > However, a variant which might be even clearer, and maybe less > objectionable would be > > How about "FOO is an obsolete function (now and since 21.4)". That sounds weird when encountered in the 21.4 release, so one would need to edit this _

Re: Key binding M-g should really be goto-line

2005-03-09 Thread David Kastrup
Juri Linkov <[EMAIL PROTECTED]> writes: > I see `goto-line' finally bound to M-g in CVS. Good news! After > such a big change, it is time now for a few improvements. Can you spell "Can-Of-Worms"? Can you spell "feature freeze"? > 1. Before this change, font-lock-fontify-block was bound to `M-

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Kim F. Storm
Juri Linkov <[EMAIL PROTECTED]> writes: > 2. goto-line is not too frequent command to deserve the sole > M-g key. There are many other goto-related commands that could > share the same mnemonics and have the common M-g prefix key. Brilliant ideas!! I second ALL of your suggestions. One command

Re: Disabling Tramp

2005-03-09 Thread Kim F. Storm
Michael Albinus <[EMAIL PROTECTED]> writes: >> Using a build of cvs emacs, is there a simple way to disable tramp? I >> just want to use ange-ftp. > > Unloading Tramp wouldn't be sufficient because of the associated > autoloads. Instead of, you might declare this: > > (setq tramp-default-method

Re: Key binding M-g should really be goto-line

2005-03-09 Thread Miles Bader
On Wed, 09 Mar 2005 09:05:33 +0200, Juri Linkov <[EMAIL PROTECTED]> wrote: > 2. goto-line is not too frequent command to deserve the sole > M-g key. There are many other goto-related commands that could > share the same mnemonics and have the common M-g prefix key. Hmmm, not a bad idea. I especi

Re: isearch-forward and Info-search

2005-03-09 Thread Miles Bader
On Wed, 9 Mar 2005 20:32:35 +1300, Nick Roberts <[EMAIL PROTECTED]> wrote: > If I look for something in an Info manual, I use Info-search (s) and if I > looked for something on a particular page, I would use isearch-forward > (C-s). However, now isearch-forward now also searches the subsequent manu