From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.bugs Subject: bug#47678: 27.1; `completion-boundaries` assertion failure for file Date: Tue, 13 Apr 2021 06:04:24 +0200 Message-ID: References: <8d537117-d036-ad84-e013-d98efb3ae0c4@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47678@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 13 06:05:29 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWAIr-0002kq-NR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 06:05:29 +0200 Original-Received: from localhost ([::1]:36952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWAIq-0005Ob-Oy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 00:05:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWAIQ-0005Ng-BE for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 00:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWAIQ-0006Qk-3a for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 00:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWAIP-0004PK-Tg for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 00:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Apr 2021 04:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47678 X-GNU-PR-Package: emacs Original-Received: via spool by 47678-submit@debbugs.gnu.org id=B47678.161828667616907 (code B ref 47678); Tue, 13 Apr 2021 04:05:01 +0000 Original-Received: (at 47678) by debbugs.gnu.org; 13 Apr 2021 04:04:36 +0000 Original-Received: from localhost ([127.0.0.1]:58694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWAHz-0004Od-N4 for submit@debbugs.gnu.org; Tue, 13 Apr 2021 00:04:35 -0400 Original-Received: from server.qxqx.de ([178.63.65.180]:42479 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWAHx-0004OF-Ak for 47678@debbugs.gnu.org; Tue, 13 Apr 2021 00:04:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GOAn4zZPaOQR8MymFfmFSptEcKeNnt75S/yBr3ZOOOY=; b=sbNQzbsEOqUymuQ8cFzDGlBILF dtl56zXJAkF9dLchh7zBPlj7T0y2eMWVHsGyqRl+3zt8wXi7G7jMZbOC4r/kdLm1++I2rr1kRetXQ rTUNta7oq1/hN+LemS9wpS+0Xx87a5hveNaWfYrFPK2Z1Atr45ppg9nighT911PMddLc=; In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203943 Archived-At: On 4/13/21 1:28 AM, Stefan Monnier wrote: >> 2. Press "C-x C-f" >> 3. Enter the path "~//" >> 4. Move the point between the slashes, "~/|/" >> 5. Press "C-." > > Thanks! > [ It would have helped to say what happens for you there. ] Yes, I wrote "assertion failure". Sorry for not having been more precise (out of bounds error/assertion failure and pasted a stack trace, I will do that the next time). On Emacs 28 it seems to only give an out of bounds error directly. But from the patch below you identified the relevant line. I had seen ufull/ustring/usomething in the error message. > I installed the patch below, which seems to fix the immediate problem > I managed to reproduce, but it might lead to further problems down > the road. Thank you for looking into this. I hope this will not lead to further problems, it is mostly an edge case when moving around the cursor and the path at that point is not really valid? What kind of issues could happen? I can always enter some invalid/shadowed path ///, /~~~/, ~/~/~, which do not make problems (at least with this patch).