From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Pushing the mark from a primitive like goto-char Date: Tue, 05 Jan 2021 21:29:30 +0200 Message-ID: <83sg7f2ndx.fsf@gnu.org> References: <9815d21d-b20e-c6d8-aae0-77aa65a4138a@gmx.at> <87sg7pq2bx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38102"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, p.stephani2@gmail.com, juri@linkov.net, stefankangas@gmail.com, emacs-devel@gnu.org To: Daniel =?utf-8?Q?Mart=C3=ADn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 05 20:30:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kws28-0009gK-Q3 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Jan 2021 20:30:20 +0100 Original-Received: from localhost ([::1]:51574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kws27-0008CA-LI for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Jan 2021 14:30:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kws1S-0007g9-Ei for emacs-devel@gnu.org; Tue, 05 Jan 2021 14:29:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43212) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kws1R-0001E7-M0; Tue, 05 Jan 2021 14:29:37 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2161 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kws1Q-00087m-FR; Tue, 05 Jan 2021 14:29:37 -0500 In-Reply-To: (emacs-devel@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262541 Archived-At: > Date: Tue, 05 Jan 2021 20:06:28 +0100 > Cc: Philipp Stephani , > Emacs developers , Stefan Kangas , > Juri Linkov > From: Daniel Martín via "Emacs development discussions." > > - Create a 'goto-char-command' command in ELisp. > > - Move the interactive spec that is in 'goto-char' to this new command > and make it push the mark smartly (e.g. be careful when a region is > active). Then call 'goto-char'. > > - Rebind 'M-g c' to 'goto-char-command'. You mean, it will be impossible to invoke "M-x goto-char"?