From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.60; Error on zero length completion Date: Sat, 26 Apr 2008 01:40:19 +0200 Organization: disorganized Message-ID: <87ve258pwc.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1209166843 13558 80.91.229.12 (25 Apr 2008 23:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2008 23:40:43 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 26 01:41:18 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JpXXW-0003Yf-Qm for ged-emacs-devel@m.gmane.org; Sat, 26 Apr 2008 01:41:15 +0200 Original-Received: from localhost ([127.0.0.1]:59590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpXWq-0004OI-O8 for ged-emacs-devel@m.gmane.org; Fri, 25 Apr 2008 19:40:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JpXWm-0004O4-87 for emacs-devel@gnu.org; Fri, 25 Apr 2008 19:40:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JpXWl-0004Nr-UF for emacs-devel@gnu.org; Fri, 25 Apr 2008 19:40:27 -0400 Original-Received: from [199.232.76.173] (port=35761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpXWl-0004Nh-B6 for emacs-devel@gnu.org; Fri, 25 Apr 2008 19:40:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JpXWk-0003hi-KL for emacs-devel@gnu.org; Fri, 25 Apr 2008 19:40:26 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:41661 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JpXWf-0006yy-Vj for emacs-pretest-bug@gnu.org; Fri, 25 Apr 2008 19:40:22 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JpXWg-0003hA-IL for emacs-pretest-bug@gnu.org; Fri, 25 Apr 2008 19:40:26 -0400 Original-Received: from mx01.hansenet.de ([213.191.73.25] helo=webmail.hansenet.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JpXWg-0003ei-1T for emacs-pretest-bug@gnu.org; Fri, 25 Apr 2008 19:40:22 -0400 Original-Received: from robotron.kosmorama (85.178.9.42) by webmail.hansenet.de (7.3.118.12) (authenticated as davidhansen@alice-dsl.de) id 480C3AE40112F971; Sat, 26 Apr 2008 01:40:20 +0200 Original-Received: from dhansen by robotron.kosmorama with local (Exim 4.69) (envelope-from ) id 1JpXWd-0000Sy-Ug; Sat, 26 Apr 2008 01:40:19 +0200 User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:95961 gmane.emacs.pretest.bugs:22143 Archived-At: --=-=-= Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hello, to reproduce: emacs -Q M-x Fix attached. 2008-04-26 David Hansen * minibuffer.el (completion-emacs22-try-completion): Check for zero length completion. --=-=-= Content-Type: text/x-patch Content-Disposition: inline *** minibuffer.el.~1.27.~ 2008-04-24 13:38:54.000000000 +0200 --- minibuffer.el 2008-04-26 01:34:55.000000000 +0200 *************** *** 1002,1008 **** ;; Merge a trailing / in completion with a / after point. ;; We used to only do it for word completion, but it seems to make ;; sense for all completions. ! (if (and (eq ?/ (aref completion (1- (length completion)))) (not (zerop (length suffix))) (eq ?/ (aref suffix 0))) ;; This leaves point before the / . --- 1002,1009 ---- ;; Merge a trailing / in completion with a / after point. ;; We used to only do it for word completion, but it seems to make ;; sense for all completions. ! (if (and (< 0 (length completion)) ! (eq ?/ (aref completion (1- (length completion)))) (not (zerop (length suffix))) (eq ?/ (aref suffix 0))) ;; This leaves point before the / . --=-=-= If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/dhansen/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-04-24 on robotron Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--prefix=/home/dhansen' '--disable-sound' '--disable-pop' '--without-gpm' '--without-toolkit-scroll-bars' '--disable-font-backend' '--with-x-toolkit=gtk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: ERC Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t erc-smiley-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t erc-scrolltobottom-mode: t erc-services-mode: t erc-networks-mode: t erc-autojoin-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t shell-dirtrack-mode: t flyspell-mode: t global-visible-mark-mode: t visible-mark-mode: t which-function-mode: t show-paren-mode: t iswitchb-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: 1 Recent input: M-> c v s SPC C-a C-k s h e l l C-x o C-x b s t u g C-g C-x b s t u f f C-g C-x C-f s t u g g f f / s t u g f f . o r C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-SPC M-} M-w C-x o C-y C-x o C-x o d c d SPC ~ / s r w m e m a C-y C-x o C-x b e m a ( s y t e m C-a C-k C-h v s y s h o n a s s u y s t e m - n a m e C-x o C-x b s h e M-> n i c e SPC - 1 9 SPC m a k e c d SPC l i s m a k SPC e e SPC r e c o m p i l e SPC E M A C S = . . / s r c / e m a c s c d SPC . . / m a k e M-v M-v M-v M-> C-x b e s h M-v M-v M-v M-> C-x b s h e c d SPC c d SPC s r . / e m a c s M-p SPC - ! Q C-x o C-x 1 M-x r e p o r e m b u g Recent messages: Type C-x 4 C-o RET to restore the other window. Mark set Partially completed ~/src/emacs/lisp ~/src/emacs Mark set [2 times] Completed ~/src/emacs/src History item: 1 Making completion list... --=-=-=--