GNU bug report logs - #52740
12.3 produces in NS variant of GNU Emacs 28.0.90 a Lisp error: (wrong-number-of-arguments #<subr string-match> 4)

Previous Next

Package: auctex;

Reported by: Peter Dyballa <Peter_Dyballa <at> Web.DE>

Date: Wed, 22 Dec 2021 20:37:01 UTC

Severity: normal

Found in version 12.3

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52740: closed (12.3 produces in NS variant of GNU Emacs
 28.0.90 a Lisp error: (wrong-number-of-arguments #<subr string-match> 4))
Date: Wed, 22 Dec 2021 21:13:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 22 Dec 2021 21:57:36 +0100
with message-id <87fsqke44e.fsf <at> gnu.org>
and subject line Re: bug#52740: 12.3 produces in NS variant of GNU Emacs 28.0.90 a Lisp error: (wrong-number-of-arguments #<subr string-match> 4)
has caused the debbugs.gnu.org bug report #52740,
regarding 12.3 produces in NS variant of GNU Emacs 28.0.90 a Lisp error: (wrong-number-of-arguments #<subr string-match> 4)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
52740: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52740
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Peter Dyballa <Peter_Dyballa <at> Web.DE>
To: bug-auctex <at> gnu.org
Subject: 12.3 produces in NS variant of GNU Emacs 28.0.90 a Lisp error:
 (wrong-number-of-arguments #<subr string-match> 4)
Date: Wed, 22 Dec 2021 21:36:40 +0100
Hello!

While opening a TeX file starting with

	%% -*- mode: LaTeX; coding: utf-8-unix; -*-

and ending with

	%%% Local Variables:
	%%% mode: LaTeX
	%%% TeX-engine: xetex
	%%% fill-column: 99999
	%%% coding: utf-8-unix
	%%% TeX-command-default: "XeLaTeX5E"
	%%% End:
	%

AUCTeX complains like this:

	Debugger entered--Lisp error: (wrong-number-of-arguments #<subr string-match> 4)
	  string-match("Form" "document" nil t)
	  #f(compiled-function () #<bytecode -0x12f7075ba3ea3561>)()
	  #f(compiled-function (hook) #<bytecode -0x8346a3601f53b88>)([TeX-style-hook #f(compiled-function () #<bytecode -0x12f7075ba3ea3561>) 1])
	  mapcar(#f(compiled-function (hook) #<bytecode -0x8346a3601f53b88>) ([TeX-style-hook #f(compiled-function () #<bytecode -0x12f7075ba3ea3561>) 1]))
	  #f(compiled-function (style) #<bytecode 0x18c1d862f938dfa0>)("hyperref")
	  mapcar(#f(compiled-function (style) #<bytecode 0x18c1d862f938dfa0>) ("latex2e" "article" "art11" "ifpdf" "ifxetex" "graphicx" "xcolor" "geometry" "polyglossia" "microtype" "hyperref" "hyperxmp" "babel" "texnames" "soul" "lucida" "cmap" "fontenc" "array" "ragged2e" "longtable"))
	  TeX-run-style-hooks("latex2e" "article" "art11" "ifpdf" "ifxetex" "graphicx" "xcolor" "geometry" "polyglossia" "microtype" "hyperref" "hyperxmp" "babel" "texnames" "soul" "lucida" "cmap" "fontenc" "array" "ragged2e" "longtable")
	  (lambda nil (TeX-add-to-alist 'LaTeX-provided-class-options '(("article" "11pt" "a4paper" "final"))) (TeX-add-to-alist 'LaTeX-provided-package-options '(("xcolor" "svgnames") ("geometry" "portrait" "nohead" "ignoreheadfoot" "left=1.25mm" "right=2.5mm" "top=18.75mm" "bottom=0mm" "nomarginpar") ("hyperref" "raiselinks=true") ("babel" "ngerman") ("microtype" "protrusion=true" "expansion=false" "activate={true,nocompatibility}" "verbose=true") ("fontenc" "T1"))) (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") (TeX-run-style-hooks "latex2e" "article" "art11" "ifpdf" "ifxetex" "graphicx" "xcolor" "geometry" "polyglossia" "microtype" "hyperref" "hyperxmp" "babel" "texnames" "soul" "lucida" "cmap" "fontenc" "array" "ragged2e" "longtable") (TeX-add-symbols '("Titel" 2) '("SourceFile" 1) '("textsl" 1) "OzTeX" "CTeX" "WPtoLaTeX" "author" "title" "pdffilemoddate" "Context") (LaTeX-add-polyglossia-langs '("german" "defaultlanguage" "spelling=new,latesthyphen=true,babelshorthands=tru...")) (LaTeX-add-fontspec-newfontcmds "slanted"))()
	  #f(compiled-function (hook) #<bytecode -0x8346a3601f53b88>)([TeX-style-hook (lambda nil (TeX-add-to-alist 'LaTeX-provided-class-options '(("article" "11pt" "a4paper" "final"))) (TeX-add-to-alist 'LaTeX-provided-package-options '(("xcolor" "svgnames") ("geometry" "portrait" "nohead" "ignoreheadfoot" "left=1.25mm" "right=2.5mm" "top=18.75mm" "bottom=0mm" "nomarginpar") ("hyperref" "raiselinks=true") ("babel" "ngerman") ("microtype" "protrusion=true" "expansion=false" "activate={true,nocompatibility}" "verbose=true") ("fontenc" "T1"))) (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") (TeX-run-style-hooks "latex2e" "article" "art11" "ifpdf" "ifxetex" "graphicx" "xcolor" "geometry" "polyglossia" "microtype" "hyperref" "hyperxmp" "babel" "texnames" "soul" "lucida" "cmap" "fontenc" "array" "ragged2e" "longtable") (TeX-add-symbols '("Titel" 2) '("SourceFile" 1) '("textsl" 1) "OzTeX" "CTeX" "WPtoLaTeX" "author" "title" "pdffilemoddate" "Context") (LaTeX-add-polyglossia-langs '("german" "defaultlanguage" "spelling=new,latesthyphen=true,babelshorthands=tru...")) (LaTeX-add-fontspec-newfontcmds "slanted")) 1])
	  mapcar(#f(compiled-function (hook) #<bytecode -0x8346a3601f53b88>) ([TeX-style-hook (lambda nil (TeX-add-to-alist 'LaTeX-provided-class-options '(("article" "11pt" "a4paper" "final"))) (TeX-add-to-alist 'LaTeX-provided-package-options '(("xcolor" "svgnames") ("geometry" "portrait" "nohead" "ignoreheadfoot" "left=1.25mm" "right=2.5mm" "top=18.75mm" "bottom=0mm" "nomarginpar") ("hyperref" "raiselinks=true") ("babel" "ngerman") ("microtype" "protrusion=true" "expansion=false" "activate={true,nocompatibility}" "verbose=true") ("fontenc" "T1"))) (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") (TeX-run-style-hooks "latex2e" "article" "art11" "ifpdf" "ifxetex" "graphicx" "xcolor" "geometry" "polyglossia" "microtype" "hyperref" "hyperxmp" "babel" "texnames" "soul" "lucida" "cmap" "fontenc" "array" "ragged2e" "longtable") (TeX-add-symbols '("Titel" 2) '("SourceFile" 1) '("textsl" 1) "OzTeX" "CTeX" "WPtoLaTeX" "author" "title" "pdffilemoddate" "Context") (LaTeX-add-polyglossia-langs '("german" "defaultlanguage" "spelling=new,latesthyphen=true,babelshorthands=tru...")) (LaTeX-add-fontspec-newfontcmds "slanted")) 1]))
	  #f(compiled-function (style) #<bytecode 0x18c1d862f938dfa0>)("funktionaler Lebenslauf")
	  mapcar(#f(compiled-function (style) #<bytecode 0x18c1d862f938dfa0>) ("funktionaler Lebenslauf"))
	  TeX-run-style-hooks("funktionaler Lebenslauf")
	  TeX-update-style(t)
	  #f(compiled-function () #<bytecode 0x1a3d4460e2eb6711>)()
	  run-hooks(find-file-hook)
	  after-find-file(nil nil)
	  find-file-noselect-1(#<buffer funktionaler Lebenslauf.tex> "~/Library/texmf/Arbeit/XeLaTeX/funktionaler Lebens..." :nowarn nil "~/Library/texmf/Arbeit/XeLaTeX/funktionaler Lebens..." (28706671 16777233))
	  find-file-noselect("/Users/pete/Library/texmf/Arbeit/XeLaTeX/funktiona..." :nowarn)
	  desktop-restore-file-buffer("/Users/pete/Library/texmf/Arbeit/XeLaTeX/funktiona..." "funktionaler Lebenslauf.tex" nil)
	  desktop-create-buffer(208 "/Users/pete/Library/texmf/Arbeit/XeLaTeX/funktiona..." "funktionaler Lebenslauf.tex" latex-mode (auto-fill-mode reftex-mode) 590 (1393 nil) nil nil ((indent-tabs-mode) (buffer-display-time 24972 20649 336451 0) (buffer-file-coding-system . utf-8-unix) (fill-column . 99999)) ((mark-ring (1347 1347 1347 1 4436 1 1714 10039 10613 10611 10611 10786 1237 135 135 1228))))
	  eval-buffer(#<buffer  *load*> nil "/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" nil t)  ; Reading at buffer position 5766
	  load-with-code-conversion("/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" "/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" t t)
	  #<subr load>("/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" t t t nil)
	  ad-Advice-load(#<subr load> "/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" t t t)
	  apply(ad-Advice-load #<subr load> ("/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" t t t))
	  load("/Users/pete/.emacs.d/PDesktop-28/emacs.desktop-ns" t t t)
	  desktop-read()
	  #f(compiled-function () #<bytecode -0x1def84a8be7dcf0a>)()
	  run-hooks(after-init-hook delayed-warnings-hook)
	  command-line()
	  normal-top-level()

This instance of GNU Emacs is compiled by me. AUCTeX is installed via MacPorts, and when I launch MacPorts' GNU Emacs 29 (from GIT) it does not complain. The file emacs.desktop-ns exists, in two different directories, for both versions. The contain exactly the same block of information about the file. For HNU Emacs 28.0.90 this block ends at character position 5766.

I don't know which version of GNU Emacs was used to build MacPorts package, a "port", of AUCTeX 12.3. The shadowed files in "/Library/Application Support/Emacs" are installed to be shared by all Emacsen. Most of them are just symbolic-links.


Emacs  : GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin21.2.0, NS appkit-2113.20 Version 12.1 (Build 21C52))
 of 2021-12-20
Package: 12.3

current state:
==============
(setq
 AUCTeX-date "2020-10-18"
 window-system 'ns
 LaTeX-version "2e"
 TeX-style-path '("/Library/Application Support/Emacs/auctex/auto"
		  "/Library/Application Support/Emacs/auctex/style" "/Users/pete/.emacs.d/auctex/auto"
		  "/Users/pete/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master nil
 TeX-command-list '(("XeTeX" "%`xetex%(mode)%' %t" TeX-run-TeX nil
		     (plain-tex-mode context-mode texinfo-mode ams-tex-mode) :help
		     "Run XeTeX with xdvipdfmx driver")
		    ("XeTeXx" "%`xetex -output-driver=xdv2pdf%(mode)%' %t" TeX-run-TeX nil
		     (plain-tex-mode context-mode texinfo-mode ams-tex-mode) :help
		     "Run XeTeX with xdv2pdf driver")
		    ("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode ams-tex-mode) :help "Run XeLaTeX with xdvipdfmx driver")
		    ("XeLaTeX5" "%`xelatex -output-driver=\"xdvipdfmx -V 5\"%(mode)%' %t" TeX-run-TeX
		     nil (latex-mode doctex-mode ams-tex-mode) :help
		     "Run XeLaTeX with xdvipdfmx driver for compact PDF 1.5")
		    ("XeLaTeX5E" "%`xelatex -output-driver=\"xdvipdfmx -E -V 5\"%(mode)%' %t"
		     TeX-run-command nil (latex-mode doctex-mode ams-tex-mode) :help
		     "Run XeLaTeX with xdvipdfmx driver for compact PDF 1.5 and embedded fonts")
		    ("XeLaTeXesc" "%`xelatex -shell-escape%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode ams-tex-mode) :help
		     "Run XeLaTeX with xdvipdfmx driver and with enabled \\write18{SHELL COMMAND}")
		    ("XeLaTeXx" "%`xelatex -output-driver=xdv2pdf%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode ams-tex-mode) :help "Run XeLaTeX with xdv2pdf driver")
		    ("XeLaTeXq" "%`xelatex -output-driver=\"xdvipdfmx -l\"%(mode)%' %t"
		     TeX-run-command nil (latex-mode doctex-mode ams-tex-mode) :help
		     "Run XeLaTeX with xdvipdfmx driver in landscape mood")
		    ("XeLaTeXqesc"
		     "%`xelatex -shell-escape -output-driver=\"xdvipdfmx -l\"%(mode)%' %t"
		     TeX-run-command nil (latex-mode doctex-mode ams-tex-mode) :help
		     "Run XeLaTeX with xdvipdfmx driver in landscape SHELL mood")
		    ("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil
		     (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help
		     "Run LaTeX")
		    ("LaTeXesc" "%`%l-shell-escape%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode) :help "Run LaTeX with enabled \\write18{SHELL COMMAND}")
		    ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode)
		     :help "Run AMSTeX")
		    ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode)
		     :help "Run ConTeXt once")
		    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive nil (context-mode) :help
		     "Clean temporary ConTeXt files")
		    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
		    ("View" "texdoc --just-view %o" TeX-run-discard t t :help "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the file")
		    ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible
		     TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
		     "Generate PostScript file")
		    ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
		     "Check LaTeX file for correctness")
		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help
		     "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
 )


In GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin21.2.0, NS appkit-2113.20 Version 12.1 (Build 21C52))
 of 2021-12-20 built on Kleines.fritz.box
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.1

Configured using:
 'configure --without-libsystemd --without-pop --without-sound
 --without-gpm --without-dbus --without-selinux --without-imagemagick
 --with-ns --with-dumping=pdumper --disable-ns-self-contained
 --with-x-toolkit=athena --x-libraries=/opt/local/lib
 --x-includes=/opt/local/include
 '--enable-locallisppath=/Library/Application
 Support/Emacs/calendar28:/Library/Application Support/Emacs'
 --with-file-notification=yes CPPFLAGS=-I/opt/local/include 'CFLAGS=-g
 -H -pipe -fPIC -fno-common -Os -arch x86_64 -fomit-frame-pointer'
 'LDFLAGS=-v -arch x86_64 -Wl,-bind_at_load -Wl,-t -L /opt/local/lib'
 PKG_CONFIG_PATH=/opt/local/libexec/openssl3/lib/pkgconfig:/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig
 CC=clang CXX=clang++ MAKEINFO=/opt/local/bin/makeinfo'

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB

Important settings:
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: LaTeX/FP

Minor modes in effect:
  TeX-PDF-mode: t
  shell-dirtrack-mode: t
  midnight-mode: t
  display-time-mode: t
  desktop-save-mode: t
  mac-print-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  view-mode: t

Load-path shadows:
/Library/Application Support/Emacs/htmlfontify hides /usr/local/share/emacs/28.0.90/lisp/htmlfontify
/Library/Application Support/Emacs/calendar28/cal-move hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-move
/Library/Application Support/Emacs/calendar28/lunar hides /usr/local/share/emacs/28.0.90/lisp/calendar/lunar
/Library/Application Support/Emacs/calendar28/solar hides /usr/local/share/emacs/28.0.90/lisp/calendar/solar
/Library/Application Support/Emacs/calendar28/icalendar hides /usr/local/share/emacs/28.0.90/lisp/calendar/icalendar
/Library/Application Support/Emacs/calendar28/calendar hides /usr/local/share/emacs/28.0.90/lisp/calendar/calendar
/Library/Application Support/Emacs/calendar28/cal-html hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-html
/Library/Application Support/Emacs/calendar28/cal-iso hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-iso
/Library/Application Support/Emacs/calendar28/cal-tex hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-tex
/Library/Application Support/Emacs/calendar28/parse-time hides /usr/local/share/emacs/28.0.90/lisp/calendar/parse-time
/Library/Application Support/Emacs/calendar28/holidays hides /usr/local/share/emacs/28.0.90/lisp/calendar/holidays
/Library/Application Support/Emacs/calendar28/cal-menu hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-menu
/Library/Application Support/Emacs/calendar28/hol-loaddefs hides /usr/local/share/emacs/28.0.90/lisp/calendar/hol-loaddefs
/Library/Application Support/Emacs/calendar28/cal-x hides /usr/local/share/emacs/28.0.90/lisp/calendar/cal-x
/Library/Application Support/Emacs/calendar28/diary-lib hides /usr/local/share/emacs/28.0.90/lisp/calendar/diary-lib
/Library/Application Support/Emacs/calendar28/diary-loaddefs hides /usr/local/share/emacs/28.0.90/lisp/calendar/diary-loaddefs
/Library/Application Support/Emacs/preview-latex hides /opt/local/share/emacs/site-lisp/preview-latex
/Library/Application Support/Emacs/tex-site hides /opt/local/share/emacs/site-lisp/tex-site
/Library/Application Support/Emacs/auctex hides /opt/local/share/emacs/site-lisp/auctex
/Library/Application Support/Emacs/punycode hides /opt/local/share/emacs/site-lisp/punycode
/Library/Application Support/Emacs/idna hides /opt/local/share/emacs/site-lisp/idna
/Library/Application Support/Emacs/cmake-mode hides /opt/local/share/emacs/site-lisp/cmake-mode

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
help-fns radix-tree cl-print debug backtrace help-mode find-func tex-buf
reftex-dcr reftex reftex-loaddefs reftex-vars tex-fold noutline outline
font-latex latex latex-flymake flymake-proc flymake project warnings
thingatpt tex-ispell tex-style tex crm texmathp tex-mode compile
text-property-search time-date dired-aux autorevert filenotify dired-x
dired dired-loaddefs lunar view diary-lib diary-loaddefs solar cal-dst
cal-julian holidays hol-loaddefs cal-move shell pcomplete comint
ansi-color ring auto-loads tex-site yaml-mode midnight time cus-load
desktop frameset cl session edmacro kmacro mac-print-mode easy-mmode
htmlize loadhist delsel derived cal-menu calendar cal-loaddefs
time-stamp advice package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl
tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize
mule-util 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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)

-- 
Mit friedvollen Grüßen

  Pete

Pourquoi faire simple quand on peut faire compliqué?



[Message part 3 (message/rfc822, inline)]
From: Tassilo Horn <tsdh <at> gnu.org>
To: Peter Dyballa <Peter_Dyballa <at> Web.DE>
Cc: bug-auctex <at> gnu.org, 52740-done <at> debbugs.gnu.org
Subject: Re: bug#52740: 12.3 produces in NS variant of GNU Emacs 28.0.90 a
 Lisp error: (wrong-number-of-arguments #<subr string-match> 4)
Date: Wed, 22 Dec 2021 21:57:36 +0100
Peter Dyballa <Peter_Dyballa <at> Web.DE> writes:

Hi Peter,

> AUCTeX complains like this:
>
> 	Debugger entered--Lisp error: (wrong-number-of-arguments #<subr string-match> 4)
> 	  string-match("Form" "document" nil t)

`string-match' has 2 mandatory and 2 optional args in my current emacs
29/master but only 2 mandatory plus one optional argument in emacs
27/28.

> This instance of GNU Emacs is compiled by me. AUCTeX is installed via
> MacPorts, and when I launch MacPorts' GNU Emacs 29 (from GIT) it does
> not complain. The file emacs.desktop-ns exists, in two different
> directories, for both versions. The contain exactly the same block of
> information about the file. For HNU Emacs 28.0.90 this block ends at
> character position 5766.

I don't know what an emacs.desktop-ns file is but it looks like your
AUCTeX version was compiled with emacs 29 where string-match has up to 4
arguments whereas your emacs 28 version has at most 3, hence the error.

In emacs 29, string-match-p will be compiled to the 4-arg version of
string-match.  Up to emacs 28, that's different.

In any case: you can run byte-code produced by older emacs versions in
newer emacs versions but not the other way round.  I'm closing this
issue.

Bye,
Tassilo


This bug report was last modified 3 years and 205 days ago.

Previous Next


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