From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation Date: Mon, 09 Sep 2019 09:41:03 +0200 Message-ID: <86woeh6ho0.fsf@protected.rcdrun.com> 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="248936"; mail-complaints-to="usenet@blaine.gmane.org" To: 37352@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 09 09:44:18 2019 Return-path: Envelope-to: geb-bug-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 1i7ELS-0012f9-5F for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Sep 2019 09:44:18 +0200 Original-Received: from localhost ([::1]:52670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7ELR-0000Zt-2F for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Sep 2019 03:44:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44566) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7EJJ-0007fE-Qk for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7EJH-0007ps-92 for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7EJG-0007pK-NH for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i7EJG-0003Ca-H0 for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2019 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37352 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156801490712274 (code B ref -1); Mon, 09 Sep 2019 07:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2019 07:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:39493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7EJ1-0003Bs-1T for submit@debbugs.gnu.org; Mon, 09 Sep 2019 03:41:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7EIz-0003Bj-4C for submit@debbugs.gnu.org; Mon, 09 Sep 2019 03:41:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44482) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7EIx-0007IQ-JS for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:41:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7EIw-0007VB-1Q for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:41:43 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:53829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7EIv-00079t-QY for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2019 03:41:41 -0400 Original-Received: from protected.rcdrun.com ([::ffff:31.223.149.103]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000006A562.000000005D760214.00003FB1; Mon, 09 Sep 2019 00:41:08 -0700 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000CBDCA.000000005D760212.00005754; Mon, 09 Sep 2019 09:41:06 +0200 X-Hashcash: 1:20:190909:bug-gnu-emacs@gnu.org::1VAqqFbLX0fYoK2e:00000000000000000000000000000000000000000WiT X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166321 Archived-At: In my opinion this should not be happening. If I am editing buffer with recursive-edit the buffer is to abort on Emacs Lisp evaluation if there is any error taking place. I am using this function below. (defun read-from-buffer (value &optional buffer-name mode) "Edits string and returns it" (let ((this-buffer (buffer-name)) (new-value value) (buffy (if buffer-name buffer-name "*edit-string*"))) (save-excursion (switch-to-buffer buffy) (set-buffer buffy) (if mode (funcall mode) (text-mode)) (setq header-line-format "=E2=9E=9C Finish editing with C-c C-c or C-= M-c") (local-set-key (kbd "C-c C-c") 'exit-recursive-edit) (if (stringp value) (insert value)) ;; (speak "You may quit the buffer with Control C Control C") (message "When you're done editing press C-c C-c or C-M-c to continue= .") (unwind-protect (recursive-edit) (if (get-buffer-window buffy) (progn (setq new-value (buffer-substring (point-min) (point-max))) (kill-buffer buffy)))) (switch-to-buffer this-buffer) new-value))) Then you could edit some string to see how this is happening: (read-from-buffer "EDIT ME\nEvaluate this: (nonexistingfunction) ") Then there after you could evaluate some non existing function to invoke the Emacs Lisp error. At that time the editing with recursive-buffer is interrupted and data is lost. This should not happen, as evaluations are often required during editing. In GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll= bars) of 2019-09-07 built on protected.rcdrun.com Repository revision: 40eb4c51a40a37c14e882e6db3f880ba4528c089 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Hyperbola GNU/Linux-libre Recent messages: Back to top level funcall-interactively: No recursive edit is in progress Mark saved where search started read-from-buffer When you=E2=80=99re done editing press C-c C-c or C-M-c to continue. Entering debugger... Back to top level Quit Mark set Making completion list... Configured using: 'configure --prefix=3D/package/text/emacs-2019-09-07 --with-modules --without-gpm --with-x-toolkit=3Dlucid PKG_CONFIG_PATH=3D/home/data1/protected/GNUstep/Library/Libraries/pkgconfi= g:/usr/lib/pkgconfig' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: de_DE.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func edmacro kmacro cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 51823 7026) (symbols 48 6698 1) (strings 32 18378 2144) (string-bytes 1 589184) (vectors 16 11030) (vector-slots 8 142630 10478) (floats 8 26 76) (intervals 56 382 0) (buffers 992 14)) --=20 Thanks, Jean Louis