From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: M-g suffixes. Was: Key binding M-g should really be goto-line Date: Fri, 18 Mar 2005 13:11:42 +0100 Message-ID: References: <87y8cx4b3e.fsf@jurta.org> <87hdj9s0yy.fsf@orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111149217 5632 80.91.229.2 (18 Mar 2005 12:33:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 12:33:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 13:33:37 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCGfP-0006qb-Dj for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 13:33:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCGvt-0001vl-9b for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 07:50:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCGvB-0001qq-UR for emacs-devel@gnu.org; Fri, 18 Mar 2005 07:49:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCGv4-0001o6-Kq for emacs-devel@gnu.org; Fri, 18 Mar 2005 07:49:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCGv4-0001kB-CI for emacs-devel@gnu.org; Fri, 18 Mar 2005 07:49:38 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCGKS-0006wh-Iv for emacs-devel@gnu.org; Fri, 18 Mar 2005 07:11:48 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DCGKR-0002tB-Qf for emacs-devel@gnu.org; Fri, 18 Mar 2005 07:11:48 -0500 Original-To: emacs-devel@gnu.org In-Reply-To: <87hdj9s0yy.fsf@orebokech.com> (Romain Francoise's message of "Fri, 18 Mar 2005 11:27:33 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34714 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34714 Romain Francoise writes: > Juri Linkov 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. Of course Juri is being facetious. The binding of M-g was a small change as compared to the improvements. If he'd have come up with them before, maybe the argument would not have taken so long: the improvements are what makes this really good. > Now that Richard has changed M-g to be a prefix key, can we > implement this plan? > > We already have: > > M-g M-g - goto-line > M-g g - goto-line > > The candidates are: > > M-g c - goto-char Maybe the binding M-g = would be a better complement to C-x = (what-cursor-position)? M-g b - goto-byte (non-existent yet) If one application is supposed to make use of error offsets from external applications, it is quite likely that those will be given in bytes instead of characters for this kind of granularity. goto-byte would need to take a look at buffer-file-coding-system in general, as it would not do to do the accounting in Emacs-internal units. > M-g n - next-error (goto-next-locus) > M-g M-n - next-error (goto-next-locus) > M-g p - previous-error > M-g M-p - previous-error Most definitely YES! > Undecided: > > M-g f - dired-goto-file? (doesn't work in non-Dired buffers) > M-g j - Kim's find-file-and-line-near-point? M-g . > M-g j - dired-jump? (or a similar function which prompts for a file > name) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum