unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match)
@ 2021-07-23 17:43 Jacob Faibussowitsch
  2021-07-23 18:19 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Faibussowitsch @ 2021-07-23 17:43 UTC (permalink / raw)
  To: 49712

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

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)


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

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

* bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match)
  2021-07-23 17:43 bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match) Jacob Faibussowitsch
@ 2021-07-23 18:19 ` Lars Ingebrigtsen
  2021-07-23 18:23   ` Jacob Faibussowitsch
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-23 18:19 UTC (permalink / raw)
  To: Jacob Faibussowitsch; +Cc: 49712

Jacob Faibussowitsch <jacob.fai@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





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

* bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match)
  2021-07-23 18:19 ` Lars Ingebrigtsen
@ 2021-07-23 18:23   ` Jacob Faibussowitsch
  2021-07-23 18:23     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Faibussowitsch @ 2021-07-23 18:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 49712

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

Yes, latest trunk works now!

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)

> On Jul 23, 2021, at 14:19, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Jacob Faibussowitsch <jacob.fai@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


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

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

* bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match)
  2021-07-23 18:23   ` Jacob Faibussowitsch
@ 2021-07-23 18:23     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-23 18:23 UTC (permalink / raw)
  To: Jacob Faibussowitsch; +Cc: 49712

Jacob Faibussowitsch <jacob.fai@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





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

end of thread, other threads:[~2021-07-23 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 17:43 bug#49712: [Emacs 28.0.50 Master] Error: (wrong-type-argument listp string-match) Jacob Faibussowitsch
2021-07-23 18:19 ` Lars Ingebrigtsen
2021-07-23 18:23   ` Jacob Faibussowitsch
2021-07-23 18:23     ` Lars Ingebrigtsen

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