From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jari.aalto@poboxes.com (Jari Aalto+mail.linux) Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Mapping of M-g should be goto-line Date: Thu, 25 Mar 2004 12:32:38 +0200 Organization: Private Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <861xnhfee8.fsf@avet.kvota.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=macintosh Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1080210539 18195 80.91.224.253 (25 Mar 2004 10:28:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 10:28:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 25 11:28:49 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6S6T-0007Wc-00 for ; Thu, 25 Mar 2004 11:28:49 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6S6T-0007Gq-00 for ; Thu, 25 Mar 2004 11:28:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6S55-0007zg-UG for emacs-devel@quimby.gnus.org; Thu, 25 Mar 2004 05:27:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6S4Z-0007ps-Fb for emacs-devel@gnu.org; Thu, 25 Mar 2004 05:26:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6S2I-0007Cn-Pm for emacs-devel@gnu.org; Thu, 25 Mar 2004 05:25:02 -0500 Original-Received: from [193.229.0.48] (helo=fep21-app.kolumbus.fi) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6Rxd-00068T-C8 for emacs-devel@gnu.org; Thu, 25 Mar 2004 05:19:41 -0500 Original-Received: from poboxes.com ([81.197.3.110]) by fep21-app.kolumbus.fi with ESMTP id <20040325101935.OIIJ19565.fep21-app.kolumbus.fi@poboxes.com>; Thu, 25 Mar 2004 12:19:35 +0200 Original-To: Danilo Segan In-Reply-To: <861xnhfee8.fsf@avet.kvota.net> (Danilo Segan's message of "Thu, 25 Mar 2004 10:46:07 +0100") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (windows-nt) (i386-msvc-nt5.0.2195) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20887 * Thu 2004-03-25 Danilo Segan gmx.net> mail.default.spool | Today at 7:11, Jari Aalto wrote: |=20 | > 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.=20 |=20 | 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)?=20 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. I have 20-40 terminals open to run and monitor various tasks. Including command 'grep' and I use it with -n to get line numbers. It's different to have 20 terminals open in all correct directory locations when you have wealth of bash scripts and aliases available. Switching to Emacs to typing M-x grep + long directory names, which I might write wrong is not what people want to do. They might, but the terminal usually wins (think about readline macros that can be used to manipulate string input from previous commands)- 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. =20 | > Users need line information. After all, Emacs for most, is | > programming language development environment: C / C++, Python, | > Perl, Ruby etc. In time they may find and start use other | > features like Gnus, Mail and others. |=20 | Exactly, and that's why the next-error and friends are so useful =D1 I | need not worry about typing the exact line number, because I do not | care about the exact line number. I care about the place with | certain code/error/whatever, and that's where I want to go. Emacs | has the context available, so better make use of it. |=20 | FWIW, C-x ` is bound to next-error, and it's a big win in situations | like this. Please remember that Emacs can't do for every programming language. PHP displays errors in Web page, but your code is in Emacs. ... and you would need M-g (goto-line) all the time. Other Web-based programming languages reports problems in the page, not to Emacs. | > The "de facto" situation for long has been that everybody maps | > M-g to goto-line. People advice that in newsgroups, because it | > is indeed the most logical key. | > | > If we would take a poll in Emacs newsgroups, presumably the | > "yes" votes for goto-line would win in great majority. |=20 | Perhaps, but that doesn't mean that it's a right thing to do.=20=20 | I seldom use current M-g binding as well, but not less than M-x | goto-line.=20 The right thing for M-g is exactly that. To move it to a sensible function, and goto-line has been it for more years than I can remember. Let's think about the "average joe" how he would see it. Jari --=20 http://tiny-tools.sourceforge.net/ Swatch @time http://www.mir.com.my/iTime/itime.htm http://www.ryanthiessen.com/swatch/resources.htm Use Licenses! http://www.linuxjournal.com/article.php?sid=3D6225 Which Licence? http://www.linuxjournal.com/article.php?sid=3D4825 OSI Licences http://www.opensource.org/licenses/