unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: Thalis Charakas <thales1@protonmail.com>, 64903@debbugs.gnu.org
Subject: bug#64903: 28.2; completion-at-point deletes next line(s) when completing a single character in elisp
Date: Sun, 03 Sep 2023 20:20:58 +0300	[thread overview]
Message-ID: <86o7ij1h59.fsf_-_@mail.linkov.net> (raw)
In-Reply-To: <handler.64903.D64903.16937342167352.notifdone@debbugs.gnu.org> (GNU bug Tracking System's message of "Sun, 03 Sep 2023 09:44:02 +0000")

unarchive 62700
reopen 62700
reopen 64903
thanks

>>> When completing a single character with completion-at-point (M-C-i) in elsip,
>>> after you select the desiered completion, it is inserted in the buffer
>>> but some of the following lines are deleted. This does not happen when
>>> the line has two characters.
>
> More information was requested, but none was given within 5 weeks, so
> I'm closing this bug.  If this is still an issue, please reply to this
> email (use "Reply to all" in your email client) and we can reopen the
> bug report.

Sorry, I was able to reproduce this error, but waited for more explanations
from the OP why this happened only with two characters, whereas in my tests
it fails with empty initial input.

I think the analysis from minad was correct in
https://github.com/minad/corfu/issues/350#issuecomment-1653880668
and the bug is in elisp-completion-at-point.

Indeed, when trying to eval M-: (elisp-completion-at-point) after ‘(a’ in

  (a
  ;; This buffer is for text that is not saved, and for Lisp evaluation.
  ;; To create a file, visit it with C-x C-f and enter text in its buffer.

it correctly returns (2 3 ...

But evaluating M-: (elisp-completion-at-point) after ‘(’ in

  (
  ;; This buffer is for text that is not saved, and for Lisp evaluation.
  ;; To create a file, visit it with C-x C-f and enter text in its buffer.

returns (2 148 ...
whereas I think it should return (2 2

PS: Also found a related problem in bug#62700.





  parent reply	other threads:[~2023-09-03 17:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-27 16:10 bug#64903: 28.2; completion-at-point deletes next line(s) when completing a single character in elisp Thalis Charakas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-27 16:49 ` Eli Zaretskii
2023-09-03  9:43   ` Stefan Kangas
     [not found] ` <handler.64903.D64903.16937342167352.notifdone@debbugs.gnu.org>
2023-09-03 17:20   ` Juri Linkov [this message]
2024-01-19  7:20     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86o7ij1h59.fsf_-_@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=64903@debbugs.gnu.org \
    --cc=stefankangas@gmail.com \
    --cc=thales1@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).