From: Jean Louis <bugs@gnu.support>
To: 37352@debbugs.gnu.org
Subject: bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation
Date: Mon, 09 Sep 2019 09:41:03 +0200 [thread overview]
Message-ID: <86woeh6ho0.fsf@protected.rcdrun.com> (raw)
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 "➜ 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’re 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=/package/text/emacs-2019-09-07 --with-modules
--without-gpm --with-x-toolkit=lucid
PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/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))
--
Thanks,
Jean Louis
next reply other threads:[~2019-09-09 7:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-09 7:41 Jean Louis [this message]
2019-09-20 18:30 ` bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation Lars Ingebrigtsen
2019-09-20 19:09 ` Jean Louis
2019-09-20 21:01 ` Lars Ingebrigtsen
2019-09-22 12:57 ` Jean Louis
2019-09-22 13:00 ` Lars Ingebrigtsen
2019-09-22 13:04 ` Jean Louis
2019-09-22 13:49 ` Lars Ingebrigtsen
2019-09-22 16:14 ` Drew Adams
2019-09-22 16:39 ` Noam Postavsky
2019-09-22 16:55 ` Drew Adams
2019-09-22 16:59 ` Eli Zaretskii
2019-09-22 17:54 ` Andreas Schwab
2019-09-22 18:20 ` Eli Zaretskii
2019-09-23 10:18 ` Lars Ingebrigtsen
2019-09-23 12:43 ` Noam Postavsky
2019-09-23 14:01 ` Lars Ingebrigtsen
2019-09-23 14:14 ` Andreas Schwab
2019-09-25 8:11 ` Eli Zaretskii
2019-09-25 13:09 ` Lars Ingebrigtsen
2019-09-22 16:58 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86woeh6ho0.fsf@protected.rcdrun.com \
--to=bugs@gnu.support \
--cc=37352@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).