Closed mattfidler closed 3 years ago
This should be fixde @sg2002
There's still an issue here.
When you start emacs anew, doing M-a and then cycling history using f11 and f12 works. But only the first time. After the first time, it stops working.
Cycling C-x b stops working too. But it never breaks by itself, only when you do M-a.
Cycling C-o works all the time.
The keys get interpreted as previous-line and next-line.
I think fixing issue #407 broke this...
This should be fixed now (at least it works for me in a basic ergoemacs+icy setup).
Yeah, it works. I've also noticed another problem with icicles minibuffer bindings.
S-TAB in ergoemacs now always runs icicle-complete-keys. This should not happen during minibuffer completion. Instead icicle-apropos-complete should be ran.
Ok, I've solved that. There's a variable called icicle-key-complete-keys-for-minibuffer. In my custom it was set to nil. Probably leftover from some testing. Ergoemacs overrides this variable anyway. But basically, if you have it set to nil at the moment ergoemacs loads, icicle-complete-keys starts overriding icicle-apropos-complete.
This happens since ef27870f679db38b0297e108b39547818fa9075b .
Probably does not require any action, but good to keep in mind in case anyone starts having similar problems.
Thanks @sg2002
Another really minor thing. M-o is currently not overridden in icicles minibuffer. I was able to fix it by adding (define-key minibuffer-local-map (kbd "M-o") 'forward-word)
to the same block.
Thanks. I will look into it.
Ok, another one, in minibuffer with icicles, M-s and M-r get treated as the vanilla next-matching-history-element and previous-matching-history-element.
This tests the f11 and f12 bindings: 6c5d5bc7a4e366dec328dfd3430f20b7b977f781
What do you expect the M-s
and M-r` keys to do?
For f11 f12 M-o M-s M-r I get the following commands: (previous-history-element next-history-element icicle-insert-history-element ergoemacs-move-cursor-next-pane previous-matching-history-element)
I expect M-s to be ergoemacs-move-cursor-next-pane. And M-r to have it's normal ergoemacs kill-word binding.
Icy M-o is already rebound in ergoemacs to M-f11 and M-f12.
When I run the test M-s
is ergoemacs-move-cursor-next-pane
. M-r
is previous-matching-history-element
.
Should this be tested in command other than icicle-execute-extended-command
?
No. I've found the conditions under which this happens. First the config:
(require 'icicles)
(icy-mode 1)
(require 'ergoemacs-mode)
(ergoemacs-mode 1)
(ergoemacs-theme-component reclaim-C-f ()
"We need to give at least one sequence to reclaim C-f from isearch and get the new icicle-search-key-prefix picked up."
(global-set-key (kbd "C-f .") 'isearch-forward-symbol-at-point))
(ergoemacs-require 'reclaim-C-f)
(setq icicle-search-key-prefix (kbd "C-f"))
Now the triggers:
(require 'smart-mode-line)(sml/setup)
(require 'srefactor)
(require 'virtualenvwrapper)
If you have any of these in your config after (setq icicle-search-key-prefix (kbd "C-f"))
then this M-s issue happens.
This thing is also infectious. That is, if you do desktop-save from infected version and then read it in in a clean one, it becomes infected too. When you save desktop in the secondary infected version, the infection does not transfer. This behavior had me totally baffled. ;-)
Is this only in the minibuffer?
On Sun, Apr 24, 2016, 6:16 PM sg2002 notifications@github.com wrote:
No. I've found the conditions under which this happens. First the config:
(require 'icicles) (icy-mode 1) (require 'ergoemacs-mode) (ergoemacs-mode 1) (ergoemacs-theme-component reclaim-C-f () "We need to give at least one sequence to reclaim C-f from isearch and get the new icicle-search-key-prefix picked up." (global-set-key (kbd "C-f .") 'isearch-forward-symbol-at-point)) (ergoemacs-require 'reclaim-C-f) (setq icicle-search-key-prefix (kbd "C-f"))
Now the triggers:
- (require 'smart-mode-line)(sml/setup)
- (require 'srefactor)
- (require 'virtualenvwrapper)
If you have any of these in your config after (setq icicle-search-key-prefix (kbd "C-f")) then this M-s issue happens.
This thing is also infectious. That is, if you do desktop-save from infected version and then read it in in a clean one, it becomes infected too. When you save desktop in the secondary infected version, the infection does not transfer. This behavior had me totally baffled. ;-)
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/406#issuecomment-214064734
Yes.
I'm unsure how any of these packages would affect the ergoemacs-mode state. I'm a bit baffled as well.
Neither of these packages uses global-set-key either
Nor do they modify the minibuffer. Only virtualenvwrapper uses the minibuffer...
I updated test 407 to include what you described as something that changes M-s
binding. However, when I run (ert "ergoemacs-test-407")
, I cannot reproduce your issue.
Test 407 worked for me too, at first. But replacing ergoemacs-package
's with require
's, had the desired effect.
So replacing ergoemacs-package does not cause an issue for you, but using require does.
On Wed, Apr 27, 2016, 5:31 AM sg2002 notifications@github.com wrote:
Test 407 worked for me too, at first. But replacing ergoemacs-package's with require's, had the desired effect.
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/406#issuecomment-215043424
Also I've found another icicles-specific thing that does not work anymore. Those minibuffer bindings. I was able to fix it in my config like this:
See Issue #372 @sg2002