From 941c29ba3925c6c22dbb9ec1e31d41ce837dde6f Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 28 Nov 2009 17:54:57 +0000 Subject: [PATCH] el/dot-emacs.el: Wrap `save-excursion' around `hs-hide-all' hack. Stops point from moving to the top of the buffer. --- el/dot-emacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index cd0ee10..e4e7f8d 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2237,7 +2237,7 @@ strip numbers instead." (setq hs-hide-comments-when-hiding-all nil) (defadvice hs-hide-all (after hide-first-comment activate) - (hs-hide-initial-comment-block)) + (save-excursion (hs-hide-initial-comment-block))) ;;;-------------------------------------------------------------------------- ;;; Shell mode. -- 2.11.0