From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Making it easier to get rid of *Completions* Date: Sat, 29 Mar 2014 20:42:23 -0700 Message-ID: <5337929F.60704@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xldsufSkE6ff8vNf0FuRD09chsf53r2cV" X-Trace: ger.gmane.org 1396150975 1486 80.91.229.3 (30 Mar 2014 03:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2014 03:42:55 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 05:42:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WU6e2-0004Hf-AT for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2014 05:42:50 +0200 Original-Received: from localhost ([::1]:42331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WU6e1-0007DZ-UF for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2014 23:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WU6dt-0007CI-0m for emacs-devel@gnu.org; Sat, 29 Mar 2014 23:42:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WU6dk-0001WY-Q5 for emacs-devel@gnu.org; Sat, 29 Mar 2014 23:42:40 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:58243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WU6dk-0001MI-Ds for emacs-devel@gnu.org; Sat, 29 Mar 2014 23:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=u+VJJxjs42n+MyuNlF8oc8YXXJ5XukCf5dZtgpi38qE=; b=mz7JnfitkpNnMY6Apf1yBNiuIgAoNSQc6D5CZ0xMuzaJJ7h1JSz2hv+dzcexv/qzdmL9KbiaNyEFba/MLHPL2Ng6RhL719Im3VM46l35rs/hzATdgQoDgiNavYyxag7j+wZUoa/3SYiltm8e76qwG2QxGhypdpycbDyt02djgq+H4snxVIW5/ZWOnqcKVCb/Va8NkKmZX5QvvqI5k5NvZ60vc4J4vHaoRMZJfMb3wIbzfFKEzGkVfm7Wp01K8y7Tl+MozFeDzvPqula0AnjQZ88/r/m0aB5JrhSbtVwdguHKXspnSeIanVDg3xHh99IfAsiZwFtVYH5M9yv3lWMK3w==; Original-Received: from c-24-19-133-76.hsd1.wa.comcast.net ([24.19.133.76] helo=[192.168.1.174]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WU6dd-000742-Fk for emacs-devel@gnu.org; Sat, 29 Mar 2014 20:42:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 X-Enigmail-Version: 1.6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171191 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xldsufSkE6ff8vNf0FuRD09chsf53r2cV Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I'm using completion-at-point (and completion-in-region-mode more generally), I find that I always have a *Completions* buffer that stick around when I don't want it. *Completions* is supposed to go away during the course of normal editing as the completions it contains become obsolete, but sometimes it doesn't --- imagine moving back to the prompt after completing a command in comint. The following patch makes C-g in the regular command loop exit completion-in-region-mode, getting rid of the *Completions* buffer. It seems like it's doing a decent job so far. This patch also makes it easier to work with a two-window Emacs: otherwise, C-x o Comments? Better ways to make *Completions* less annoying in stock Emacs?= =3D=3D=3D modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2014-03-05 07:04:01 +0000 +++ lisp/minibuffer.el 2014-03-30 03:39:32 +0000 @@ -1928,6 +1928,7 @@ (and completion-in-region--data (and (eq (marker-buffer (nth 0 completion-in-region--data)) (current-buffer)) + (not (eq this-command 'keyboard-quit)) (>=3D (point) (nth 0 completion-in-region--data)) (<=3D (point) (save-excursion --xldsufSkE6ff8vNf0FuRD09chsf53r2cV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTN5KfAAoJEMAaIROpHW7I0vIQAMbNfBT3i7E8Xq3B3Qkkn/Ee 7kPd+etNEq3CrOr755J3STMMjgr2fy1ixiBY9OyuFayMXpc5u3VSZQKA278SzNN6 PUSdpZDO4iS2XoC7MsoJbzWMxIqtA7RJU+gQkjK2LaFzBDfvEjNvZ4DgUdpvjpNY d3hPYMI52MfVp9GFsmJMA09lLof4GMKrDLS4JbOwCAjWYZ62saQYyC9DS1+rNKUC Aug2KgtGc8Ii/OdjHjP2Pf6D9eN7leEE2JRyL3B2Sum0Gqz3+dSHlQ3pgy7zLXjV j9kztZpdJtSaGWQn/uEL4AUYqcWWMa6H58FEPnQjqgiYM1gbp0z/Kidn+O2aLkTs 3y5BTNnR67QuDMO6Vt148DJm7RLtsSxznF+W93dihEOUDdfiCn7pTiaCzpAGdboS yx16mucO5RY5EFDM1xx9S5hrQrTZo7k+mbr/h8ZcneQWiycagEdc2wmL59D/+ld/ WoFbV7oaZwJrBjJ92t2GkI6il52eNRFBShVO/9Dcamgw09WjxHHWZYWoEErA6cd4 Lmt3P8EGpyuuGoBqJ91PicPg6IHHlhcyFAqPGKWvnJEcuI1rLG44FlsGX9fDiPrq 1bmvmw45Xu1Aq+z3J4SBhCqaqzanpID48lyB1jrMu5vxaSZpMag1YpxdoVt3H2zl Xyv+9iVf/VIyF0O05bSl =wa/6 -----END PGP SIGNATURE----- --xldsufSkE6ff8vNf0FuRD09chsf53r2cV--