all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danilo Segan <dsegan@gmx.net>
Cc: Juanma Barranquero <jmbarranquero@wke.es>, Lucas <lukhas@free.fr>,
	emacs-devel@gnu.org
Subject: Re: Suggestion: Mapping of M-g should be goto-line
Date: Thu, 25 Mar 2004 12:23:34 +0100	[thread overview]
Message-ID: <86brmldvbd.fsf@avet.kvota.net> (raw)
In-Reply-To: <fzbx43p5.fsf@blue.sea.net> (Jari Aalto's message of "Thu, 25 Mar 2004 12:32:38 +0200")

Hi Jari,  Lucas, Juanma,

Today at 11:32, Jari Aalto wrote:

> * Thu 2004-03-25 Danilo Segan <dsegan <AT> gmx.net> mail.default.spool
> | Today at 7:11, Jari Aalto wrote:
> | 
> | >         If put side by side, "set face default" and goto-line, I would
> | >         estimate that the 99 % of the cases, there is more need for
> | >         goto-line. Therefore it would be better if the M-g was mapped
> | >         to it. 
> | 
> | Emacs tries hard to make goto-line unnecessary, AFAICT.  Can you
> | provide an example of when goto-line couldn't be replaced with a
> | better functionality (such as using M-x next-error)? 
>
> Only if user knows Emacs. He doesn't when he is a beginner. And even
> long period of Emacs experience, people still run many, many programs
> outside of emacs in their terminals.

That's only a reason to educate them better, not to adjust behaviour.
Emacs is not too friendly to beginners at all -- they'd need to
relearn a lot of things, no matter what editor they used before (if
it wasn't Emacs).  This is only one minor point in all the effort
they'll need to expend.

At the same time, Lucas writes:
> >
> > FWIW, C-x ` is bound to next-error, and it's a big win in situations
> > like this.
> 
> And, ` is on AltGR 7 here, so basically absolutely unusable on French
> keyboard layouts. Of course next-error is bound to something else

Which would only go so far to recommend assigning M-g to next-error,
perhaps? ;)


Also, Jari mentioned this example:

> Emacs is no substitute for all system tasks. It is a great companion,
> but I believe only handful of people do _all_ from inside Emacs and
> not ever open a single terminal.
>
> So, line numbers come from everywhere. You might be running 3-5 server
> screen, shared samba mounts, then you see error in next screen and want
> to view it in Emacs that contains the log file or configuration file ...
> the needs are many.

...which complements what Juanma Barranquero wrote:

> Some people, like me, doesn't do everything inside Emacs. I rarely, if
> ever, use compile.el (I prefer to compile outside Emacs and search for
> bugs the old way). Also, I compare sources with a visual tool and then
> go to Emacs to edit, if needed. In these cases, M-x goto-line is very
> useful (in fact, I bound it to H-S-left long time ago).

I suggest you try "emacsclient -n +5 path/to/file" (of course, I've
got the alias "ec" for "emacsclient").  If you're not working in
Emacs all the time, this is a major gain -- you need not switch
between windows or even workspaces while entering a line number, and
you can look at it while you're typing it (with lots of numbers on the
screen, I find it much easier to mechanically type, instead of trying
to remember a number and enter it in Emacs directly).

This way is much better -- terminal already has the right context
(i.e. more suitable cwd), so you need not search the filename by full
path in Emacs, or switch between buffers -- you've got all the data
you need at your sight. (Of course, if the file is already opened in
a buffer, emacsclient simply Does The Right Thing.)

With all this, I rarely if ever need to use M-x goto-line.  For those
that are not willing to go the "better" path (of course, if it becomes
a consensus that this is actually "better", I'm not insisting this
is), they can always customize their keybindings. 

For "average joe", we want to make them learn the better way.

With the examples you mentioned, it seems that you haven't made use
of emacsclient so far; I recommend it, since it's been my $EDITOR for
a long time. ;)

[There's one catch to all this though: (server-start), required by
emacsclient, is not run by default.]

Cheers,
Danilo

  reply	other threads:[~2004-03-25 11:23 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25  6:11 Suggestion: Mapping of M-g should be goto-line Jari Aalto+mail.emacs
2004-03-25  7:23 ` Eli Zaretskii
2004-03-25  9:10   ` John Wiegley
2004-03-25 15:06     ` Eric Hanchrow
2004-03-25 16:39       ` ams
2004-03-25 21:54         ` Stefan Monnier
2004-03-25 22:21           ` David Kastrup
2004-03-25 23:27             ` Stefan Monnier
2004-03-25 23:41               ` David Kastrup
2004-03-25 23:53                 ` Stefan Monnier
2004-03-26  0:50                   ` David Kastrup
2004-03-26  2:27                     ` Stefan Monnier
2004-03-26 11:14                       ` Kim F. Storm
2004-03-26 10:29                         ` Juanma Barranquero
2004-03-26 12:38                           ` Kim F. Storm
2004-03-26 13:36                             ` Juanma Barranquero
2004-03-26 14:25                             ` Stefan Monnier
2004-03-27  0:07                               ` Miles Bader
2004-03-27 14:53                                 ` Juanma Barranquero
2004-04-01  1:53                                   ` Miles Bader
2004-03-28  1:36                                 ` Richard Stallman
2004-03-26 15:27                       ` Per Abrahamsen
2004-03-26 17:49                         ` Alan Mackenzie
2004-03-26 15:19                   ` Per Abrahamsen
2004-03-26 16:40                     ` David Kastrup
2004-04-01 14:25                       ` Per Abrahamsen
2004-04-01 16:15                         ` David Kastrup
2004-03-25 16:26   ` Stefan Monnier
2004-03-26  0:19     ` Kim F. Storm
2004-03-26 16:53     ` Alan Mackenzie
2004-03-25  9:46 ` Danilo Segan
2004-03-25  9:54   ` Lucas
2004-03-25 10:21   ` Juanma Barranquero
2004-03-25 10:32   ` Jari Aalto+mail.linux
2004-03-25 11:23     ` Danilo Segan [this message]
2004-03-25 11:34       ` Lucas
2004-03-25 14:22         ` Vinicius Jose Latorre
2004-03-25 11:55       ` Juanma Barranquero
2004-03-25 12:30         ` Danilo Segan
2004-03-25 13:43           ` David Kastrup
2004-03-25 14:34             ` Danilo Segan
2004-03-29 20:34               ` Ted Lemon
2004-03-25 13:53           ` Juanma Barranquero
2004-03-25 14:49             ` Danilo Segan
2004-03-25 15:14               ` Juanma Barranquero
2004-03-25 16:08             ` Kim F. Storm
2004-03-25 16:53               ` Stefan Monnier
2004-03-25 18:56                 ` Per Abrahamsen
2004-03-25 19:39                   ` David Kastrup
2004-03-25 12:25       ` Jari Aalto+mail.linux
2004-03-25 12:55         ` Danilo Segan
2004-03-25 14:16           ` Jari Aalto
2004-03-25 16:28           ` David Kastrup
2004-03-25 17:28           ` Alan Shutko
2004-03-25 12:27       ` David Kastrup
2004-03-25 13:47         ` Danilo Segan
2004-03-25 15:18           ` David Kastrup
2004-03-25 13:35       ` Kim F. Storm
2004-03-25 13:53         ` Danilo Segan
2004-03-25 21:09           ` Juri Linkov
2004-03-27  5:52           ` Richard Stallman
2004-03-27 16:30             ` Joachim Nilsson
2004-03-26  0:11         ` Jari Aalto+mail.linux
2004-03-26 14:31           ` David Kastrup
2004-03-26 15:13             ` Stefan Monnier
2004-03-26 21:31             ` Jari Aalto
2004-03-26 21:29               ` David Kastrup
2004-03-27  0:16                 ` Miles Bader
2004-03-28 17:02                   ` Jari Aalto+mail.emacs
2004-03-28 17:37                     ` David Kastrup
2004-03-28 21:11                       ` Miles Bader
2004-03-28 21:10                     ` Miles Bader
2004-03-25 11:42 ` David Kastrup
2004-03-25 12:27   ` Jari Aalto+mail.emacs
2004-03-25 14:56     ` Joachim Nilsson
2004-03-25 18:03       ` David Kastrup
2004-03-25 19:10       ` Per Abrahamsen
2004-03-25 16:47   ` Kim F. Storm
2004-03-25 16:42     ` David Kastrup
2004-03-26  0:13       ` Kim F. Storm
2004-03-27  5:52   ` Richard Stallman
2004-03-27  8:14     ` Jérôme Marant
2004-03-27 11:00       ` David Kastrup
2004-03-27 13:50         ` Jérôme Marant
2004-03-27 10:46     ` David Kastrup
2004-03-28  4:25       ` Richard Stallman
2004-03-28 17:03         ` Kim F. Storm
2004-03-28 21:14           ` Miles Bader
2004-04-01 16:04           ` Per Abrahamsen
2004-04-01 17:35             ` David Kastrup
2004-03-27 16:17     ` Joachim Nilsson
2004-03-28  4:25       ` Richard Stallman
2004-03-28 13:32         ` Joachim Nilsson
2004-03-28 13:50           ` David Kastrup
2004-03-28 17:52             ` Robert J. Chassell
2004-03-28 17:29           ` Stefan Monnier
2004-03-28 21:18           ` Miles Bader
2004-03-29 20:56           ` Richard Stallman
2004-03-31  9:30 ` Kim F. Storm

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86brmldvbd.fsf@avet.kvota.net \
    --to=dsegan@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=jmbarranquero@wke.es \
    --cc=lukhas@free.fr \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.