From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ola x Nilsson Newsgroups: gmane.emacs.bugs Subject: bug#65159: 30.0.50; pp-fill fails when symbol's lisp-indent-function is bigger than number of arguments Date: Wed, 9 Aug 2023 00:08:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: 65159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 09 00:10:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTUuC-00090j-2S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Aug 2023 00:10:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTUtx-0004iK-86; Tue, 08 Aug 2023 18:10:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTUtv-0004i8-0b for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 18:10:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTUtu-0008VZ-NN for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 18:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qTUtu-0000Ep-JA for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 18:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ola x Nilsson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Aug 2023 22:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65159 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.1691532574869 (code B ref -1); Tue, 08 Aug 2023 22:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2023 22:09:34 +0000 Original-Received: from localhost ([127.0.0.1]:37862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTUtR-0000Dw-O8 for submit@debbugs.gnu.org; Tue, 08 Aug 2023 18:09:34 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:33088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTUtP-0000Dh-Kb for submit@debbugs.gnu.org; Tue, 08 Aug 2023 18:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTUtJ-0004MC-3i for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 18:09:25 -0400 Original-Received: from smtp1.axis.com ([195.60.68.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTUtF-0008OP-1R for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 18:09:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1691532561; x=1723068561; h=from:to:cc:subject:date:message-id:mime-version; bh=C8OjoTw3wKpxARG2wLHVge3MVjcTv4tA1n4SH8/BroA=; b=m9WHrXDjvuSI0uxZFSTPZUE1tW/bTMVdsj+F3T+pXQmqspMzEAu5TREb 2Deb5neRmNlyP40PPlJSlML9sPMxAMyMrvLPvpckAg6uxb94nTaDFIoz0 khYlkQ1JDvE7ZhBgQzVtKfZ5JJXn2v2iOk1pX+OTdMYDtqQn/Aj9i86dv eSTeWk1XMyYpmLLin6ThnxPRwWBG7Smw2ojVWsrUVM6fS8GjQqZA3yJwP jvbHhMbKcEHgeqkD08TUBv+Syj8DFpz7hT3M/rDZmFgBVu4ZTtWHozhyc WisR8vX4I6GeMuD2mlZ29JG2VUGeqp8p0eGGk4aMj3LPfwjlCnPy+uWxv g==; Received-SPF: pass client-ip=195.60.68.17; envelope-from=Ola.x.Nilsson@axis.com; helo=smtp1.axis.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266990 Archived-At: The `pp-fill' function uses the symbol property `lisp-indent-function' to insert line breaks in function calls. If the property is an integer larger than the actual number of arguments in the function call, `forward-sexp' will eventually signal an error. When the symbol property is `defun', `pp-fill' will assume this is equivalent to the value 2 which will suffer the same problem. This behaviour is also present in `lisp-data-mode' where it does not really make sense to me to assume the first symbol in a list is a function. I triggered this problem when I tried to use pp-buffer in a archive-contents file from GNU ELPA. The entry for `kiwix' lists `request' as a dependency. As `request' is also a symbol with `lisp-indent-function' set to `defun', `pp-fill' attempts to insert a newline after the nonexistent ARG2 causing an error. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-08-07 built on lap5cg80647hz Repository revision: 18e7bc87521e3c48b819cfe4a113f532ba905561 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.6 LTS Configured using: 'configure --with-native-compilation --with-mailutils --with-tree-sitter' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Diff Minor modes in effect: windmove-mode: t magit-auto-revert-mode: t tracking-mode: t buffer-positions-mode: t hes-mode: t desktop-save-mode: t global-git-commit-mode: t whitespace-mode: t which-function-mode: t display-time-mode: t global-auto-revert-mode: t override-global-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 buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/olani/emacs-packages/cov/cov hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/cov-20220727.31/cov /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/dpkg-dev-el-20230220.1635/debian-autoloads hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/debian-el-20211006.1939/debian-autoloads /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/emacsql-sqlite-20221127.2146/emacsql-sqlite hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/emacsql-20230417.1448/emacsql-sqlite /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/hydra-0.15.0/lv hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/lv-20200507.1518/lv /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20230309.2251/magit-gerrit hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20210831.1453/magit-gerrit /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20230309.2251/magit-gerrit-pkg hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20210831.1453/magit-gerrit-pkg /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20230309.2251/magit-gerrit-autoloads hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/magit-gerrit-20210831.1453/magit-gerrit-autoloads /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/circe-20221126.1508/tracking hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/tracking-20210713.1609/tracking /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/circe-20221126.1508/shorten hides /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/tracking-20210713.1609/shorten /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/transient-20221127.2242/transient hides /usr/local/share/emacs/30.0.50/lisp/transient /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-lint hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-lint /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-jump hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-jump /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-ensure hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-ensure /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-diminish hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-diminish /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-delight hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-delight /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-core hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-core /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/use-package-20221127.2217/use-package-bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-bind-key /home/olani/.emacs.d/elpa-lap5cg80647hz-30.0.50/bind-key-20221117.1610/bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/bind-key Features: (shadow mail-extr emacsbug log-view vc-annotate vc goto-addr gerrit-buttons sort find-dired cl-indent inf-lisp edebug magit-extras ffap grep dired-aux coan-dired cl-print hydra-examples windmove rect hydra lv tar-mode arc-mode archive-mode cus-edit cus-start cus-load coan-magit-gerrit magit-gerrit face-remap coan-magit magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff magit-core magit-autorevert magit-margin magit-transient magit-process magit-mode mm-archive url-http-ntlm ntlm hmac-md5 hex-util md4 mule-util network-stream url-cache url-http url-gw nsm display-line-numbers cursor-sensor circe-color-nicks circe lui-irc-colors irc lcs lui-logging lui-format lui tracking shorten flyspell ispell circe-compat scroll-lock oc-basic ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi yaml-mode flycheck-checkbashisms mmm-sh-here-doc mmm-mode mmm-univ mmm-class mmm-region sh-script executable help-fns misearch multi-isearch coan cl checkdoc coan-elisp skeleton autoload delete-trailing-whitespace-mode init highlight-escape-sequences woman man ob-dot anaphora groovy-mode dired-rainbow dired-hacks-utils autoinsert sed-mode smie mmm-sample mmm-auto mmm-vars mmm-utils mmm-compat t32-auto coan-list midnight desktop frameset python treesit rustic-flycheck rustic-spellcheck rustic-expand rustic-lsp rustic-playpen rustic-rustfix rustic-racer etags fileloop rustic-babel rustic-rustfmt org-element org-persist org-id org-refile avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-version org-compat org-macs rustic-comint rustic-clippy rustic-doc f f-shortdoc shortdoc rustic-popup rustic-cargo rustic-compile spinner s xterm-color markdown-mode color noutline outline rustic-interaction rustic rust-utils rust-mode eglot external-completion jsonrpc xref ert pp ewoc debug backtrace flycheck-flawfinder flycheck-cstyle flycheck find-func bug-reference git-modes gitignore-mode gitconfig-mode conf-mode gitattributes-mode git-commit magit-git magit-base magit-section crm dash compat-27 compat-26 with-editor transient comp comp-cstr compat server log-edit message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log flymake-git-whitespace flymake-proc flymake project compile text-property-search thingatpt vc-git diff-mode vc-dispatcher advice edmacro kmacro coan-30.0.50-autoloads bitbake-modes-autoloads loaddefs-gen lisp-mnt radix-tree tramp-sh whitespace which-func imenu warnings icons exec-path-from-shell cl-extra time avoid autorevert filenotify use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf coan-system pcase tramp trampver tramp-integration files-x tramp-message help-mode tramp-compat xdg shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color tramp-loaddefs a-autoloads anaphora-autoloads circe-autoloads closql-autoloads cmake-mode-autoloads cov-autoloads darkroom-autoloads dash-functional-autoloads dired-rainbow-autoloads dired-hacks-utils-autoloads dpkg-dev-el-autoloads dpkg-dev-el debian-el-autoloads debian-el dts-mode-autoloads edit-server-autoloads elquery-autoloads emacsql-sqlite-autoloads emacsql-autoloads erc-hl-nicks-autoloads esxml-autoloads excorporate-autoloads exec-path-from-shell-autoloads flycheck-checkbashisms-autoloads flycheck-cstyle-autoloads flycheck-flawfinder-autoloads flycheck-mypy-autoloads flycheck-autoloads frame-purpose-autoloads fsm-autoloads ghub-autoloads git-gutter-autoloads git-modes-autoloads git-timemachine-autoloads graphql-mode-autoloads graphviz-dot-mode-autoloads groovy-mode-autoloads highlight-escape-sequences-autoloads hydra-autoloads json-mode-autoloads rx json-snatcher-autoloads kconfig-mode-autoloads kv-autoloads lv-autoloads macrostep-autoloads magit-gerrit-autoloads magit-imerge-autoloads magit-autoloads git-commit-autoloads magit-popup-autoloads magit-section-autoloads meson-mode-autoloads mmm-mode-autoloads mu4e-alert-autoloads ht-autoloads alert-autoloads log4e-autoloads gntp-autoloads ninja-mode-autoloads ob-restclient-autoloads org-re-reveal-autoloads htmlize-autoloads ov-autoloads pkg-info-autoloads epl-autoloads pycoverage-autoloads rainbow-identifiers-autoloads repo-autoloads request-autoloads restclient-autoloads rustic-autoloads markdown-mode-autoloads f-autoloads dash-autoloads rust-mode-autoloads s-autoloads sass-mode-autoloads haml-mode-autoloads scss-mode-autoloads sed-mode-autoloads spinner-autoloads ssh-config-mode-autoloads tracking-autoloads transient-autoloads treepy-autoloads url-http-ntlm-autoloads url-auth use-package-autoloads bind-key-autoloads web-mode-autoloads with-editor-autoloads info compat-autoloads xterm-color-autoloads yaml-autoloads yaml-mode-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 2524783 624554) (symbols 48 50577 10) (strings 32 473012 53616) (string-bytes 1 13896900) (vectors 16 186914) (vector-slots 8 3198879 292395) (floats 8 1331 10092) (intervals 56 215514 3376) (buffers 984 61))