From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#43165: [PATCH] Add load this file lisp function. Date: Wed, 2 Sep 2020 08:51:48 -0700 (PDT) Message-ID: <29a3f5d1-c5f7-4ba5-a285-58e204faeed4@default> References: <87zh68tsxu.fsf@gnus.org> <87v9gwtr2o.fsf@gnus.org> 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="4284"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43165@debbugs.gnu.org To: Lars Ingebrigtsen , Jen-Chieh Shen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 17:52:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kDV3g-00010n-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 17:52:24 +0200 Original-Received: from localhost ([::1]:58366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDV3f-0003ko-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 11:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDV3K-0003jC-Hd for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 11:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDV3K-0005ps-8m for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 11:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDV3K-0002Id-7m for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 11:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43165-submit@debbugs.gnu.org id=B43165.15990619218837 (code B ref 43165); Wed, 02 Sep 2020 15:52:02 +0000 Original-Received: (at 43165) by debbugs.gnu.org; 2 Sep 2020 15:52:01 +0000 Original-Received: from localhost ([127.0.0.1]:60476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDV3J-0002IN-Es for submit@debbugs.gnu.org; Wed, 02 Sep 2020 11:52:01 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:45150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDV3G-0002I5-Rg for 43165@debbugs.gnu.org; Wed, 02 Sep 2020 11:51:59 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 082Fo9Sq011412; Wed, 2 Sep 2020 15:51:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=b3GYPchzQO+01zbX+HSBvonKk+lTO+zSRMqE6uMZtSI=; b=of8KtoJsD7NlEbrf8zg1ix+CjrNlg57fGxi1iNfk/u8Ny7x/VgN1vfYW0sMcXL/I6sAO 3HDe8psf9m4CjCVGD0wnUlalUKguTyq1MFG032EKdvpbwWFk58i5pQrpufHEMAGDYxai 2MccstCRIO2LVhghbQAQGyV2OipIvco43ZnrERbuC29+0kbRlYvAbBChNw4XnLXRp6mQ CA4OpVehajIy9Rc7J6Ad4KOqZJ7ZrFmDRcdf2U13EJTcSlXtFCsrYDWbkc7B48T6DwZT ibppwx74ZuzBFRbITkAz9Ypw6SIvcqQHkfmR1pnpmOSLxjXuXIPdf2piHnuhzRnZi+ne Ew== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 337eymbdm2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 02 Sep 2020 15:51:52 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 082FpGa5008111; Wed, 2 Sep 2020 15:51:52 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 3380kq76pb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 02 Sep 2020 15:51:52 +0000 Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 082FpoAl006474; Wed, 2 Sep 2020 15:51:51 GMT In-Reply-To: <87v9gwtr2o.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9732 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009020151 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9732 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 clxscore=1011 spamscore=0 bulkscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009020151 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186944 Archived-At: > Just do: `M-x load-file RET M-n RET' I was going to say this yesterday, when I saw the enhancement request. Just do: `M-x load-file RET RET'. No need for `M-n'. Of course, one needs to know this, to do it. I've been doing it forever. Would I want a key for it? Not I. But it's true that we have `kill-this-buffer'. The reason we have `kill-this-buffer', I believe, is just for a menu item (`Close': ` '). It makes little sense to bind it to a keyboard key. But someone could. `load-file' is in the same boat, I think. There's little use for a `load-this-file' command, in terms of keyboard key bindings. But I suppose it could serve (like `Close') as a menu item. Actually, there's a difference from `kill-buffer': the risk of killing something unintended versus the risk of loading something unintended. Maybe the same reason we show the default in the prompt, for `kill-buffer'. If you were to bind `kill-this-buffer' to a key, and accidentally hit that key, bye-bye wrong buffer, perhaps. In a menu that's less likely to happen. For `load-this-file' there's less of a "danger", if you accidentally try to load the current file when you shouldn't. I don't see a need for such a command, personally, but about the same thing goes for `kill-this-buffer'. Note, BTW, that we don't even bind `load-file' by default. It's not really a command that users use every 10 minutes. Personally, I'd say we don't need a `load-this-file'. Just one opinion.