From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#17559: 24.3.50; Partial completion does not complete underscore delimited input Date: Fri, 23 May 2014 20:19:14 +0200 Message-ID: <87bnuo8ijh.fsf@hochschule-trier.de> References: <87mwe88sbs.fsf@hochschule-trier.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1400869235 5000 80.91.229.3 (23 May 2014 18:20:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2014 18:20:35 +0000 (UTC) Cc: 17559@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 23 20:20:24 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 1Wnu4n-0001ia-7Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 May 2014 20:20:17 +0200 Original-Received: from localhost ([::1]:45162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnu4m-0001Ty-O1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 May 2014 14:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnu4e-0001QP-3U for bug-gnu-emacs@gnu.org; Fri, 23 May 2014 14:20:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wnu4Y-000474-PE for bug-gnu-emacs@gnu.org; Fri, 23 May 2014 14:20:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnu4Y-00046h-HR for bug-gnu-emacs@gnu.org; Fri, 23 May 2014 14:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wnu4Y-0006mn-4f for bug-gnu-emacs@gnu.org; Fri, 23 May 2014 14:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 May 2014 18:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17559-submit@debbugs.gnu.org id=B17559.140086918526050 (code B ref 17559); Fri, 23 May 2014 18:20:02 +0000 Original-Received: (at 17559) by debbugs.gnu.org; 23 May 2014 18:19:45 +0000 Original-Received: from localhost ([127.0.0.1]:58169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wnu4C-0006lw-St for submit@debbugs.gnu.org; Fri, 23 May 2014 14:19:44 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:43710) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wnu47-0006lc-BF for 17559@debbugs.gnu.org; Fri, 23 May 2014 14:19:39 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier] Original-Received: from luca (dslb-178-004-154-209.pools.arcor-ip.net [178.4.154.209]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 28CC0178A5D2; Fri, 23 May 2014 20:19:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1400869155; bh=JCeUalQQcIaIyA81S0a59WqpbvE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=RzmR+Tuu7cKtjzW8d3L1QPHUV2wNKUrE4Hwl9k7X2XljxlxWVBylgaxE2W0KRLnoO M7A9aFbP21qluI/t4Kq02+f7iDGiIlamTauxdtgQTLHSh/dix2GMyuke/8rJmv0hR2 PmuWdilwYYFUvOmTzKvk03ieFzUXoKEDj+1iWqLg= Original-Received: from politza by luca with local (Exim 4.80) (envelope-from ) id 1Wnu3m-0003up-H3; Fri, 23 May 2014 20:19:14 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 23 May 2014 11:47:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:89412 Archived-At: --=-=-= Content-Type: text/plain Stefan Monnier writes: > severity 17559 wishlist Would something like the following be sufficient ? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=vc.diff === modified file 'lisp/minibuffer.el' *** lisp/minibuffer.el 2013-10-04 02:12:16 +0000 --- lisp/minibuffer.el 2014-05-23 18:14:44 +0000 *************** *** 3187,3193 **** (string-match completion-pcm--delim-wild-regex str (car bounds))) (if (zerop (car bounds)) ! (mapconcat 'string str "-") ;; If there's a boundary, it's trickier. The main use-case ;; we consider here is file-name completion. We'd like ;; to expand ~/eee to ~/e/e/e and /eee to /e/e/e. --- 3187,3200 ---- (string-match completion-pcm--delim-wild-regex str (car bounds))) (if (zerop (car bounds)) ! (let ((separator ! (or (completion-metadata-get ! (completion-metadata str table pred) ! 'completion-initials-separator) ! (plist-get completion-extra-properties ! :completion-initials-separator) ! "-"))) ! (mapconcat 'string str separator)) ;; If there's a boundary, it's trickier. The main use-case ;; we consider here is file-name completion. We'd like ;; to expand ~/eee to ~/e/e/e and /eee to /e/e/e. --=-=-= Content-Type: text/plain This appears to work, but I have little clue about the underlying partial completion matching algorithm. Andreas --=-=-=--