unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31557: 27.0.50; SES hangs on save when 'delete-trailing-whitespace' is in 'before-save-hook'
@ 2018-05-22 17:53 Filipp Gunbin
  2018-06-03 15:44 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Filipp Gunbin @ 2018-05-22 17:53 UTC (permalink / raw)
  To: 31557


emacs -Q
M-: (add-hook 'before-save-hook #'delete-trailing-whitespace)
C-x C-f ~/tmp/1.ses (file does not exist)
C-x C-s

At this point emacs hangs, echo area shows "Saving file .../1.ses".  

With `toggle-error-on-quit', I see the following backtrace:

  re-search-forward("\\s-$" nil t)
  delete-trailing-whitespace()
  run-hooks(before-save-hook)
  basic-save-buffer(t)
  save-buffer(1)
  funcall-interactively(save-buffer 1)
  call-interactively(save-buffer nil nil)
  command-execute(save-buffer)



In GNU Emacs 27.0.50 (build 10, x86_64-apple-darwin17.5.0)
 of 2018-05-14 built on fgunbin.playteam.ru
Repository revision: 15fa8de1ae3228413fde95e583008d9b9f19e7c7
System Description:  Mac OS X 10.13.4

Configured using:
 'configure CC=/usr/bin/gcc --without-all --without-ns --with-dbus
 --with-file-notification=no --with-gnutls --with-modules --with-threads
 --with-xml2 --with-zlib --without-x'

Configured features:
GNUTLS LIBXML2 ZLIB MODULES THREADS





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-04 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-22 17:53 bug#31557: 27.0.50; SES hangs on save when 'delete-trailing-whitespace' is in 'before-save-hook' Filipp Gunbin
2018-06-03 15:44 ` Eli Zaretskii
2018-06-03 16:05   ` Noam Postavsky
2018-06-04 14:26     ` Filipp Gunbin
2018-06-04 16:34       ` Eli Zaretskii

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).