From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#17091: 24.3.50; Info-index doesn't call its completing-read in current-buffer. Date: Tue, 25 Mar 2014 07:03:12 +0100 Message-ID: <87fvm6rf1b.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395727447 16652 80.91.229.3 (25 Mar 2014 06:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 06:04:07 +0000 (UTC) To: 17091@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 07:04:16 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 1WSKTA-0004T8-65 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 07:04:16 +0100 Original-Received: from localhost ([::1]:39777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKT9-0006Vh-R2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 02:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKT2-0006VY-Kg for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:04:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSKSx-0000Fj-JQ for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:04:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKSx-0000Fd-Fp for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WSKSx-00025k-2l for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:04:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Mar 2014 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17091 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.13957274388024 (code B ref -1); Tue, 25 Mar 2014 06:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Mar 2014 06:03:58 +0000 Original-Received: from localhost ([127.0.0.1]:48385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSKSq-00025H-MU for submit@debbugs.gnu.org; Tue, 25 Mar 2014 02:03:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48346) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSKSm-000257-Jp for submit@debbugs.gnu.org; Tue, 25 Mar 2014 02:03:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSKSh-00005d-5b for submit@debbugs.gnu.org; Tue, 25 Mar 2014 02:03:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKSh-00005X-2u for submit@debbugs.gnu.org; Tue, 25 Mar 2014 02:03:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKSc-0006Su-9S for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:03:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSKSX-0008UN-Dn for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:03:42 -0400 Original-Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:40019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSKSX-0008Tn-2I for bug-gnu-emacs@gnu.org; Tue, 25 Mar 2014 02:03:37 -0400 Original-Received: by mail-wg0-f48.google.com with SMTP id l18so4115286wgh.19 for ; Mon, 24 Mar 2014 23:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:from:to:subject:date:message-id:mime-version :content-type; bh=rmfhQKS5xQPpqvbkHeG00WU1XNpwz253N/Cl0Map2Pk=; b=omVZ9RnPtWifLVLM+104zujjvhuZxG9CiJvSWbiZPXvM1GBY0t0rBaazsScyZ+c5p5 TFmywnbt+saAaFcZ95uItORAz1XWEIaXDIZJjuE1JxQgWElUbnYtSmRcs925wnllc1iE B8Bsvc2wbfh5oIjJimwAz/1Xg28mtLugRwZLy978f/QPbCJUrr4ghTxGXyScSTTrFvau lQgzpgF+ypkK+QBRl1VQjMY4uOWdzF0fNvWDug3cIpR4cyOjdbWkaOF1dkSnkC4zCCBr FK/BnntDORneisaUVHmC5/94S5hdUYV+2lcT6h4GaaZktD6H3mzkfLF/b1jEZhtSIop7 pnjw== X-Received: by 10.180.164.229 with SMTP id yt5mr20549297wib.49.1395727415285; Mon, 24 Mar 2014 23:03:35 -0700 (PDT) Original-Received: from dell-14z ([37.160.119.195]) by mx.google.com with ESMTPSA id ga20sm46682834wic.0.2014.03.24.23.03.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 23:03:34 -0700 (PDT) User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:87346 Archived-At: Hi, when in a info buffer and calling `Info-index' ("i") the buffer `Info-complete-menu-buffer' is made current just to call `Info-goto-index', then the `completing-read' is called from this buffer instead of beeing called from `current-buffer'. This is not needed because the collection function of the `completing-read' (`Info-complete-menu-item') is making the `Info-complete-menu-buffer' current to compute its data. In emacs, there is no problem, it is working like this, however in external application like helm, it cause problems. See https://github.com/emacs-helm/helm/issues/456 With this patch it change nothing in emacs and solve our problem: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/info.el b/lisp/info.el index a5ad5be..25a5f86 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -3278,9 +3278,10 @@ Give an empty topic name to go to the Index node itself." (if (equal Info-current-file "dir") (error "The Info directory node has no index; use m to select a manual")) (unwind-protect - (with-current-buffer Info-complete-menu-buffer - (Info-goto-index) - (completing-read "Index topic: " 'Info-complete-menu-item)) + (progn + (with-current-buffer Info-complete-menu-buffer + (Info-goto-index)) + (completing-read "Index topic: " 'Info-complete-menu-item)) (kill-buffer Info-complete-menu-buffer))))) (if (equal Info-current-file "dir") (error "The Info directory node has no index; use m to select a manual")) --8<---------------cut here---------------end--------------->8--- Thanks. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-03-23 on dell-14z Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.4 LTS Configured using: `configure --with-x-toolkit=lucid --without-toolkit-scroll-bars --without-gconf --without-gsettings' Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t git-gutter-mode: t psession-mode: t golden-ratio-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t auto-image-file-mode: t eldoc-in-minibuffer-mode: t show-paren-mode: t display-time-mode: t recentf-mode: t savehist-mode: t eldoc-mode: t minibuffer-depth-indicate-mode: t helm-mode: t helm-descbinds-mode: t shell-dirtrack-mode: t helm-adaptative-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t tooltip-mode: t electric-indent-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: v M-x w 3 m M-x Q y C-g C-g U b u b t n n n n q q q C-x C-d C-g s c M-> C-SPC C-n C-n C-n C-d U b u n n n p p p q q q C-x C-b M-y C-g M-x r e p o r t - e m Recent messages: Preparing diary... No diary entries for Mardi, 25 Mars 2014 Preparing diary...done Mark set [2 times] Auto-saving... [mu4e] Retrieving mail...done [mu4e] Indexing... processed 12000, updated 5 [mu4e] Indexing completed; processed 12556, updated 5, cleaned-up 0 [mu4e] mu4e-main-mode [mu4e] Found 4 matching messages Load-path shadows: ~/elisp/auctex/lpath hides ~/elisp/emacs-wget/lpath /usr/local/share/emacs/24.3.50/lisp/emacs-lisp/tq hides ~/elisp/emms/lisp/tq Features: (shadow emacsbug helm-w3m helm-command conf-mode helm-firefox gnus-html url-cache flow-fill mm-archive helm-sys w3m-form w3m-filter w3m-cookie w3m-bookmark w3m-tabmenu w3m-session helm-semantic helm-imenu imenu semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet helm-dabbrev epa-mail etags help-mode edebug helm-ring cl-indent qp gnus-fun smiley gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml nndraft nnmh nnml nnfolder parse-time netrc network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache magit-cherry magit-bisect magit-log-edit log-edit add-log magit-key-mode magit view ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff diff-mode magit-compat mule-util vc-rcs sh-script smie executable vc-git naquadah-theme em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias align-let git-gutter server persistent-sessions config-w3m w3m-search w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load golden-ratio winner undo-tree diff image-file newsticker newst-treeview newst-plainview newst-reader newst-ticker newst-backend xdvi-search preview-latex tex-site auto-loads pcomplete-extension em-term term disp-table ehelp helm-ipython helm-elisp helm-eval python eldoc-eval warnings whitespace paren time avoid recentf tree-widget savehist mu4e-config helm-mu mu4e-contrib mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils mu4e-lists mu4e-about mu4e-vars mu4e-meta gnus-dired nnir gnus-sum gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win nnoo smtpmail-async smtpmail sendmail dired-async iterator simple-call-tree iedit-rect rect iedit iedit-lib smallurl mm-url gnus gnus-ems nnheader wid-edit rectangle-utils ledger-config ledger esh-var esh-io esh-cmd esh-opt esh-ext esh-proc eldoc esh-groups eshell esh-module esh-mode esh-arg esh-util tv-utils async pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs pcvs-util ewoc mb-depth cl-info slime-autoloads esh-toggle flymake no-word htmlize cl dired-extension emms-mpd-config emms-playlist-limit emms-volume emms-volume-amixer emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-url hl-line emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer emms-info emms-streams later-do emms-source-playlist emms-source-file emms-player-simple emms-setup emms emms-compat org-config-thierry ob-sh org-crypt cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda org-annotation-helper addressbook-bookmark message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader firefox-protocol bookmark-firefox-handler bookmark-extensions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs init-helm-thierry helm-mode helm-dictionary helm-ls-git helm-descbinds helm-ls-hg helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-plugin bookmark pp helm-help helm-match-plugin helm-grep wgrep-helm wgrep helm-regexp grep helm-external helm-utils dired compile comint ansi-color ring helm-locate helm vc vc-dispatcher helm-config helm-aliases epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util time-date mm-util mail-prsvr password-cache package info easymenu cl-macs gv edmacro kmacro advice help-fns net-utils cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd 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 dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 671613 99166) (symbols 48 59843 89) (miscs 40 3156 4177) (strings 32 163235 14860) (string-bytes 1 8728940) (vectors 16 64001) (vector-slots 8 1782934 155708) (floats 8 2495 1312) (intervals 56 33058 3606) (buffers 960 215) (heap 1024 85811 6102)) -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997