[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3cbf923: Allow hide-ifdef-guts to work in buffers not visiting fi
From: |
Lars Ingebrigtsen |
Subject: |
master 3cbf923: Allow hide-ifdef-guts to work in buffers not visiting files |
Date: |
Sun, 21 Mar 2021 03:18:02 -0400 (EDT) |
branch: master
commit 3cbf92323c544df516ac28da5e6eac9a241103c4
Author: Zhiwei Chen <chenzhiwei03@kuaishou.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Allow hide-ifdef-guts to work in buffers not visiting files
* lisp/progmodes/hideif.el (hide-ifdef-guts): Allow working in
buffers not visiting files (bug#47279).
Copyright-paperwork-exempt: yes
---
lisp/progmodes/hideif.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index 923f85f..6f1a878 100644
--- a/lisp/progmodes/hideif.el
+++ b/lisp/progmodes/hideif.el
@@ -1743,10 +1743,10 @@ first arg will be `hif-etc'."
(defun hide-ifdef-guts ()
"Does most of the work of `hide-ifdefs'.
It does not do the work that's pointless to redo on a recursive entry."
- ;; (message "hide-ifdef-guts")
(save-excursion
(let* ((case-fold-search t) ; Ignore case for `hide-ifdef-header-regexp'
(expand-header (and hide-ifdef-expand-reinclusion-protection
+ (buffer-file-name)
(string-match hide-ifdef-header-regexp
(buffer-file-name))
(zerop hif-recurse-level)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 3cbf923: Allow hide-ifdef-guts to work in buffers not visiting files,
Lars Ingebrigtsen <=