[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master af5d2c1 097/348: Don't crash if default-directory is nil.
From: |
Oleh Krehel |
Subject: |
[elpa] master af5d2c1 097/348: Don't crash if default-directory is nil. |
Date: |
Sat, 8 Apr 2017 11:03:35 -0400 (EDT) |
branch: master
commit af5d2c16d94368c2e424027a725eb28cdf8e49ea
Author: Wilfred Hughes <address@hidden>
Commit: Wilfred Hughes <address@hidden>
Don't crash if default-directory is nil.
I think this is a pretty rare occurrence (for some reason I had a
`*Backtrace*` buffer with `default-directory` set to nil). However,
`ivy-switch-buffer` would break in this situation.
---
ivy.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 96fe05c..c09ed4a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2731,8 +2731,9 @@ When VIRTUAL is non-nil, add virtual buffers."
(mapcar
(lambda (x)
(if (with-current-buffer x
- (file-remote-p
- (abbreviate-file-name default-directory)))
+ (and default-directory
+ (file-remote-p
+ (abbreviate-file-name default-directory))))
(propertize x 'face 'ivy-remote)
(let ((face (with-current-buffer x
(cdr (assoc major-mode
- [elpa] master 22623aa 101/348: swiper.el (swiper-avy): Require avy, (continued)
- [elpa] master 22623aa 101/348: swiper.el (swiper-avy): Require avy, Oleh Krehel, 2017/04/08
- [elpa] master 9118fa1 093/348: Separate readme into distinct ivy/counsel/swiper sections, Oleh Krehel, 2017/04/08
- [elpa] master 64b385d 107/348: Don't quit counsel-linux-app on bad data, Oleh Krehel, 2017/04/08
- [elpa] master 2be454c 104/348: Remove ivy-height from the example configuration., Oleh Krehel, 2017/04/08
- [elpa] master d83567e 073/348: counsel.el (counsel-locate-options): Remove obsolete var, Oleh Krehel, 2017/04/08
- [elpa] master e89f250 072/348: Add option for swiper line number to be searchable, Oleh Krehel, 2017/04/08
- [elpa] master 06d5cf5 078/348: counsel.el (counsel-rhythmbox): Require dbus, Oleh Krehel, 2017/04/08
- [elpa] master 469a4ab 081/348: Add ivy-push-view and ivy-pop-view, Oleh Krehel, 2017/04/08
- [elpa] master c009b28 080/348: ivy.el: Breaking change for alist type collection actions, Oleh Krehel, 2017/04/08
- [elpa] master 8df5a67 089/348: counsel.el (counsel-semantic): New command, Oleh Krehel, 2017/04/08
- [elpa] master af5d2c1 097/348: Don't crash if default-directory is nil.,
Oleh Krehel <=
- [elpa] master 874632e 098/348: Name bookmarked directories using the bookmark name, Oleh Krehel, 2017/04/08
- [elpa] master 9e6bf2d 112/348: Makefile (plain): Fix target, Oleh Krehel, 2017/04/08
- [elpa] master c43de47 120/348: counsel.el (counsel-dired-jump): Fix up, Oleh Krehel, 2017/04/08
- [elpa] master 5fe3cef 122/348: counsel.el (counsel-file-jump): Allow spaces in path, Oleh Krehel, 2017/04/08
- [elpa] master f27a1f0 124/348: swiper.el (swiper-all-function): Add a ">0 cands -> 0 cands" fix, Oleh Krehel, 2017/04/08
- [elpa] master b3ca5e3 119/348: Add counsel commands for jumping to files, Oleh Krehel, 2017/04/08
- [elpa] master 46a5346 121/348: counsel.el (counsel-file-jump): Skip ".git/", Oleh Krehel, 2017/04/08
- [elpa] master 3c20b2c 126/348: counsel.el (counsel-git-grep): Fix prompt, Oleh Krehel, 2017/04/08
- [elpa] master fe92b1b 133/348: ivy.el: Fix the "C-m" not working for last commit, Oleh Krehel, 2017/04/08
- [elpa] master 230ae1a 132/348: Implement unique index for alist completion, Oleh Krehel, 2017/04/08