From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: Pushing the mark from a primitive like goto-char
Date: Tue, 5 Jan 2021 20:56:27 +0100
Message-ID:
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: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="4337"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: martin rudalics , Emacs developers ,
Stefan Kangas , Juri Linkov
To: =?UTF-8?Q?Daniel_Mart=C3=ADn?=
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 05 20:57:51 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 1kwsSk-00012X-W3
for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Jan 2021 20:57:50 +0100
Original-Received: from localhost ([::1]:55192 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1kwsSk-00067o-1n
for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Jan 2021 14:57:50 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57366)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1kwsRg-0005hN-WA
for emacs-devel@gnu.org; Tue, 05 Jan 2021 14:56:45 -0500
Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:44681)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1kwsRd-0002kk-5h
for emacs-devel@gnu.org; Tue, 05 Jan 2021 14:56:44 -0500
Original-Received: by mail-ot1-x330.google.com with SMTP id r9so829791otk.11
for ; Tue, 05 Jan 2021 11:56:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc:content-transfer-encoding;
bh=koSEpkhpYC4Q9kzO0Kb4TxX4heFmFRRA0v4C0RSt0r8=;
b=DRDl/oNqYeAt9zoZaCB5lh6iZCR9YV0cOwhr3+7P9CzKtJAEuy5dDBYS/t6lDcDk7/
DNHtJt9gQgenX0DY3sC6B2GidnBDvavFYr2gJKpIgmy/5Z095tQDelqjjpgu8Q7H5Prd
3+kKtMsW5eahyvBvy1+CYmSC3Zmh2Bq3Jew3LXVjGNzzIjiWzKIOTQXb+k1DDEMEzaRR
ds0OL8f8/bgA/vCCgjC3b2S64ihASrIvyXcE+0o+DTAWSJTKcRroC94Tm62nnwPDkchS
rZfPN+Hmt2NF5Q7po8UWrPEhHAIJzsg3ySaNmredQYPqiQ1kAkpJaYjDYQQ43mNgLcvF
EfPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc:content-transfer-encoding;
bh=koSEpkhpYC4Q9kzO0Kb4TxX4heFmFRRA0v4C0RSt0r8=;
b=h9gBgMzBG2M1kci2NIfxtEQBTsu7cEhEmSUJ2GsI7zpGw5wN1fSfzrgpmnQ02sJTMc
vqb4Wwkaf94Ck1uDigBO0XY+AizdQf0WTpTPquAkcGDTX+aB8v49Oq0bJA606vM4OE4F
BAczuZrwOCEWb2XnbRgkI5aToBbJIQmNKRObLNriXxhbioUb5EntTi1Cw2vAbiBcTWNy
qiKSYYrpTPqOV8PXtOGvfPDW327XM4fG4B5/U1Fk9PQOT8zK4QQ8TRgzHrxEGg++JWJW
cHTgjA8sXHXMdIqE6ntPH0P8/XqAaN/lj43mLXTyL596GIfFLf/rAatOjJ/CIMW5beEJ
5Big==
X-Gm-Message-State: AOAM531OievWMFuaTOrc8fd+pGx8E/vaymuIzRsZdw64cMpOcFWjWS00
0kESUkmrQoyY/xKeCTDmQ1zQqMhn+mmJRmF5Xyg=
X-Google-Smtp-Source: ABdhPJybSSvdjoTlwyaoancbJsi7FZ2gKfxCpcSJXQRmgq8RqI0vOeHazomZBhdfG+37T3EzB1H7Tem+bTiqojpmjc4=
X-Received: by 2002:a9d:269:: with SMTP id 96mr850515otb.174.1609876598848;
Tue, 05 Jan 2021 11:56:38 -0800 (PST)
In-Reply-To:
Received-SPF: pass client-ip=2607:f8b0:4864:20::330;
envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x330.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
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:262546
Archived-At:
Am Di., 5. Jan. 2021 um 20:06 Uhr schrieb Daniel Mart=C3=ADn :
>
> martin rudalics writes:
>
> >>> I'd then try to make it behave like 'M-g g' in this regard.
> >>
> >> Some interactive versions of low-level primitives have the suffix
> >> `...-command' in their names, so a command like 'M-g g' and bound to
> >> 'M-g c' could be named 'goto-char-command'.
> >
> > I was more concerned about not pushing the mark when the region is
> > already active so one can use M-g c to extend the region. BTW, is ther=
e
> > a reason why 'goto-map' is so terribly unpopulated?
> >
>
> This sounds like a good idea:
>
> - 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'.
There's no need the change goto-char; it can remain an interactive command.
>
> - Rebind 'M-g c' to 'goto-char-command'.
>
> - Announce the new command.
>
> What do you think? Could it break something? Thanks.
It will break users that expect the current behavior, so maybe there
should be a customization option that initially defaults to off.