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: Mon, 28 Dec 2020 16:32:10 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers , =?UTF-8?Q?Daniel_Mart=C3=ADn?= To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 28 16:33:27 2020 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 1ktuWU-0002GD-DG for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Dec 2020 16:33:26 +0100 Original-Received: from localhost ([::1]:47442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktuWT-0000mR-Di for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Dec 2020 10:33:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktuVW-0000L0-Gg for emacs-devel@gnu.org; Mon, 28 Dec 2020 10:32:26 -0500 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:38164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktuVT-0000pg-9m for emacs-devel@gnu.org; Mon, 28 Dec 2020 10:32:26 -0500 Original-Received: by mail-ot1-x329.google.com with SMTP id j20so9409330otq.5 for ; Mon, 28 Dec 2020 07:32:22 -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; bh=EykJzVUIA0880qFGiFwa1Ovo4Fm20Gx2XkXAvBri/dk=; b=G6o4+WuH+r0b+lNQ24SYkriLyNFFlTiPqvMZIInJF0W1h7CDWxxKTPEYYDCAuRkfyQ aKzJWUQSdE5S0ExsBO0x90AET+JRdQY5SOnr2GeGuzDw43lpm+g+NYxOTE6WI5DH32x0 LGMNGsntoz/KdRrc8BuAMZphBc1C8PP5EMejSmeb/bcCGAul56ht9RoVI/nkMZS3x5tm MUD6x/hV/uZHaB/mXy4x5cUGOZhkmitLZUpvf53C8HQuwUWxkMrWCijO52+YAxsJr1qx H5KgocddOOtHV+tN40FD/3EYIoUiL4ox7yra3IoocRBr6ng9CpeoR6+0s16+qea1F8nC Wa+A== 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; bh=EykJzVUIA0880qFGiFwa1Ovo4Fm20Gx2XkXAvBri/dk=; b=tKA37Vq7wdaviopymXkyNQEFSk7/r9lVLkM7hCwwL+ofVgFz4sDJbN3Ly+zc7zkVCg ESK5kKlRqTLOcfyvmTgPupCO+hy/5kPK2AFMkc9ITRnQHnB3r5JAOCQkNzzTnlVrALqw bROTYs/dvwedlFEvd/+58fOih7E6kgnresLJAiQTdiDiXbmOsyy24cYYbwJQCcWPiRZ4 Purz8PPFaIzNrEji3UaoIyMu3zyo0yUXEtfW/y4h7r8K/GMRWuVEM1heCKnNLkC25UpO YNtkYKmhZaIl1mcFgA2DUwA5IWRNY+7najXB9V5Drfv/9gmTg9mmiyLKg5zyPAzare9V iJBg== X-Gm-Message-State: AOAM532yV5B/xMJdj7CKY9sJV/IqNd87C5VKet27Lkb4SzlZ9gugcaaP T+jp1tE2aWjQCwPY7GSIzQufL/d2erNPFNFV+UA= X-Google-Smtp-Source: ABdhPJzQHvfr27/qA8T3ultLOjiYbhB2aDYxZH6Q4kdgLftlsdUADMONErh2dVFIJcvttq5Qe/gMbPyrmSsAYU1r7ZE= X-Received: by 2002:a9d:694a:: with SMTP id p10mr15882629oto.149.1609169541083; Mon, 28 Dec 2020 07:32:21 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::329; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x329.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:262009 Archived-At: Am Mo., 28. Dez. 2020 um 15:56 Uhr schrieb Stefan Kangas : > > Philipp Stephani writes: > > >> goto-char is an interactive function that has the potential to take you > >> long distances, so it might be a good idea, for user convenience, to > >> push the mark as a documented side effect (is it a good idea?). > > > > goto-char is a low-level primitive that's used pervasively in Emacs > > Lisp code. I think that pushing the mark would be a way too drastic > > change. > > Agreed. > > But would it perhaps make sense to push the mark only when it is called > interactively? I don't think we should have functions that behave significantly differently when called interactively - too much confusion. > Or to replace `M-g c' with a new command that also > pushes mark? That sounds feasible. Maybe we should then also introduce a customization option to control the behavior.