commit c74a53534e79fb9d7e8c0ecdfba7e0f8f4bfbd85
parent 9b9a506f89b3176e0d0374ab37836897ed0b2d19
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sun, 10 Dec 2017 20:47:56 +0000
Use the library name, not the raw path
Otherwise, we end up opening the .elc file, which is pointless and
leaves leftover buffers.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helpful.el b/helpful.el
@@ -404,7 +404,7 @@ for killing the newly created buffer."
;; Open `path' ourselves. If the user has already opened it,
;; we ensure that we don't change their narrowing or point
;; position when we search it.
- (with-current-buffer (find-file-noselect path)
+ (with-current-buffer (find-file-noselect (find-library-name path))
(save-excursion
(save-restriction
(widen)