]> git.eshelyaron.com Git - emacs.git/commit
Ensure woman2-roff-buffer restores functions on error (Bug#30908)
authorIvan Shmakov <ivan@siamics.net>
Fri, 23 Mar 2018 03:24:17 +0000 (03:24 +0000)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 26 Apr 2018 11:37:48 +0000 (07:37 -0400)
commit66dbb787a22d4ae1d513a3ee27e22eed395f5676
tree60282d2b3105f445502117ade7af5a664b8dfc10
parentb8aa7ecf54c9b164a59f1b0e9f9fe90531dadd20
Ensure woman2-roff-buffer restores functions on error (Bug#30908)

* lisp/woman.el (woman2-roff-buffer): Put the fallback paragraph
processing inside the protected part of the unwind-protect form,
rather than the cleanup forms.  Attempting to format paragraphs again
after an error has been signaled is unlikely to be helpful.  The
fallback processing should be triggered only in case the loop
terminated normally, but did not reach the end of the buffer for some
reason.
lisp/woman.el