]> code.delx.au - gnu-emacs-elpa/commit
pop-to-shell - remove insufficiently comprehensive rcirc/erc provisions
authorKen Manheimer <ken.manheimer@gmail.com>
Mon, 7 Dec 2015 18:51:35 +0000 (13:51 -0500)
committerKen Manheimer <ken.manheimer@gmail.com>
Mon, 7 Dec 2015 18:51:35 +0000 (13:51 -0500)
commitcef6d428c9995502772b1333653076ad999788cd
tree77375962fcf285ef060363c50a8537be5728b34d
parentbbd9515b5ef061a0272262c527b9b8f886debc21
pop-to-shell - remove insufficiently comprehensive rcirc/erc provisions

Instead, use something like I do for rcirc:

(eval-after-load 'rcirc
  '(define-key rcirc-mode-map "\M- " 'klm-rcirc-goto-prompt-or-global))

(defun klm-rcirc-goto-prompt-or-global (arg)
  "Goto rcirc input prompt if no arg, else do the global key action."
  (interactive "P")
  (if arg
      (call-interactively
       (lookup-key (current-global-map) "\M- "))
    (goto-char rcirc-prompt-end-marker)))
poptoshell.el