GNU bug report logs - #17559
`initials' does not complete underscore delimited input

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Andreas Politz <politza@HIDDEN>; dated Fri, 23 May 2014 14:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17559 <at> debbugs.gnu.org:


Received: (at 17559) by debbugs.gnu.org; 31 Aug 2016 19:27:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 31 15:27:39 2016
Received: from localhost ([127.0.0.1]:45647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bfBAh-0007Tg-OR
	for submit <at> debbugs.gnu.org; Wed, 31 Aug 2016 15:27:39 -0400
Received: from gateway-a.fh-trier.de ([143.93.54.181]:58977)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <politza@HIDDEN>) id 1bfBAg-0007TT-Sg
 for 17559 <at> debbugs.gnu.org; Wed, 31 Aug 2016 15:27:39 -0400
X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum
 Hochschule Trier (RZ/HT)]
Received: from localhost (ip5f5bdf67.dynamic.kabel-deutschland.de
 [95.91.223.103]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested) (Authenticated sender: politza)
 by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 36F1A1798A52
 for <17559 <at> debbugs.gnu.org>; Wed, 31 Aug 2016 21:27:23 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de;
 s=default; t=1472671643; bh=a3SM9Pv1PZqPOiRQuP9IDnoq9Ow=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type;
 b=g7BTPL406ESN+/6EIdesfcNKkB0BXRf6Mjum9MOCmwsZmobtTBZh9D6HgFGzReObq
 fRGppkLYClm5Ncolf+mysa67kvb5GlPGPfbuoXBULPOKMh7UGFV4diFKWaXWCz+4qx
 eQWwCCPOcorZ1ICxmxrO9tGVu2JgLZvJM4YCvia8=
From: Andreas Politz <politza@HIDDEN>
To: 17559 <at> debbugs.gnu.org
Subject: Re: bug#17559: 24.3.50;
 Partial completion does not complete underscore delimited input
Date: Wed, 31 Aug 2016 21:27:22 +0200
Message-ID: <87zins4u3p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 17559
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


Coming back to this...

What do you think, where should the information regarding the string to use as
a separator for the initials style come from, if it's not hard-coded ?

Andreas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.

Message received at 17559 <at> debbugs.gnu.org:


Received: (at 17559) by debbugs.gnu.org; 19 Jun 2014 21:41:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 19 17:41:41 2014
Received: from localhost ([127.0.0.1]:53524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wxk5U-00038i-JH
	for submit <at> debbugs.gnu.org; Thu, 19 Jun 2014 17:41:41 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:12870)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Wxk5S-00038V-7g
 for 17559 <at> debbugs.gnu.org; Thu, 19 Jun 2014 17:41:39 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ
X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68438393"
Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home)
 ([75.119.224.253])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 19 Jun 2014 17:41:32 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 52F0F61DB8; Thu, 19 Jun 2014 17:41:32 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Andreas Politz <politza@HIDDEN>
Subject: Re: bug#17559: 24.3.50;
 Partial completion does not complete underscore delimited input
Message-ID: <jwvy4wstw8g.fsf-monnier+emacsbugs@HIDDEN>
References: <87mwe88sbs.fsf@HIDDEN>
 <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN>
 <87bnuo8ijh.fsf@HIDDEN>
Date: Thu, 19 Jun 2014 17:41:32 -0400
In-Reply-To: <87bnuo8ijh.fsf@HIDDEN> (Andreas Politz's message of
 "Fri, 23 May 2014 20:19:14 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 17559
Cc: 17559 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> Would something like the following be sufficient ?
[...]
> !           (let ((separator
> !                  (or (completion-metadata-get
> !                       (completion-metadata str table pred)
> !                       'completion-initials-separator)
> !                      (plist-get completion-extra-properties
> !                                 :completion-initials-separator)
> !                      "-")))

It could work, tho it requires changing all the corresponding completion
tables to provide the other "filling" when needed.
I think this should be fixable/fixed without needing to touch the
completion tables.

And if we add such `completion-initials-separator' properties, we'll be
stuck with them "for ever", so I'd rather not go there if there's
a chance we might not need them.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.

Message received at 17559 <at> debbugs.gnu.org:


Received: (at 17559) by debbugs.gnu.org; 23 May 2014 18:19:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 23 14:19:44 2014
Received: from localhost ([127.0.0.1]:58169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wnu4C-0006lw-St
	for submit <at> debbugs.gnu.org; Fri, 23 May 2014 14:19:44 -0400
Received: from gateway-a.fh-trier.de ([143.93.54.181]:43710)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <politza@HIDDEN>) id 1Wnu47-0006lc-BF
 for 17559 <at> debbugs.gnu.org; Fri, 23 May 2014 14:19:39 -0400
X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum
 Hochschule Trier]
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=
Received: from politza by luca with local (Exim 4.80)
 (envelope-from <politza@HIDDEN>)
 id 1Wnu3m-0003up-H3; Fri, 23 May 2014 20:19:14 +0200
From: Andreas Politz <politza@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#17559: 24.3.50;
 Partial completion does not complete underscore delimited input
References: <87mwe88sbs.fsf@HIDDEN>
 <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN>
Date: Fri, 23 May 2014 20:19:14 +0200
In-Reply-To: <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's
 message of "Fri, 23 May 2014 11:47:20 -0400")
Message-ID: <87bnuo8ijh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 17559
Cc: 17559 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--=-=-=
Content-Type: text/plain

Stefan Monnier <monnier@HIDDEN> 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

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.

Message received at 17559 <at> debbugs.gnu.org:


Received: (at 17559) by debbugs.gnu.org; 23 May 2014 17:58:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 23 13:58:29 2014
Received: from localhost ([127.0.0.1]:58138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wntjd-00065B-0l
	for submit <at> debbugs.gnu.org; Fri, 23 May 2014 13:58:28 -0400
Received: from gateway-a.fh-trier.de ([143.93.54.181]:56178)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <politza@HIDDEN>) id 1WntjW-00064p-Uj
 for 17559 <at> debbugs.gnu.org; Fri, 23 May 2014 13:58:23 -0400
X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum
 Hochschule Trier]
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 0F946178A580;
 Fri, 23 May 2014 19:57:57 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de;
 s=default; t=1400867877; bh=cze0VCZdxNx5F2aHmGgqBi4JGBM=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:
 MIME-Version:Content-Type;
 b=SgH33LnsDo95HpA1bzq3BaLAGsgNhtqNMU3gWe5v7Amr78GYAyVOJ24ZRhlcKh4X6
 L0UlX3ThTmEtSYDzSAb34+IcUjWu/N2C78Or19gfjkh6/5GOBzKfO2/yQXHUD+lSty
 rU5C5TsaGuWPW/oNwxAeyPPIiTWo7xgivbsnff8g=
Received: from politza by luca with local (Exim 4.80)
 (envelope-from <politza@HIDDEN>)
 id 1WntjA-0003sa-Cf; Fri, 23 May 2014 19:57:56 +0200
From: Andreas Politz <politza@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#17559: 24.3.50;
 Partial completion does not complete underscore delimited input
References: <87mwe88sbs.fsf@HIDDEN>
 <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN>
Date: Fri, 23 May 2014 19:57:56 +0200
In-Reply-To: <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's
 message of "Fri, 23 May 2014 11:47:20 -0400")
Message-ID: <87fvk08jiz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 17559
Cc: 17559 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Stefan Monnier <monnier@HIDDEN> writes:

> retitle 17559 `initials' does not complete underscore delimited input
> severity 17559 wishlist
> thanks
>

> [...] "a_b_c" can be completed by
> `partial-completion' style to "alonzo_bob_church" [...]
>

Yes, you're right.

Andreas





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to '`initials' does not complete underscore delimited input' from '24.3.50; Partial completion does not complete underscore delimited input ' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 17559 <at> debbugs.gnu.org:


Received: (at 17559) by debbugs.gnu.org; 23 May 2014 15:47:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 23 11:47:38 2014
Received: from localhost ([127.0.0.1]:58024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wnrgz-0007nn-W0
	for submit <at> debbugs.gnu.org; Fri, 23 May 2014 11:47:38 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37909)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>)
 id 1Wnrgs-0007nJ-Jc; Fri, 23 May 2014 11:47:31 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArYGAIDvNVPO+KQe/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ
X-IPAS-Result: ArYGAIDvNVPO+KQe/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="63867220"
Received: from 206-248-164-30.dsl.teksavvy.com (HELO pastel.home)
 ([206.248.164.30])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 23 May 2014 11:47:20 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 5FBA5600B0; Fri, 23 May 2014 11:47:20 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Andreas Politz <politza@HIDDEN>
Subject: Re: bug#17559: 24.3.50;
 Partial completion does not complete underscore delimited input
Message-ID: <jwvwqdc5ws2.fsf-monnier+emacsbugs@HIDDEN>
References: <87mwe88sbs.fsf@HIDDEN>
Date: Fri, 23 May 2014 11:47:20 -0400
In-Reply-To: <87mwe88sbs.fsf@HIDDEN> (Andreas Politz's message of
 "Fri, 23 May 2014 16:47:51 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 17559
Cc: 17559 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

retitle 17559 `initials' does not complete underscore delimited input
severity 17559 wishlist
thanks

> The documentation for the customizable variable
> `completion-pcm-word-delimiters' states:
> ``"A string of characters treated as word delimiters for completion.''
> The default value contains _ , yet it does not seem to work, i.e.

This variable just means that "a_b_c" can be completed by
`partial-completion' style to "alonzo_bob_church" and indeed, that
works, AFAICT.

> (let ((completion-styles '(partial)))
>   (completion-initials-all-completions "fdh" '("friss_die_haelfte") nil 0))

[ completion-styles is used to decide which completion-*-all-completions
  to call, but completion-initials-all-completions should be unaffected by
  completion-styles (and indeed, it isn't, and `partial' is not a valid
  completion style, AFAIK). ]

> => nil

Indeed, completion-initials-all-completions hard-codes "-" as the
separator (you can see it in completion-initials-expand).


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 May 2014 14:48:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 23 10:48:47 2014
Received: from localhost ([127.0.0.1]:57985 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wnqm3-0005yc-9k
	for submit <at> debbugs.gnu.org; Fri, 23 May 2014 10:48:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41293)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <politza@HIDDEN>) id 1Wnqlw-0005yE-Pu
 for submit <at> debbugs.gnu.org; Fri, 23 May 2014 10:48:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1Wnqlk-0001ag-3Q
 for submit <at> debbugs.gnu.org; Fri, 23 May 2014 10:48:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41289)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1Wnqlk-0001ac-0r
 for submit <at> debbugs.gnu.org; Fri, 23 May 2014 10:48:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42967)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1Wnqld-0006Cg-02
 for bug-gnu-emacs@HIDDEN; Fri, 23 May 2014 10:48:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1WnqlW-0001Y2-19
 for bug-gnu-emacs@HIDDEN; Fri, 23 May 2014 10:48:16 -0400
Received: from gateway-a.fh-trier.de ([143.93.54.181]:34001)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1WnqlV-0001Xs-OU
 for bug-gnu-emacs@HIDDEN; Fri, 23 May 2014 10:48:09 -0400
X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum
 Hochschule Trier]
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 B02DC178A5D2
 for <bug-gnu-emacs@HIDDEN>; Fri, 23 May 2014 16:47:52 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de;
 s=default; t=1400856472; bh=jIYYCgmcmLS9OThUIcKV6mbGZzo=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding;
 b=W3bCMF2p8VBxWSh5ZYTbT3G8ZpgwbwQV2RQm/rS3dvNToDPxuOS+fJvgzgQvNHDVT
 8+hj/I82PiAh4O6mLMJjAYLZN4hUFjHQL1R67DQn12+B+KG0qI6TWRhUvzYxWIyV/+
 i0YX5VJPwrrpxNNy5WOxl9DzmkrLHGMpnMph/JV0=
Received: from politza by luca with local (Exim 4.80)
 (envelope-from <politza@HIDDEN>) id 1WnqlE-0002tS-0o
 for bug-gnu-emacs@HIDDEN; Fri, 23 May 2014 16:47:52 +0200
From: Andreas Politz <politza@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50;
 Partial completion does not complete underscore delimited input 
Date: Fri, 23 May 2014 16:47:51 +0200
Message-ID: <87mwe88sbs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


The documentation for the customizable variable
`completion-pcm-word-delimiters' states:
``"A string of characters treated as word delimiters for completion.''

The default value contains _ , yet it does not seem to work, i.e.

(let ((completion-styles '(partial)))
  (completion-initials-all-completions "fdh" '("friss_die_haelfte") nil 0))
=3D> nil
(let ((completion-styles '(partial)))
  (completion-initials-all-completions "fdh" '("friss-die-haelfte") nil 0))
=3D> ("friss-die-haelfte" . 0)

It would be nice for c-mode, if this could be made working.

Gr=C3=BC=C3=9Fe,

A. Politz




Acknowledgement sent to Andreas Politz <politza@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17559; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.