From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stephen_leake@stephe-leake.org Newsgroups: gmane.emacs.bugs Subject: bug#18733: 24.3.94; completion default with icomplete-show-matches-on-no-input t Date: Wed, 15 Oct 2014 09:23:50 -0500 Message-ID: <85bnpdwgw9.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1413383136 9447 80.91.229.3 (15 Oct 2014 14:25:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 14:25:36 +0000 (UTC) To: 18733@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 16:25:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XePW1-0006ci-6n for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 16:25:25 +0200 Original-Received: from localhost ([::1]:45018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePW0-0003Er-Po for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 10:25:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePVo-0003CD-GP for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XePVe-00037v-Jh for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:25:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePVe-00037e-H1 for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XePVe-0004vF-7L for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: stephen_leake@stephe-leake.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Oct 2014 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18733 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141338306518864 (code B ref -1); Wed, 15 Oct 2014 14:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2014 14:24:25 +0000 Original-Received: from localhost ([127.0.0.1]:44560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XePV2-0004uB-ID for submit@debbugs.gnu.org; Wed, 15 Oct 2014 10:24:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54838) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XePUz-0004tz-03 for submit@debbugs.gnu.org; Wed, 15 Oct 2014 10:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XePUo-0002tH-Ua for submit@debbugs.gnu.org; Wed, 15 Oct 2014 10:24:20 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePUo-0002tC-RG for submit@debbugs.gnu.org; Wed, 15 Oct 2014 10:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePUh-0002oC-35 for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:24:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XePUZ-0002q4-IH for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:24:03 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.231]:11814 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XePUZ-0002pI-AN for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 10:23:55 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:49525] helo=TAKVER) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 2E/D7-23176-7738E345; Wed, 15 Oct 2014 14:23:52 +0000 X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=d8V7yHTE c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=Lmiug2be3AkY_flLQzkA:9 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94535 This bug is related to 17545. With `icomplete-mode' active, and `icomplete-show-matches-on-no-input' set to `t', invoking `switch-to-buffer' and then `minibuffer-force-complete-and-exit' gives confusing results; the buffer selected is the default specified by `read-buffer-to-switch', which is often _not_ the first completion displayed, which is what the user expects. In particular, if `icomplete-forward-completions' is invoked, the first displayed completion will not match the default. Suggested solutions: In the case of `switch-to-buffer', the default chosen by icomplete is usually better than that chosen by `read-buffer-to-switch', so a good solution would be to change `read-buffer-to-switch' to specify a nil default, at least when some completion mode other than the default is active. Alternately, icomplete could set `minibuffer-default' to the first displayed completion, or to nil; don't set `minibuffer-default' until a completion is displayed. In other cases, such as `kill-buffer', there is an obvious default (the current buffer); then icomplete should force the first completion to be the specified default. However if the user invokes `icomplete-forward-completions', the defaults will differ, so icomplete should set `minibuffer-default'. In GNU Emacs 24.3.94.8 (x86_64-pc-mingw32) of 2014-10-08 on TAKVER Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/mingw32' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t allout-mode: t diff-auto-refine-mode: t icomplete-mode: t display-time-mode: t delete-selection-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: l t c h a n g e SPC C-SPC SPC t SPC o SPC s p e c i f i y SPC n o SPC d e f a u l t M-` g l o C-SPC C-SPC e m p t y SPC s t r i n g SPC b u t SPC o n l y SPC i f SPC s o m e SPC c o m p l e t i o n SPC m o d e SPC i s SPC e n a b l e d ? t h e r e SPC i s SPC a SPC d f a u l e f a u l t SPC c o m p l e t i o n SPC m o d e SPC a c t i v e l e a f v e SPC d e f a u l t SPC t o SPC c o m p l e t i o n SPC i c o m C-r k e y m a p M-x M-w r e p o r t Recent messages: Auto-saving...done Mark set [3 times] M-` is undefined Auto-saving... Mark set [2 times] Auto-saving...done Auto-saving...done Mark saved where search started Saving file c:/home/stephe/projects.text... Wrote c:/home/stephe/projects.text Load-path shadows: /Projects/org.emacs.ada-mode.stephe-1/ada-mode hides c:/Projects/emacs/emacs-24.3.94/lisp/progmodes/ada-mode Features: (shadow sort mail-extr emacsbug sendmail dvc-persistence dvc-config dvc-propagate dvc-state cus-theme eieio-custom wid-browse tree-widget cus-edit shell pcomplete grep pp allout mm-archive network-stream starttls url-http tls url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers finder-inf copyright two-column iso-transl mule-util xmtn-dvc dvc-status dvc-diff edebug dvc-fileinfo diff-mode xmtn-conflicts derived pcase xmtn-ids xmtn-match xmtn-automate xmtn-compat parse-time xmtn-run xmtn-basic-io xmtn-base eieio-opt speedbar sb-image ezimage dframe find-func icomplete help-mode misearch multi-isearch xgit-core bzr-core xmtn-minimal dvc-log log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util vc vc-dispatcher ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff dvc-unified dvc-tips ffap thingatpt url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars add-log dvc-autoloads dvc-core dvc-lisp dvc-buffers dvc-ui dvc-register dvc-utils dvc-emacs ewoc dvc-defs dvc-site time delsel cus-start cus-load color-theme cl-macs edmacro kmacro wid-edit cl gv cl-loaddefs cl-lib noutline outline easy-mmode iswitchb whitespace dired-x dired-aux dired compile comint ansi-color ring info easymenu bbdb-autoloads package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 422845 79236) (symbols 32 33596 0) (miscs 32 991 997) (strings 16 64869 6636) (string-bytes 1 1631552) (vectors 8 30336) (vector-slots 4 1341024 41994) (floats 8 219 418) (intervals 28 6473 2326) (buffers 512 45))