From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.devel Subject: Re: Quit help for someone new to Emacs Date: Fri, 20 Dec 2019 01:54:03 +0900 Message-ID: <08D8674D-3C77-48F4-921E-4E351B1AC692@icloud.com> References: <871rt0l42h.wl-all_but_last@163.com> Reply-To: =?UTF-8?Q?=C3=AC=C2=A1=C2=B0=C3=AC=C2=84=C2=B1=C3=AB=C2=B9=C2=88=20=3Cpcr910303=40?= =?UTF-8?Q?icloud=2Ecom=3E?= Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=utf-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="115356"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 19 17:54:30 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ihz4I-000Tqc-LV for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2019 17:54:30 +0100 Original-Received: from localhost ([::1]:44538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihz4G-0000Wy-Vd for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2019 11:54:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39052) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihz4A-0000T1-GV for emacs-devel@gnu.org; Thu, 19 Dec 2019 11:54:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihz49-0005cG-BB for emacs-devel@gnu.org; Thu, 19 Dec 2019 11:54:22 -0500 Original-Received: from pv50p00im-hyfv10011601.me.com ([17.58.6.43]:43837) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihz48-0005Cp-S6 for emacs-devel@gnu.org; Thu, 19 Dec 2019 11:54:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1576774455; bh=Xtr7L08Zd62wjWOG1yu6MF4nHuXmPArzdNalUgXx9yo=; h=Content-Type:Subject:From:Date:Message-Id:To; b=eJ9fPRYMFwMLLQ7BCNI475MilaxSOCYWqL//Y0jvvd5dq4JD8tZXDv6Z1R7cL3SB0 KZLlStp6dpQ80lWQgpkYCgbvwCMNgvYn2BaI61Bb94kGh2veHhwno3bh1O7y81Y0iF hf0bfG1ktDHAcNSuNpiaPCMcqj0rSn9uftDjnS/SrBhGedolUfFoGqmyFEfS1GT2Zn weKrvBgf90vHlVKKQCpjjV2cnbDlE8mKg5BCwnaIX3MybBcvD/+YPxbPxGmEDfD+Jm 24Ql4aMVh18kDTKB4wh7c+ETxBNcAqjCUR2FD39xnl0G9jbQP45VRJWw5rGpjQVySZ p2EhX+rGcIQhQ== Original-Received: from 172.20.nate.com (unknown [223.62.162.104]) by pv50p00im-hyfv10011601.me.com (Postfix) with ESMTPSA id 94EDE3805DC; Thu, 19 Dec 2019 16:54:12 +0000 (UTC) In-Reply-To: <871rt0l42h.wl-all_but_last@163.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-12-19_04:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=883 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1912190135 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 17.58.6.43 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.org@gnu.org Original-Sender: "Emacs-devel" Original-From: =?UTF-8?Q?=C3=AC=C2=A1=C2=B0=C3=AC=C2=84=C2=B1=C3=AB=C2=B9=C2=88=20via=20=22Emacs=20?= =?UTF-8?Q?development=20discussio?= =?UTF-8?Q?ns=2E=22=20=3Cemacs=2Ddevel=40gnu?= =?UTF-8?Q?=2Eorg=3E?= Xref: news.gmane.org gmane.emacs.devel:243481 Archived-At: Zhu Zihao =EC=9E=91=EC=84=B1: > > Well, it's not a joke. I found Vim will give a hint for new user how ca= n =20 > they > really quit Vim when they try to press "C-c". > > I know there's detailed message in splash screen describes that how to = =20 > quit. But > if a new user use Emacs to open a file directly(e.g. run "emacs .bashrc= " in > bash). They can't see this useful message. > > For Emacs, "C-c" is preserved for user bindings. So it's always empty f= or a > Emacs without any user configuration. IMO, it maybe useful to pop a mes= sage > "Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs" in echo area when =20 > someone hit > "C-c" frequently. Looks like the feature might only be activated when there is no .emacs or= =20 ~/.emacs.d directory. (I=E2=80=99m assuming that most new users that don=E2= =80=99t know =20 Emacs enough to not know (or search, learn) how to quit Emacs won=E2=80=99= t have =20 already configured Emacs.) What about a =E2=80=98C-c C-c=E2=80=99 default binding that only gets act= ivated when there =20 is no init file? > And no doubt that this feature can be controlled via a Lisp > variable. In my proposal, that would just be binding C-c C-c to (message "Press 'C-= x =20 C-c' ('C-' means Ctrl-) to quit Emacs") (or some function that Emacs uses= =20 to display the message) so I=E2=80=99m not sure if there needs another va= riable. > What's your opinions? Great idea, IMO. > =E2=80=94 > > Zihao