Comments (7)
先用 M-x toggle-debug-on-error 打开调试选项,再复现后,把 backtrace 的内容粘贴一下。
感谢反馈!
from awesome-tab.
先用 M-x toggle-debug-on-error 打开调试选项,再复现后,把 backtrace 的内容粘贴一下。
感谢反馈!
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-to-number(nil)
awesome-tab-select-visible-tab()
funcall-interactively(awesome-tab-select-visible-tab)
call-interactively(awesome-tab-select-visible-tab nil nil)
command-execute(awesome-tab-select-visible-tab)
from awesome-tab.
(defun awesome-tab-select-visible-tab ()
"Bind this function with number keystroke, such as s-1, s-2, s-3 ... etc.
This function automatically recognizes the number at the end of the keystroke
and switches to the tab of the corresponding index.
Note that this function switches to the visible range,
not the actual logical index position of the current group."
(interactive)
(let* ((event last-command-event)
(key (make-vector 1 event))
(key-desc (key-description key)))
(message "%s" key-desc)
(awesome-tab-select-visible-nth-tab
(string-to-number (nth 1 (split-string key-desc "-"))))))
你把上面的代码执行一下,然后再按键,看看 minibuffer 显示 key-desc 是啥?
from awesome-tab.
按M-1
的时候key-desc
是1,但是还是报错。
from awesome-tab.
如下所示是正常的
(defun awesome-tab-select-visible-tab ()
"Bind this function with number keystroke, such as s-1, s-2, s-3 ... etc.
This function automatically recognizes the number at the end of the keystroke
and switches to the tab of the corresponding index.
Note that this function switches to the visible range,
not the actual logical index position of the current group."
(interactive)
(let* ((event last-command-event)
(key (make-vector 1 event))
(key-desc (key-description key)))
(awesome-tab-select-visible-nth-tab
(string-to-number (or (nth 1 (split-string key-desc "-")) key-desc)))))
from awesome-tab.
最新版应该已经修复了。
from awesome-tab.
现在没问题了,多谢 ~
from awesome-tab.
Related Issues (20)
- awesome-tab does not play well with [ai]spell :[ HOT 1
- Configuring colors? HOT 3
- Awesome tab not working anymore: "set-face-attribute: Invalid face: tab-line" HOT 1
- tab-line shows on Flycheck-posframe-buffer HOT 1
- Extremely slow Emacs startup due to AwesomeTab HOT 3
- Tab closing button HOT 1
- awesome-tab 造成 helm 显示异常。 HOT 2
- how to disable group. HOT 2
- awesome-tab has conflict with lsp-mode HOT 1
- awesome-tab 在 Emacs 29.0.50 打开 git 仓库下的文件报错 HOT 5
- Buffers/Files from the same project are being put in separate groups HOT 3
- 在 company-box 的 child frame 中无法隐藏 tab 显示? HOT 2
- 安装完awesome-tab后minibuffer显示异常 HOT 1
- awesome-tab不生效 HOT 2
- invalid-function awesome-tab-kill-buffer-match-rule HOT 4
- How about publishing to Melpa? HOT 2
- awesome-tab-ace-jump doesn't work with emacs-rime input method
- wrong icon color and font face HOT 5
- Change font HOT 2
- global-awesome-tab-mode and awesome-tab-mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-tab.