From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Could eval-expression be in lisp mode? Date: Fri, 6 Sep 2019 10:52:14 -0700 (PDT) Message-ID: <86c4dcd4-f136-488d-8ae0-2c8322cbd9ac@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114685"; mail-complaints-to="usenet@blaine.gmane.org" To: ndame , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 06 19:53:51 2019 Return-path: Envelope-to: geh-help-gnu-emacs@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 1i6IQg-000Tha-AY for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Sep 2019 19:53:50 +0200 Original-Received: from localhost ([::1]:59060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6IQe-000403-NI for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Sep 2019 13:53:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51297) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6IQP-0003xD-KE for help-gnu-emacs@gnu.org; Fri, 06 Sep 2019 13:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6IQO-0005SE-4V for help-gnu-emacs@gnu.org; Fri, 06 Sep 2019 13:53:33 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:56458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i6IQN-00050V-PD for help-gnu-emacs@gnu.org; Fri, 06 Sep 2019 13:53:32 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x86HnL1R011234; Fri, 6 Sep 2019 17:52:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=aBBn9HY5fG6pyW9qo+K6KCGYnQkV+3Tfba/mSb5go1I=; b=LsMH8jqWJKDr4NBqUUpXOf1IE1dMCa/gq7yKy2MinCMZ4OZiHV0jkW5BQviEXiZgCR/f 95aIoOqGqmucb4vaKW+DZ+lHl+nTOyQdifuOdYsf3vw7o0NJ+vuOxOKnKBjiz0ByabPh UaiUh1WT95HU2jWmMuh1H3cKH3f3AHaHsh7rdiFMa1/n17R/H2FYePJYvbIUbsYe73cH 5KDcPL+fclMChcuG6YyH0Qi+jU+p4mkDuHKdjrQmZWg8zjM+hh4qUb2sMYEVIBh0BnMj 5Jc8mDIRnDj1jansySPeABwcx9yZ/l5KvCm9dIKiX/hxCWWoqdzk1kH1bToRpWSwjMSN zw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 2uuv0r8355-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Sep 2019 17:52:17 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x86Hn6Dq047054; Fri, 6 Sep 2019 17:52:16 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 2uum4hd260-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Sep 2019 17:52:16 +0000 Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x86HqFIn011887; Fri, 6 Sep 2019 17:52:15 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9372 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=825 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909060190 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9372 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=888 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909060191 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 141.146.126.78 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121460 Archived-At: > I use eval-expression (M-:) a lot for quick scripts which work on a > buffer and it's always annoying my usual elisp abbrevs, for example, > are not available in the minibuffer when editing an expression. >=20 > Which raises the question: why isn't the minibuffer in > lisp-interaction-mode when using M-: ? >=20 > Is there a drawback? (FWIW, I never use `lisp-interaction-mode'. Even for scratch buffers I use `emacs-lisp-mode'.) Vanilla `M-:' does at least give you completion with `TAB' and `M-TAB' (aka `ESC TAB'). I typically want the result in another buffer, in `emacs-lisp-mode', but I also want to be able to see it instead in a tooltip. And I want the command to respect different print options (so I can have different values from those for `eval-expression'). I bind `M-:' to `pp-eval-expression', from `pp+.el'. (Actually, I use `icicle-pp-eval-expression.) `pp-eval-expression' and other commands in `pp+.el' read a Lisp expression using `pp-read-expression-map', not `read-expression-map' (provides indentation and defun-eval keys). You can bind any keys you like (in either map), to get whatever Lisp abbrev support you want. https://www.emacswiki.org/emacs/PpPlus