unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil
@ 2023-12-18 20:10 parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-12-19  9:50 ` João Távora
  0 siblings, 1 reply; 4+ messages in thread
From: parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-12-18 20:10 UTC (permalink / raw)
  To: 67884

Hi,

If global case-fold-search is nil, fido-mode throws errors when typing 
upper case letters or on candidates with upper case letters.

Reproduce with: emacs -Q, then:

(fido-mode 1)
(toggle-case-fold-search)

;; then execute:
;; M-x <T or t or another pattern>

Which produces messages like:
 > Error in post-command-hook (icomplete-post-command-hook): (error 
"Internal error: \\`\\(.*?\\)T does not match cpp-parse-edit")
 > Error in post-command-hook (icomplete-post-command-hook): (error 
"Internal error: \\`\\(.*?\\)t does not match LaTeX-mode")

Many thanks!

--
In GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32) of 2023-12-18 built
  on <hostname>
Repository revision: 14504fca8b5589c5c80a69dcab6e02681b196fa1
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.3803)

Configured using:
  'configure --with-tree-sitter --with-native-compilation=aot 'CFLAGS=-O2
  -gdwarf-4 -g3 -fno-optimize-sibling-calls''

Configured features:
ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES
NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important settings:
   value of $LANG: en_US.UTF-8
   locale-coding-system: cp1252

Major mode: Messages

Minor modes in effect:
   icomplete-mode: t
   fido-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-regexp-mode: t
   buffer-read-only: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util time-date subr-x mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print byte-opt gv
thingatpt help-fns radix-tree help-mode compile text-property-search
comint ansi-osc ansi-color ring comp-run bytecomp byte-compile
comp-common rx cus-start cus-load icomplete cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify dbusbind w32 lcms2
multi-tty move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 92115 20642) (symbols 48 8077 0) (strings 32 24764 1710)
  (string-bytes 1 674338) (vectors 16 15840)
  (vector-slots 8 336906 18454) (floats 8 33 11936)
  (intervals 56 299 17) (buffers 992 14))






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil
  2023-12-18 20:10 bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-12-19  9:50 ` João Távora
  2023-12-19 10:14   ` João Távora
  0 siblings, 1 reply; 4+ messages in thread
From: João Távora @ 2023-12-19  9:50 UTC (permalink / raw)
  To: parlando; +Cc: 67884

tags 67884 confirm
thanks

On Mon, Dec 18, 2023 at 8:11 PM parlando--- via Bug reports for GNU
Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org>
wrote:
>
> Hi,
>
> If global case-fold-search is nil, fido-mode throws errors when typing
> upper case letters or on candidates with upper case letters.
>
> Reproduce with: emacs -Q, then:
>
> (fido-mode 1)
> (toggle-case-fold-search)
>
> ;; then execute:
> ;; M-x <T or t or another pattern>
>
> Which produces messages like:
>  > Error in post-command-hook (icomplete-post-command-hook): (error
> "Internal error: \\`\\(.*?\\)T does not match cpp-parse-edit")
>  > Error in post-command-hook (icomplete-post-command-hook): (error
> "Internal error: \\`\\(.*?\\)t does not match LaTeX-mode")

Thanks.  Reproduced.  I think the error specifically was due to
recent changes in Emacs master.  In Emacs 29, fido-mode doesn't
error, but doesn't respect case-fold-search either.

João





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil
  2023-12-19  9:50 ` João Távora
@ 2023-12-19 10:14   ` João Távora
  2023-12-19 19:17     ` parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: João Távora @ 2023-12-19 10:14 UTC (permalink / raw)
  To: parlando; +Cc: 67884

close 67884
thanks

On Tue, Dec 19, 2023 at 9:50 AM João Távora <joaotavora@gmail.com> wrote:

> Thanks.  Reproduced.  I think the error specifically was due to
> recent changes in Emacs master.

I fixed the recently introduced error in Emacs master (c0c79b0b4).

> In Emacs 29, fido-mode doesn't
> error, but doesn't respect case-fold-search either.

I may have mislead you to think there was also a problem in Emacs 29,
but there isn't.  Completion styles obey completion-ignore-case,
not case-fold-search directly.

Furthermore, while the flex completion style does obey it, fido-mode
(which is a "Fake Ido" extension) always sets completion-ignore-case
to t by default.  There are ways to get around it, admittedly
not very practical, but not terrible either.

  (defun joaot/minibuffer-setup-hook ()
    (setq-local completion-ignore-case nil))
  (add-hook 'minibuffer-setup-hook #'joaot/minibuffer-setup-hook t)

João





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil
  2023-12-19 10:14   ` João Távora
@ 2023-12-19 19:17     ` parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 4+ messages in thread
From: parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-12-19 19:17 UTC (permalink / raw)
  To: João Távora; +Cc: 67884

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

On 12/19/2023 11:14 AM, João Távora wrote:
> close 67884
> thanks
>
> On Tue, Dec 19, 2023 at 9:50 AM João Távora<joaotavora@gmail.com>  wrote:
>
>> Thanks.  Reproduced.  I think the error specifically was due to
>> recent changes in Emacs master.
> I fixed the recently introduced error in Emacs master (c0c79b0b4).
>
>> In Emacs 29, fido-mode doesn't
>> error, but doesn't respect case-fold-search either.
> I may have mislead you to think there was also a problem in Emacs 29,
> but there isn't.  Completion styles obey completion-ignore-case,
> not case-fold-search directly.
>
> Furthermore, while the flex completion style does obey it, fido-mode
> (which is a "Fake Ido" extension) always sets completion-ignore-case
> to t by default.  There are ways to get around it, admittedly
> not very practical, but not terrible either.
>
>    (defun joaot/minibuffer-setup-hook ()
>      (setq-local completion-ignore-case nil))
>    (add-hook 'minibuffer-setup-hook #'joaot/minibuffer-setup-hook t)
>
> João


Nice. Anyway, for me ignore case in minibuffer is the most suitable 
method, and maybe for most people too.

[-- Attachment #2: Type: text/html, Size: 1901 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-19 19:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-18 20:10 bug#67884: 30.0.50; fido-mode errors when case-fold-search is nil parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-19  9:50 ` João Távora
2023-12-19 10:14   ` João Távora
2023-12-19 19:17     ` parlando--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

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).