From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Newsgroups: gmane.emacs.bugs Subject: bug#36396: 27.0.50; rx-to-string fails: wrong-type-argument characterp "\\(?" Date: Wed, 26 Jun 2019 23:35:34 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="188750"; mail-complaints-to="usenet@blaine.gmane.org" To: 36396@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 26 22:37:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgEfX-000mvi-LE for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 22:37:27 +0200 Original-Received: from localhost ([::1]:44810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgEfW-000680-Iq for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 16:37:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42358) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgEfB-00063o-9H for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgEf8-0004ei-TE for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:37:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgEf8-0004e0-Og for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgEf8-0001cr-KO for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2019 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36396 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15615814046213 (code B ref -1); Wed, 26 Jun 2019 20:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jun 2019 20:36:44 +0000 Original-Received: from localhost ([127.0.0.1]:37096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgEen-0001c4-Qh for submit@debbugs.gnu.org; Wed, 26 Jun 2019 16:36:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgEel-0001bw-PD for submit@debbugs.gnu.org; Wed, 26 Jun 2019 16:36:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42257) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgEej-0005PU-CW for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:36:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgEeh-0004MY-45 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:36:37 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60987) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgEeg-0004Bp-Pd for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 16:36:35 -0400 X-Originating-IP: 31.223.48.126 Original-Received: from localhost (unknown [31.223.48.126]) (Authenticated sender: self@gkayaalp.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 499A5C000D for ; Wed, 26 Jun 2019 20:36:11 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161540 Archived-At: I started encountering this after building "260b6c2c931d74ef64dacb20b7fcae6f888e6d42" today. Eval the following with debugging enabled (taken from magit-todos.el, just the outer let form added). Results in the error mentioned in the subject. (let ((keywords (list "a" "b")) (magit-todos-keyword-suffix "\\(?:([^)]+)\\)?:")) (rx-to-string `(seq bol ;; Filename (group-n 8 (1+ (not (any ":")))) ":" ;; Line (group-n 2 (1+ digit)) ":" (or ;; Org item (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or ,@keywords)) (1+ blank) (group-n 5 (1+ not-newline))) ;; Non-Org (seq (optional (1+ not-newline)) (group-n 4 (or ,@keywords)) (optional (group-n 6 (regexp ,magit-todos-keyword-suffix))) (optional (1+ blank)) (optional (group-n 5 (1+ not-newline)))))))) Excerpt from the backtrace: Debugger entered--Lisp error: (wrong-type-argument characterp "\\(?") mapconcat(identity ("\\(?:.+\\)?" "\\(?4:[ab]\\)" ("\\(?" "6" ":" "\\)" "= ?") "\\(?:[[:blank:]]+\\)?" "\\(?5:.+\\)?") nil) rx--subforms(((optional (1+ not-newline)) (group-n 4 (or "a" "b")) (optio= nal (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (option= al (group-n 5 (1+ not-newline)))) :) rx-and((seq (optional (1+ not-newline)) (group-n 4 (or "a" "b")) (optiona= l (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (optional= (group-n 5 (1+ not-newline))))) rx-form((seq (optional (1+ not-newline)) (group-n 4 (or "a" "b")) (option= al (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (optiona= l (group-n 5 (1+ not-newline)))) |) #f(compiled-function (x) #)((seq (optional (1+ n= ot-newline)) (group-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([= ^)]+)\\)?:"))) (optional (1+ blank)) (optional (group-n 5 (1+ not-newline))= ))) mapcar(#f(compiled-function (x) #) ((seq (group-= n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (1+ blank) (group-n 5 (1+= not-newline))) (seq (optional (1+ not-newline)) (group-n 4 (or "a" "b")) (= optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (o= ptional (group-n 5 (1+ not-newline)))))) rx--subforms(((seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b"= )) (1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)= ) (group-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"= ))) (optional (1+ blank)) (optional (group-n 5 (1+ not-newline))))) | "\\|") rx-or((or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (= 1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)) (g= roup-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) = (optional (1+ blank)) (optional (group-n 5 (1+ not-newline)))))) rx-form((or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b"))= (1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)) = (group-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))= ) (optional (1+ blank)) (optional (group-n 5 (1+ not-newline))))) :) #f(compiled-function (x) #)((or (seq (group-n 1 = (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (1+ blank) (group-n 5 (1+ not= -newline))) (seq (optional (1+ not-newline)) (group-n 4 (or "a" "b")) (opti= onal (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (optio= nal (group-n 5 (1+ not-newline)))))) mapcar(#f(compiled-function (x) #) (bol (group-n= 8 (1+ (not (any ":")))) ":" (group-n 2 (1+ digit)) ":" (or (seq (group-n 1= (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (1+ blank) (group-n 5 (1+ no= t-newline))) (seq (optional (1+ not-newline)) (group-n 4 (or "a" "b")) (opt= ional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (optional (1+ blank)) (opti= onal (group-n 5 (1+ not-newline))))))) rx--subforms((bol (group-n 8 (1+ (not (any ":")))) ":" (group-n 2 (1+ dig= it)) ":" (or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) = (1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)) (= group-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:")))= (optional (1+ blank)) (optional (group-n 5 (1+ not-newline)))))) :) rx-and((seq bol (group-n 8 (1+ (not (any ":")))) ":" (group-n 2 (1+ digit= )) ":" (or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (1= + blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)) (gr= oup-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) (= optional (1+ blank)) (optional (group-n 5 (1+ not-newline))))))) rx-form((seq bol (group-n 8 (1+ (not (any ":")))) ":" (group-n 2 (1+ digi= t)) ":" (or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b")) (= 1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline)) (g= roup-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:"))) = (optional (1+ blank)) (optional (group-n 5 (1+ not-newline))))))) rx-to-string((seq bol (group-n 8 (1+ (not (any ":")))) ":" (group-n 2 (1+= digit)) ":" (or (seq (group-n 1 (1+ "*")) (1+ blank) (group-n 4 (or "a" "b= ")) (1+ blank) (group-n 5 (1+ not-newline))) (seq (optional (1+ not-newline= )) (group-n 4 (or "a" "b")) (optional (group-n 6 (regexp "\\(?:([^)]+)\\)?:= "))) (optional (1+ blank)) (optional (group-n 5 (1+ not-newline))))))) (let ((keywords (list "a" "b")) (magit-todos-keyword-suffix "\\(?:([^)]+)= \\)?:")) (rx-to-string (list 'seq 'bol '(group-n 8 (1+ (not (any ":")))) ":= " '(group-n 2 (1+ digit)) ":" (list 'or (cons 'seq (cons '(group-n 1 ...) (= cons '... (cons ... ...)))) (cons 'seq (cons '(optional ...) (cons (list ..= . 4 ...) (cons ... ...)))))))) eval-region(146 853 t #f(compiled-function (ignore) #)) ; Reading at buffer position 853 elisp--eval-defun() eval-defun(nil) funcall-interactively(eval-defun nil) call-interactively(eval-defun nil nil) command-execute(eval-defun) In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, ca= iro version 1.16.0) of 2019-06-26 built on alpha Repository revision: 260b6c2c931d74ef64dacb20b7fcae6f888e6d42 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: ~/cf/emacs.d/lisp/site=20 ~/cf/emacs.d/lisp=20 ~/cf/emacs.d=20 ~/cf=20 rx--subforms: Wrong type argument: characterp, "\\(?" [2 times] Debug on Error enabled globally Debug on Quit enabled globally Entering debugger... Quit user-error: Previous command was not a yank Configured using: 'configure --prefix=3D/home/g/local/emacs --with-x-toolkit=3Dgtk3 --with-modules --with-file-notification=3Dyes --with-gameuser=3Dno --with-cairo --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: tr_TR.UTF-8 value of $LC_TIME: tr_TR.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: auto-image-file-mode: t show-paren-mode: t gk-ucins-entry-mode: t global-gk-minor-mode: t gk-minor-mode: t yas-global-mode: t yas-minor-mode: t winner-mode: t global-whitespace-mode: t which-key-mode: t save-place-mode: t persistent-scratch-autosave-mode: t global-paren-face-mode: t magit-todos-mode: t global-magit-file-mode: t url-handler-mode: t global-git-commit-mode: t shell-dirtrack-mode: t eval-sexp-fu-flash-mode: t auto-insert-mode: t tooltip-mode: t global-eldoc-mode: t electric-quote-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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mailalias mail-extr emacsbug cl-print pcmpl-unix bug-reference dired-aux dabbrev two-column iso-transl rmailout qp executable rmailmm misearch multi-isearch eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree vc-filewise diary-lib diary-loaddefs cal-iso image-file paren paper-theme init gk-feeds man org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap utf7 gnus-spec gnus-win org-docview org-bibtex bibtex org-bbdb org-w3m loadhist ob-python ob-shell yasnippet elec-pair zencoding-mode winner windmove whole-line-or-region whitespace which-key wdired vc-rcs vc-cvs vc vc-dispatcher turkish tramp-cache time thinks smtpmail sendmail scheme saveplace rmailsum python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time pixel-scroll persistent-scratch perl-mode pass-listing password-store paren-face paredit ox-org ox-hugo ox-blackfriday ox-md ox-beamer ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-variable-pitch org-protocol org-mobile org-agenda org-inlinetask org-eww org-checklist org-capture nnfolder nnoo nnmail gnus-int gnus-range netrc multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core mairix cus-edit cus-start cus-load mail-source magit-todos pcre2el rxt re-builder hl-todo async grep magit-bookmark magit-imenu git-rebase magit-extras magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util magit-subtree magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub url-http url-gw nsm url-auth let-alist magit-files magit-refs magit-status magit package url-handlers magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode ls-lisp lorem-ipsum js inf-ruby ruby-mode smie inf-lisp imenu image-dired ibuffer-vc ibuf-macs ibuf-ext ibuffer ibuffer-loaddefs hl-line highlight-parentheses goto-last-change goto-addr gk-unilat gk-greek quail git-commit recentf tree-widget with-editor warnings term disp-table ehelp eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util shell server magit-git magit-section magit-utils vc-git diff-mode ido magit-popup pcase log-edit pcvs-util add-log forecast org-element org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs solar cal-dst flyspell ispell ffap face-remap f eww mm-url gnus nnheader thingatpt eval-sexp-fu rx cl-extra highlight etags fileloop xref project epa-mail elfeed-show elfeed-search wid-edit message rmc format-spec rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mail-utils gmm-utils mailheader shr text-property-search puny svg dom elfeed-csv elfeed elfeed-curl url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap elfeed-log elfeed-db elfeed-lib url-util time-date avl-tree generator url-queue url-parse url-vars xml-query xml dollar doc-view jka-compr image-mode dired-x dired-subtree dired-narrow easy-mmode delsel dired-hacks-utils dired dired-loaddefs diminish diff desktop frameset debug backtrace find-func dart-mode edmacro kmacro s ucs-normalize help-mode dash cc-langs copyright compile comint ring cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cal-menu calendar cal-loaddefs browse-url boxquote rect bookmark pp bbdb-vcard bbdb-com crm mailabbrev vcard bbdb derived easymenu bbdb-site timezone autoinsert auth-source eieio eieio-core eieio-loaddefs password-cache json subr-x map seq byte-opt bytecomp byte-compile cconv apropos ansi-color ace-jump-mode advice cl-macs cl gv cl-seq cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 990275 71274) (symbols 48 50169 30) (strings 32 169409 11941) (string-bytes 1 5711072) (vectors 16 91201) (vector-slots 8 1897909 201284) (floats 8 779 284) (intervals 56 13672 1432) (buffers 992 61)) --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427