GNU bug report logs -
#16981
24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others
Previous Next
Reported by: joaotavora <at> gmail.com (João Távora)
Date: Mon, 10 Mar 2014 19:49:01 UTC
Severity: normal
Found in version 24.3.50
Done: joaotavora <at> gmail.com (João Távora)
Bug is archived. No further changes may be made.
Full log
Message #17 received at 16981 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
>>> There's something funny going on here. A minor mode's keymap should
>> You're right, but I can't figure out what.
> That's because it's how remapping is works: first we lookup the key
> So the local-map and global-map's normal bindings take precedence over the
> minor-map's remapping.
Yeah that's it I remembered that this afternoon.
> (define-key electric-pair-mode-map "\177"
> `(menu-item "" electric-pair-delete-pair
> :filter
> electric-pair-delete-adjacent-pairs)
> cmd))))))
Aha, the famed :filter trick I had heard about. Looks good enough while
we wait for that multiple-commands-per-keybinding refactoring. Not as
clean as remapping, but probably good enough, and it's arguable we want
this on any other key than backspace.
Hmmm now I remember that's it's even harder than defadvice to find the
extra code, docstring-wise I mean. How would a hacker discover we're
using the filter trick. describe-key doesn't help. .
Anyway should I install it? To emacs-24 only? I need a little help
VC-wise:
- I got two commits that are in trunk, r116926 and r116940, and should
be in (cherry-picked to?) emacs-24
- Three different fixes (bugs 16981,17192 and 17183) not yet pushed that
I think you want me to only push to emacs-24, since that will be merged
back to trunk later.
Is this correct? I also don't know much bzr to do this, especially the
first item. Is there a wiki as clear as BzrForEmacsDevs on this
particular workflow? I just did a "bzr switch emacs-24" from what I
believe to be a heavyweight checkout or something. It seems to have
worked.
This bug report was last modified 11 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.