Hi,
I am working on a minor mode in which I want to remap [backspace] key to
different functions in different situation. The lisp code looks like
(defun smart-operator-backspace ()
(interactive)
(cond ((looking-back "hello"))
(save-excursion
(replace-regexp-in-string ".*hello" "" (match-string 1))))
(t
(delete-char 1))))
However, (delete-char) never works for me. The reason is another minor mode
remapped the backspace key to function 'autopair-backspace'. Then, I
realized that I need a method to fetch the function by given keymap and get
it called rather thant have hardcoded deletion executed.
How can I do that with elisp code?
/Adam