X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/648e5523fbfc3dfbce58f66437112bc442470c87..34dc21db6e57ebbad81a196002fcd3cc557f096e:/lisp/erc/erc-pcomplete.el diff --git a/lisp/erc/erc-pcomplete.el b/lisp/erc/erc-pcomplete.el index 410a3c6d04..57e1bb1dd3 100644 --- a/lisp/erc/erc-pcomplete.el +++ b/lisp/erc/erc-pcomplete.el @@ -1,9 +1,9 @@ ;;; erc-pcomplete.el --- Provides programmable completion for ERC -;; Copyright (C) 2002-2004, 2006-2013 Free Software Foundation, Inc. +;; Copyright (C) 2002-2004, 2006-2014 Free Software Foundation, Inc. ;; Author: Sacha Chua -;; Maintainer: FSF +;; Maintainer: emacs-devel@gnu.org ;; Keywords: comm, convenience ;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?ErcCompletion @@ -82,10 +82,8 @@ for use on `completion-at-point-function'." "Complete the nick before point." (interactive) (when (> (point) (erc-beg-of-input-line)) - (let ((last-command (if (eq last-command 'erc-complete-word) - 'pcomplete - last-command))) - (call-interactively 'pcomplete)) + (setq this-command 'pcomplete) + (call-interactively 'pcomplete) t)) ;;; Setup function