-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spacemacs-buffer: bug fix and improvement
- Fixed a bug that when `all-the-icons` is excluded by user, Emacs reports that using undefined `all-the-icons` functions. - Changed the `spacemacs-buffer-mode` that now it derives from `special-mode`. - Also defined a new command `spacemacs-buffer/return` which binds to `RET` key in `spacemacs-buffer-mode`. It opens the button on the current line if there's any, or move the cursor to next line.
- Loading branch information
1 parent
3deed8f
commit 8262481
Showing
1 changed file
with
84 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit makes an error.
spacemacs-buffer||propertize-heading: Symbol’s function definition is void: all-the-icons-material
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yssource
What's the value of
dotspacemacs-startup-buffer-show-icons
,dotspacemacs-base
?And have you added
all-the-icons
todotspacemacs-excluded-packages
?8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dotspacemacs-startup-buffer-show-icons -> Its value is t
dotspacemacs-base -> no such a
Describe variable
No, I have not. dotspacemacs-excluded-packages has no value of
all-the-icons
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant
dotspacemacs-distribution
.8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its value is ‘spacemacs’
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yssource
In your ~/.emacs.d/elpa/27.2/develop, is there
all-the-icons
?8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have
./elpa/29.0/develop/all-the-icons-20220117.108
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very weird.
Can you set
debug-on-error
tot
and attach the traceback?8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, have you installed all-the-icons fonts. If you haven't, you can do that via M-x all-the-icons-install-fonts.
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message happened while starting the spacemacs, and it stop booting it. I just
ctrl-g
to cancel the starting process and then use the spacemacs.Yes, I have installed all-the-icons fonts.
How to debug the problem when starting the spacemacs?
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way is after you
C-g
, close the home buffer withSPC b d
. ThenM-x toggle-debug-on-error
,SPC b h
.Another way is
emacs --debug-init
.8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note that I'm on Emacs 27 (with no native compilation). So another possibility is native compilation caused this error.
So you can try to delete
~/.emacs.d/core/core-spacemacs-buffer.elc
(I assume it's located there but I'm not sure).If this doesn't work, you may temporarily install Emacs 27 (without removing Emacs 29), and start Emacs as normal.
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, here some of debug logs
Thank you all the same. I'm going to looking into the problem by myself.
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yssource
Well.. Can you try
emacs --eval '(setq debug-on-error t)'
P.S. Note that the two screenshot you attached above are identical.
And I cannot see
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's upload two the same pictures by mistake.
emacs --eval '(setq debug-on-error t)'
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yssource
Can you add the following ABOVE this line? (And restart emacs with debug-on-error)
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much. It works for me.
(when dotspacemacs-startup-buffer-show-icons (require 'all-the-icons))
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well I'll add that now...
8262481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yssource
It's pushed on develop now. Thanks for your bug report.