From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#31557: 27.0.50; SES hangs on save when 'delete-trailing-whitespace' is in 'before-save-hook' Date: Tue, 22 May 2018 20:53:55 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527011588 16815 195.159.176.226 (22 May 2018 17:53:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 17:53:08 +0000 (UTC) To: 31557@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 22 19:53:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLBT4-0004G4-Nr for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2018 19:53:03 +0200 Original-Received: from localhost ([::1]:57144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLBVB-0002NI-O0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 May 2018 13:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLBV5-0002LL-WC for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLBV0-0003gy-Pm for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLBV0-0003gl-Lf for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLBV0-0000KL-DE for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 May 2018 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15270116531198 (code B ref -1); Tue, 22 May 2018 17:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2018 17:54:13 +0000 Original-Received: from localhost ([127.0.0.1]:44420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLBUD-0000JG-4W for submit@debbugs.gnu.org; Tue, 22 May 2018 13:54:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLBUC-0000J5-1p for submit@debbugs.gnu.org; Tue, 22 May 2018 13:54:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLBU5-0003E0-Tc for submit@debbugs.gnu.org; Tue, 22 May 2018 13:54:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLBU5-0003Dw-QJ for submit@debbugs.gnu.org; Tue, 22 May 2018 13:54:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLBU4-0001re-Kg for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLBTz-0003C0-N0 for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:54:04 -0400 Original-Received: from new2-smtp.messagingengine.com ([66.111.4.224]:34511) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLBTz-0003Bk-Fl for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 13:53:59 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 9A254175A for ; Tue, 22 May 2018 13:53:58 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 22 May 2018 13:53:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HZ+maLno0W5zRI5XZ M8vHKv0emXeEUm4map+YEDiQPY=; b=FZIhKoiy33pdSSIt6NsbaeDAICNGdAd80 mcr9TP2knB8DcKOp/lWxOciVVZXP+3i0VCT7cikOUtEgxdM8+Hx8wrzT0qkNT7Bg iM61SzVkXC9kuoinfqJ1ZyQPKRV8OLRQIf9W5YlDG9ln+svAQqFZJIAGj9Ohx5GX sxpGMombQXb9OnX/9gIPF8EKJdUcNuZYyNJypdeq6tdcSVYnpnNiylVJTVqhxpQW 4RdXI5RJwFntLg3qQ2FWyX7Rc/osat2mKZUzwHZZBUyuVNRcM5dJTvz1xuiytuvu 93mpLBZAVzGVy9dpwDNGpQCo2ELfExsR9wrT0vZvzqavUZ/T9wExw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=HZ+maLno0W5zRI5XZM8vHKv0emXeEUm4map+YEDiQPY=; b=MfsLbYpG fbMrSe06eJrN7l+dVM0r4XSbh2hLlzMvI+Z5RfjALDjPSyl0TShgusG4+3LQ3ZYq BolAHwo5LPE9stEMQU5rKeZNpoh/9C+l0XsyH3zSKLxB6ub68db9xZlo8JWLvJpz pGETKnVs98/FZJ3OEar9YVi6eUBwbN1avqUab9e8P7TSrRtqiEW7frPkhQWP2YdN KjUhDYmri2Cd7IEOK+7ZslXFUNgVjrPF2kh9fdhe70mwa1FqbWX607M78U6qE2DD Ss1bAP1nRXbJrB+svd22ntW92rvsyY9/5ZkBJI+JP8JtWaQM74vAYf8X8BLPMafh Yd9ujW/ZbcUIvw== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Original-Received: from fgunbin.playteam.ru (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 08A8F10269 for ; Tue, 22 May 2018 13:53:57 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:146395 Archived-At: 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