GNU bug report logs - #62935
29.0.90; icomplete-vertical-mode misses add-file-local-variable alternative

Previous Next

Package: emacs;

Reported by: Van Ly <van.ly <at> sdf.org>

Date: Tue, 18 Apr 2023 14:55:02 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 29.0.90

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62935 in the body.
You can then email your comments to 62935 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62935; Package emacs. (Tue, 18 Apr 2023 14:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Van Ly <van.ly <at> sdf.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 Apr 2023 14:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> sdf.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.90;
 icomplete-vertical-mode misses add-file-local-variable alternative
Date: Tue, 18 Apr 2023 14:53:54 GMT
[Message part 1 (text/plain, inline)]
The icomplete-vertical-mode does not list buffer-save-without-query as an option to add-file-local-variable after the input prefix buffer- .

Steps to reproduce
 - emacs -Q
 - switch to buffer bbb, C-x b bbb RET
 - enable completion mode, M-x icomplete-vertical-mode
 - add file local variable, M-x add-file-local-variable abbreviated by
   = M-x add-fi C-j
   = buffer- [does not list completion buffer-save-without-query]
   = alternatives listed are
     - buffer-read-only
     - buffer-offer-save

Expected behavior
 - completion mode lists buffer-save-without-query
   = example of desired completion listing
     - buffer-read-only
     - buffer-offer-save
     - buffer-save-without-query

Unexpected behavior
 - completion mode lists two alternatives without desired option
   = observed completion listing
     - buffer-read-only
     - buffer-offer-save

[bug-gnu-emacs-report.text (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62935; Package emacs. (Tue, 18 Apr 2023 15:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 62935 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Van Ly <van.ly <at> sdf.org>
Cc: 62935 <at> debbugs.gnu.org
Subject: Re: bug#62935: 29.0.90;
 icomplete-vertical-mode misses add-file-local-variable alternative
Date: Tue, 18 Apr 2023 18:53:01 +0300
> Date: Tue, 18 Apr 2023 14:53:54 GMT
> From: Van Ly <van.ly <at> sdf.org>
> 
> The icomplete-vertical-mode does not list buffer-save-without-query as an option to add-file-local-variable after the input prefix buffer- .
> 
> Steps to reproduce
>  - emacs -Q
>  - switch to buffer bbb, C-x b bbb RET
>  - enable completion mode, M-x icomplete-vertical-mode
>  - add file local variable, M-x add-file-local-variable abbreviated by
>    = M-x add-fi C-j
>    = buffer- [does not list completion buffer-save-without-query]
>    = alternatives listed are
>      - buffer-read-only
>      - buffer-offer-save
> 
> Expected behavior
>  - completion mode lists buffer-save-without-query
>    = example of desired completion listing
>      - buffer-read-only
>      - buffer-offer-save
>      - buffer-save-without-query
> 
> Unexpected behavior
>  - completion mode lists two alternatives without desired option
>    = observed completion listing
>      - buffer-read-only
>      - buffer-offer-save

add-file-local-variable completes only on variables that are safe as
local variables, and buffer-save-without-query is not.  So you need to
type its name completely.

This is not a bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62935; Package emacs. (Thu, 20 Apr 2023 18:40:01 GMT) Full text and rfc822 format available.

Message #11 received at 62935 <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> sdf.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 62935 <at> debbugs.gnu.org
Subject: Re: bug#62935: 29.0.90;
 icomplete-vertical-mode misses add-file-local-variable alternative
Date: Thu, 20 Apr 2023 18:38:54 GMT
> Date: Tue, 18 Apr 2023 18:53:01 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 62935 <at> debbugs.gnu.org
> 
> 
> add-file-local-variable completes only on variables that are safe as
> local variables, and buffer-save-without-query is not.  So you need to
> type its name completely.
> 

I see why.  Maybe unsafe options can allow an override to appear in
grey faded font.  There could be an explainer dialogue for what is unsafe.

I use buffer-save-without-query on scratch files.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62935; Package emacs. (Mon, 11 Sep 2023 23:22:02 GMT) Full text and rfc822 format available.

Message #14 received at 62935 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Van Ly <van.ly <at> sdf.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62935 <at> debbugs.gnu.org
Subject: Re: bug#62935: 29.0.90; icomplete-vertical-mode misses
 add-file-local-variable alternative
Date: Mon, 11 Sep 2023 16:21:41 -0700
tags 62935 notabug wontfix
close 62935
thanks

Van Ly <van.ly <at> sdf.org> writes:

>> Date: Tue, 18 Apr 2023 18:53:01 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>> Cc: 62935 <at> debbugs.gnu.org
>>
>>
>> add-file-local-variable completes only on variables that are safe as
>> local variables, and buffer-save-without-query is not.  So you need to
>> type its name completely.
>>
>
> I see why.  Maybe unsafe options can allow an override to appear in
> grey faded font.  There could be an explainer dialogue for what is unsafe.
>
> I use buffer-save-without-query on scratch files.

I tend to agree with Eli here, and I don't think we want to add unsafe
options there, as it will be too confusing.  So I'm closing this bug.




Added tag(s) wontfix and notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 11 Sep 2023 23:23:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 62935 <at> debbugs.gnu.org and Van Ly <van.ly <at> sdf.org> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 11 Sep 2023 23:23:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 Oct 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 193 days ago.

Previous Next


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