(shr-fold-text): Inhibit state from being altered.

This commit is contained in:
Lars Magne Ingebrigtsen 2014-12-13 16:32:17 +01:00
parent 76f9994d67
commit 05beff88de
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@
* net/shr.el (shr-fold-text): New function.
(shr-show-alt-text, shr-urlify, shr-tag-img): Use it to fold long
alt/title texts.
(shr-fold-text): Inhibit state from being altered.
* files.el (directory-files-recursively): Really check whether
files are symlinks.

View file

@ -415,6 +415,8 @@ size, and full-buffer size."
(defun shr-fold-text (text)
(with-temp-buffer
(let ((shr-indentation 0)
(shr-state nil)
(shr-start nil)
(shr-internal-width (window-width)))
(shr-insert text)
(buffer-string))))