GNU bug report logs -
#49712
[Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match)
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49712 in the body.
You can then email your comments to 49712 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49712
; Package
emacs
.
(Fri, 23 Jul 2021 18:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jacob Faibussowitsch <jacob.fai <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 23 Jul 2021 18:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
Full error message:
Directory-local variables error: (wrong-type-argument listp string-match)
How to reproduce:
$ emacs -Q
OR
$ git checkout master
$ make all
(The warning will appear when byte-compiling emacs internals in the second case)
What I think went wrong:
I am pretty sure this was introduced in https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ad5faa424a5d2f0d67265906d21f7af98220df26 <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ad5faa424a5d2f0d67265906d21f7af98220df26>, in set-auto-mode--apply-alist() in lisp/files.el (+3198 $EMACS_DIR/lisp/files.el for the lazy). Specifically line 3224:
+(while name
+ (setq mode
+ (if case-insensitive-p
+ ;; Filesystem is case-insensitive.
+ (let ((case-fold-search t))
> + (assoc-default alist 'string-match)))
Every other assoc-default() in this routine has “name” as an argument except the above, i.e.
(assoc-default name alist ’string-match)
—————————————————————————————————————
Version and config info:
In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.5.0)
Repository revision: fcae435f598471a2911641412125c5ac4f73559f
Repository branch: master
System Description: macOS 11.5
Configured using:
'configure CC=clang CXX=clang++ 'CFLAGS=-O3 -march=native -flto=thin
-flto-jobs=5 -std=gnu17 -Wno-unused-command-line-argument'
'CXXFLAGS=-O3 -march=native -flto=thin -flto-jobs=5 -std=gnu++17
-Wno-unused-command-line-argument' LDFLAGS=-mmacosx-version-min=11.4
'LIBS=-lpng -ljpeg' --with-gnutls --without-x --with-xml2 --with-dbus
--with-modules --with-json --without-ns --with-jpeg --with-tiff
--with-gif --with-png --with-rsvg --with-libsystemd --with-cairo
--with-zlib --with-libgmp --with-toolkit-scroll-bars
--disable-gcc-warnings --with-native-compilation’
Configured features:
ACL GMP GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE
PDUMPER THREADS XIM ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Best regards,
Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49712
; Package
emacs
.
(Fri, 23 Jul 2021 18:20:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 49712 <at> debbugs.gnu.org (full text, mbox):
Jacob Faibussowitsch <jacob.fai <at> gmail.com> writes:
> How to reproduce:
>
> $ emacs -Q
>
> OR
>
> $ git checkout master
> $ make all
>
> (The warning will appear when byte-compiling emacs internals in the second
> case)
Hm; I'm not able to reproduce this...
> +(while name
> + (setq mode
> + (if case-insensitive-p
> + ;; Filesystem is case-insensitive.
> + (let ((case-fold-search t))
>> + (assoc-default alist 'string-match)))
>
> Every other assoc-default() in this routine has “name” as an argument except
> the above, i.e.
>
> (assoc-default name alist ’string-match)
... but that's clearly the right fix here, I think, so I've now pushed
it to the trunk. Does the trunk work for you now?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49712
; Package
emacs
.
(Fri, 23 Jul 2021 18:24:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 49712 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Yes, latest trunk works now!
Best regards,
Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
> On Jul 23, 2021, at 14:19, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Jacob Faibussowitsch <jacob.fai <at> gmail.com> writes:
>
>> How to reproduce:
>>
>> $ emacs -Q
>>
>> OR
>>
>> $ git checkout master
>> $ make all
>>
>> (The warning will appear when byte-compiling emacs internals in the second
>> case)
>
> Hm; I'm not able to reproduce this...
>
>> +(while name
>> + (setq mode
>> + (if case-insensitive-p
>> + ;; Filesystem is case-insensitive.
>> + (let ((case-fold-search t))
>>> + (assoc-default alist 'string-match)))
>>
>> Every other assoc-default() in this routine has “name” as an argument except
>> the above, i.e.
>>
>> (assoc-default name alist ’string-match)
>
> ... but that's clearly the right fix here, I think, so I've now pushed
> it to the trunk. Does the trunk work for you now?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49712
; Package
emacs
.
(Fri, 23 Jul 2021 18:25:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 49712 <at> debbugs.gnu.org (full text, mbox):
Jacob Faibussowitsch <jacob.fai <at> gmail.com> writes:
> Yes, latest trunk works now!
*phew* Thanks for reporting and checking. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 28.1, send any further explanations to
49712 <at> debbugs.gnu.org and Jacob Faibussowitsch <jacob.fai <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 23 Jul 2021 18:25:03 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
.
(Sat, 21 Aug 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.