From unknown Tue Aug 19 21:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges Resent-From: "Pascal J. Bourguignon" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Dec 2018 22:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33690 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33690@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154439311626773 (code B ref -1); Sun, 09 Dec 2018 22:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Dec 2018 22:05:16 +0000 Received: from localhost ([127.0.0.1]:40333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW7CO-0006xk-99 for submit@debbugs.gnu.org; Sun, 09 Dec 2018 17:05:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW6ij-00064B-Fr for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW6ia-0005au-MD for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gW6iZ-0005Wl-FD for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW6iX-0005Ts-St for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW6iR-00059N-3O for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:24 -0500 Received: from hubble.informatimago.com ([2a01:4f8:161:52e2::2]:42792) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gW6iP-0004zh-7w for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:18 -0500 Received: from proteus.informatimago.com (proteus.informatimago.com [149.202.216.117]) by hubble.informatimago.com (Postfix) with ESMTP id 04FA25A40B1 for ; Sun, 9 Dec 2018 22:34:13 +0100 (CET) Received: by proteus.informatimago.com (Postfix, from userid 1000) id DFA94200E; Sun, 9 Dec 2018 21:34:12 +0000 (UTC) From: "Pascal J. Bourguignon" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en Date: Sun, 09 Dec 2018 22:34:12 +0100 Message-ID: <871s6qe65n.fsf@informatimago.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Sun, 09 Dec 2018 17:05:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Launching emacs in a terminal (DISPLAY=3D:0.0, but no X server running), including my .emacs, I get=20 Wrong type argument: number-or-marker-p, nil in window-edges errors on C-n and C-p. The error come from window-edges. Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) window-edges(nil t nil t) window-inside-pixel-edges() window-screen-lines() line-move-partial(1 nil) line-move(1 nil nil 1) next-line(1 1) funcall-interactively(next-line 1 1) call-interactively(next-line nil nil) command-execute(next-line) Running with a window-edges not compiled, we find that the problem is that border-width is nil. I would therefore suggest to patch window-edges, to use 0 when frame-internal-border-width returns nil (which occurs when running in a terminal): (let (=E2=80=A6 (border-width (or (frame-internal-border-width frame) 0)) =E2=80=A6) =20=20=20=20=20=20 In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.31) of 2018-12-09 built on proteus System Description: Debian GNU/Linux 9.6 (stretch) Recent messages: Wrote /home/pjb/src/public/rc/emacs-common.el [2 times] save-buffer "/home/pjb/src/public/rc/emacs-common.el" Mark set Entering debugger... previous-line: Beginning of buffer [2 times] Back to top level The footer should be: (provide 'emacs-common)\n;;; emacs-common.el ends here window-edges Mark set Quit Configured using: 'configure --prefix=3D/usr/local --with-x --without-ns --with-gif=3Dno --with-gnutls=3Dno' Configured features: XPM JPEG TIFF PNG SOUND GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 THREADS Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: C value of $LANG: en_US.UTF-8 locale-coding-system: nil Major mode: Emacs-Lisp Minor modes in effect: global-flycheck-mode: t flycheck-mode: t erc-truncate-mode: t erc-track-mode: t erc-services-mode: t erc-networks-mode: t erc-ring-mode: t erc-replace-mode: t erc-netsplit-mode: t erc-match-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-fill-mode: -1 erc-stamp-mode: t erc-autojoin-mode: t erc-autoaway-mode: t show-paren-mode: t auto-image-file-mode: t global-auto-complete-mode: t auto-complete-mode: t erc-log-mode: t erc-irccontrols-mode: t erc-readonly-mode: t paredit-mode: t diff-auto-refine-mode: t display-time-mode: t shell-dirtrack-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t unify-8859-on-decoding-mode: t unify-8859-on-encoding-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/scratch /home/pjb/emacs/emacs-utils/utils hides /home/pjb/emacs/emacs-cl/src/utils /home/pjb/emacs/coffee-mode/test/test-helper hides /home/pjb/emacs/emacs-gr= adle-mode/test/test-helper /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/exampl= es/scratch /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/parser= -pres/scratch /home/pjb/emacs/paredit hides /home/pjb/.emacs.d/elpa/paredit-24/paredit /home/pjb/emacs/emacs-gradle-mode/features/support/env hides /usr/local/sha= re/emacs/26.1/lisp/env /usr/share/emacs/site-lisp/rst hides /usr/local/share/emacs/26.1/lisp/textm= odes/rst /home/pjb/emacs/emacs-utils/thunk hides /usr/local/share/emacs/26.1/lisp/em= acs-lisp/thunk Features: (shadow sort mail-extr emacsbug yasnippet misearch multi-isearch cl-print help-fns radix-tree org-rmail org-mhe org-irc org-info org-gnus nnir org-docview org-bibtex bibtex org-bbdb org-w3m term/screen term/xterm xterm ob-dot ob-latex server find-lisp textmate robe inf-ruby ruby-mode highlight-indentation smartparens-config smartparens-javascript smartparens-text smartparens-html smartparens-ruby smartparens enh-ruby-mode android-mode inf-lisp slime-media slime-indentation slime-cl-indent slime-mrepl inferior-slime slime-hyperdoc slime-sprof slime-asdf slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime flycheck rx subr-x dash flymake-proc flymake warnings lisp-mnt gud apropos etags xref project arc-mode archive-mode hyperspec slime-autoloads erc-truncate erc-track erc-services erc-networks erc-ring erc-replace erc-netsplit erc-match erc-pcomplete erc-button erc-fill erc-stamp erc-join erc-autoaway paren grep delsel image-file canlock freerdp-c-style cl-indent w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load org-element avl-tree generator org org-macro org-footnote org-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 auto-complete-config auto-complete popup bash-completion iso-transl rst compile emacs-uptime debug gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win cus-edit cus-start cus-load rmailsum rmailsort asm-mode pjb-constants pjb-cl-magic pcase pjb-echo-keys pjb-erc erc-log pjb-make-depends pjb-erc-filter pjb-erc-speak pjb-speak erc-goodies erc erc-backend erc-compat pp pjb-mail sendmail pjb-pgp pgp pjb-shell pjb-work pjb-xresources pjb-thi pjb-c-style pjb-java pjb-http pjb-objc-edit paredit semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local pjb-objc-ide cedet pjb-objc-parser pjb-objc-gen android-classes mhtml-mode css-mode smie color eww mm-url gnus nnheader wid-edit url-queue shr svg xml js json map imenu flyspell ispell pl1 pjb-cvs pjb-dot pjb-graph pjb-class pjb-cvspass pjb-i2p-expression pjb-s2p-expression pjb-layers pjb-roman pjb-server pjb-queue pjb-banks pjb-bourse pjb-object pjb-euro pjb-html pjb-emacs edmacro kmacro cookie1 morse fortune sgml-mode dom picture browse-url pjb-sources filecache add-log cal-menu calendar cal-loaddefs forms forms-mode pjb-utilities pjb-font pjb-selftrade pjb-strings pjb-list pjb-cl eieio-compat eieio-opt speedbar sb-image ezimage dframe find-func cl-extra help-mode vc-git diff-mode easy-mmode elec-pair time goto-addr thingatpt tramp-sh cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring advice parse-time cl mm-archive message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils format-spec network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap epg finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib disp-table 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 inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1152520 37629) (symbols 48 69507 85) (miscs 40 890 1345) (strings 32 299694 3548) (string-bytes 1 7049053) (vectors 16 98122) (vector-slots 8 2328274 44702) (floats 8 892 1235) (intervals 56 1023 676) (buffers 992 19)) From unknown Tue Aug 19 21:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Dec 2018 07:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33690 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Pascal J. Bourguignon" Cc: 33690@debbugs.gnu.org Received: via spool by 33690-submit@debbugs.gnu.org id=B33690.154442530324393 (code B ref 33690); Mon, 10 Dec 2018 07:02:01 +0000 Received: (at 33690) by debbugs.gnu.org; 10 Dec 2018 07:01:43 +0000 Received: from localhost ([127.0.0.1]:40665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWFZW-0006LL-9n for submit@debbugs.gnu.org; Mon, 10 Dec 2018 02:01:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWFZU-0006L7-SW for 33690@debbugs.gnu.org; Mon, 10 Dec 2018 02:01:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWFZL-0001gk-Be for 33690@debbugs.gnu.org; Mon, 10 Dec 2018 02:01:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWFZJ-0001eK-9x; Mon, 10 Dec 2018 02:01:31 -0500 Received: from [176.228.60.248] (port=1877 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gWFZG-00029Y-8Q; Mon, 10 Dec 2018 02:01:28 -0500 Date: Mon, 10 Dec 2018 09:01:13 +0200 Message-Id: <837egh3lxi.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <871s6qe65n.fsf@informatimago.com> (pjb@informatimago.com) References: <871s6qe65n.fsf@informatimago.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: "Pascal J. Bourguignon" > Date: Sun, 09 Dec 2018 22:34:12 +0100 > > > Launching emacs in a terminal (DISPLAY=:0.0, but no X server running), > including my .emacs, I get > Wrong type argument: number-or-marker-p, nil in window-edges > errors on C-n and C-p. > The error come from window-edges. > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > window-edges(nil t nil t) > window-inside-pixel-edges() > window-screen-lines() > line-move-partial(1 nil) > line-move(1 nil nil 1) > next-line(1 1) > funcall-interactively(next-line 1 1) > call-interactively(next-line nil nil) > command-execute(next-line) > > Running with a window-edges not compiled, we find that the problem is > that border-width is nil. I would therefore suggest to patch > window-edges, to use 0 when frame-internal-border-width returns nil > (which occurs when running in a terminal): I don't understand. The definition of frame-internal-border-width is this: DEFUN ("frame-internal-border-width", Fframe_internal_border_width, Sframe_internal_border_width, 0, 1, 0, doc: /* Return width of FRAME's internal border in pixels. */) (Lisp_Object frame) { return make_number (FRAME_INTERNAL_BORDER_WIDTH (decode_any_frame (frame))); } This can only return numbers, never nil, even when we are on a text terminal. Are you sure you don't override this definition with some local code? Thanks. From unknown Tue Aug 19 21:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges Resent-From: "Pascal J. Bourguignon" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Dec 2018 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33690 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 33690@debbugs.gnu.org Received: via spool by 33690-submit@debbugs.gnu.org id=B33690.15444363358678 (code B ref 33690); Mon, 10 Dec 2018 10:06:02 +0000 Received: (at 33690) by debbugs.gnu.org; 10 Dec 2018 10:05:35 +0000 Received: from localhost ([127.0.0.1]:40731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIRS-0002Fs-7q for submit@debbugs.gnu.org; Mon, 10 Dec 2018 05:05:35 -0500 Received: from hubble.informatimago.com ([5.9.56.230]:37485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIRO-0002Fh-NX for 33690@debbugs.gnu.org; Mon, 10 Dec 2018 05:05:31 -0500 Received: from [10.30.93.184] (unknown [92.184.117.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hubble.informatimago.com (Postfix) with ESMTPSA id 18AD45A40B1; Mon, 10 Dec 2018 11:05:28 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) From: "Pascal J. Bourguignon" X-Mailer: iPad Mail (16B92) In-Reply-To: <837egh3lxi.fsf@gnu.org> Date: Mon, 10 Dec 2018 11:05:27 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <78CA67F7-1927-4DAE-ACEE-BB294F8C295B@informatimago.com> References: <871s6qe65n.fsf@informatimago.com> <837egh3lxi.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) You=E2=80=99re right, I have been overriding this frame-internal-border-widt= h function from a macro defining functions for all the frame parameters. I=E2= =80=99m changing the name used now. You may close the bug report; sorry. On 10 Dec 2018, at 08:01, Eli Zaretskii wrote: >> From: "Pascal J. Bourguignon" >> Date: Sun, 09 Dec 2018 22:34:12 +0100 >>=20 >>=20 >> Launching emacs in a terminal (DISPLAY=3D:0.0, but no X server running), >> including my .emacs, I get=20 >> Wrong type argument: number-or-marker-p, nil in window-edges >> errors on C-n and C-p. >> The error come from window-edges. >>=20 >> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil= ) >> window-edges(nil t nil t) >> window-inside-pixel-edges() >> window-screen-lines() >> line-move-partial(1 nil) >> line-move(1 nil nil 1) >> next-line(1 1) >> funcall-interactively(next-line 1 1) >> call-interactively(next-line nil nil) >> command-execute(next-line) >>=20 >> Running with a window-edges not compiled, we find that the problem is >> that border-width is nil. I would therefore suggest to patch >> window-edges, to use 0 when frame-internal-border-width returns nil >> (which occurs when running in a terminal): >=20 > I don't understand. The definition of frame-internal-border-width is > this: >=20 > DEFUN ("frame-internal-border-width", Fframe_internal_border_width, Sfram= e_internal_border_width, 0, 1, 0, > doc: /* Return width of FRAME's internal border in pixels. */) > (Lisp_Object frame) > { > return make_number (FRAME_INTERNAL_BORDER_WIDTH (decode_any_frame (fram= e))); > } >=20 > This can only return numbers, never nil, even when we are on a text > terminal. Are you sure you don't override this definition with some > local code? >=20 > Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 10 05:17:06 2018 Received: (at control) by debbugs.gnu.org; 10 Dec 2018 10:17:06 +0000 Received: from localhost ([127.0.0.1]:40736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIcb-0002WV-IK for submit@debbugs.gnu.org; Mon, 10 Dec 2018 05:17:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIcW-0002Vv-OW for control@debbugs.gnu.org; Mon, 10 Dec 2018 05:17:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWIcO-0007JV-EG for control@debbugs.gnu.org; Mon, 10 Dec 2018 05:16:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWIcO-0007JP-9U; Mon, 10 Dec 2018 05:16:52 -0500 Received: from [176.228.60.248] (port=2488 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gWIcN-0004vm-Np; Mon, 10 Dec 2018 05:16:52 -0500 Date: Mon, 10 Dec 2018 12:16:39 +0200 Message-Id: <834lbl3cvs.fsf@gnu.org> From: Eli Zaretskii To: "Pascal J. Bourguignon" In-reply-to: <78CA67F7-1927-4DAE-ACEE-BB294F8C295B@informatimago.com> (pjb@informatimago.com) Subject: Re: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges References: <871s6qe65n.fsf@informatimago.com> <837egh3lxi.fsf@gnu.org> <78CA67F7-1927-4DAE-ACEE-BB294F8C295B@informatimago.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control Cc: 33690-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) tags 33690 notabug thanks > From: "Pascal J. Bourguignon" > Date: Mon, 10 Dec 2018 11:05:27 +0100 > Cc: 33690@debbugs.gnu.org > > You’re right, I have been overriding this frame-internal-border-width function from a macro defining functions for all the frame parameters. I’m changing the name used now. You may close the bug report; sorry. Thanks, closing. From unknown Tue Aug 19 21:02:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Pascal J. Bourguignon" Subject: bug#33690: closed (Re: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges) Message-ID: References: <834lbl3cvs.fsf@gnu.org> <871s6qe65n.fsf@informatimago.com> X-Gnu-PR-Message: they-closed 33690 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 33690@debbugs.gnu.org Date: Mon, 10 Dec 2018 10:18:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1544437084-9800-1" This is a multi-part message in MIME format... ------------=_1544437084-9800-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33690@debbugs.gnu.org. --=20 33690: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33690 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1544437084-9800-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33690-done) by debbugs.gnu.org; 10 Dec 2018 10:17:13 +0000 Received: from localhost ([127.0.0.1]:40739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIcj-0002Ww-17 for submit@debbugs.gnu.org; Mon, 10 Dec 2018 05:17:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWIch-0002Wd-PH for 33690-done@debbugs.gnu.org; Mon, 10 Dec 2018 05:17:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWIcZ-0007O1-Hi for 33690-done@debbugs.gnu.org; Mon, 10 Dec 2018 05:17:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWIcO-0007JP-9U; Mon, 10 Dec 2018 05:16:52 -0500 Received: from [176.228.60.248] (port=2488 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gWIcN-0004vm-Np; Mon, 10 Dec 2018 05:16:52 -0500 Date: Mon, 10 Dec 2018 12:16:39 +0200 Message-Id: <834lbl3cvs.fsf@gnu.org> From: Eli Zaretskii To: "Pascal J. Bourguignon" In-reply-to: <78CA67F7-1927-4DAE-ACEE-BB294F8C295B@informatimago.com> (pjb@informatimago.com) Subject: Re: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges References: <871s6qe65n.fsf@informatimago.com> <837egh3lxi.fsf@gnu.org> <78CA67F7-1927-4DAE-ACEE-BB294F8C295B@informatimago.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33690-done Cc: 33690-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) tags 33690 notabug thanks > From: "Pascal J. Bourguignon" > Date: Mon, 10 Dec 2018 11:05:27 +0100 > Cc: 33690@debbugs.gnu.org > > You’re right, I have been overriding this frame-internal-border-width function from a macro defining functions for all the frame parameters. I’m changing the name used now. You may close the bug report; sorry. Thanks, closing. ------------=_1544437084-9800-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Dec 2018 22:05:16 +0000 Received: from localhost ([127.0.0.1]:40333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW7CO-0006xk-99 for submit@debbugs.gnu.org; Sun, 09 Dec 2018 17:05:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW6ij-00064B-Fr for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW6ia-0005au-MD for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gW6iZ-0005Wl-FD for submit@debbugs.gnu.org; Sun, 09 Dec 2018 16:34:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW6iX-0005Ts-St for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW6iR-00059N-3O for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:24 -0500 Received: from hubble.informatimago.com ([2a01:4f8:161:52e2::2]:42792) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gW6iP-0004zh-7w for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 16:34:18 -0500 Received: from proteus.informatimago.com (proteus.informatimago.com [149.202.216.117]) by hubble.informatimago.com (Postfix) with ESMTP id 04FA25A40B1 for ; Sun, 9 Dec 2018 22:34:13 +0100 (CET) Received: by proteus.informatimago.com (Postfix, from userid 1000) id DFA94200E; Sun, 9 Dec 2018 21:34:12 +0000 (UTC) From: "Pascal J. Bourguignon" To: bug-gnu-emacs@gnu.org Subject: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en Date: Sun, 09 Dec 2018 22:34:12 +0100 Message-ID: <871s6qe65n.fsf@informatimago.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 09 Dec 2018 17:05:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Launching emacs in a terminal (DISPLAY=3D:0.0, but no X server running), including my .emacs, I get=20 Wrong type argument: number-or-marker-p, nil in window-edges errors on C-n and C-p. The error come from window-edges. Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) window-edges(nil t nil t) window-inside-pixel-edges() window-screen-lines() line-move-partial(1 nil) line-move(1 nil nil 1) next-line(1 1) funcall-interactively(next-line 1 1) call-interactively(next-line nil nil) command-execute(next-line) Running with a window-edges not compiled, we find that the problem is that border-width is nil. I would therefore suggest to patch window-edges, to use 0 when frame-internal-border-width returns nil (which occurs when running in a terminal): (let (=E2=80=A6 (border-width (or (frame-internal-border-width frame) 0)) =E2=80=A6) =20=20=20=20=20=20 In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.31) of 2018-12-09 built on proteus System Description: Debian GNU/Linux 9.6 (stretch) Recent messages: Wrote /home/pjb/src/public/rc/emacs-common.el [2 times] save-buffer "/home/pjb/src/public/rc/emacs-common.el" Mark set Entering debugger... previous-line: Beginning of buffer [2 times] Back to top level The footer should be: (provide 'emacs-common)\n;;; emacs-common.el ends here window-edges Mark set Quit Configured using: 'configure --prefix=3D/usr/local --with-x --without-ns --with-gif=3Dno --with-gnutls=3Dno' Configured features: XPM JPEG TIFF PNG SOUND GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 THREADS Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: C value of $LANG: en_US.UTF-8 locale-coding-system: nil Major mode: Emacs-Lisp Minor modes in effect: global-flycheck-mode: t flycheck-mode: t erc-truncate-mode: t erc-track-mode: t erc-services-mode: t erc-networks-mode: t erc-ring-mode: t erc-replace-mode: t erc-netsplit-mode: t erc-match-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-fill-mode: -1 erc-stamp-mode: t erc-autojoin-mode: t erc-autoaway-mode: t show-paren-mode: t auto-image-file-mode: t global-auto-complete-mode: t auto-complete-mode: t erc-log-mode: t erc-irccontrols-mode: t erc-readonly-mode: t paredit-mode: t diff-auto-refine-mode: t display-time-mode: t shell-dirtrack-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t unify-8859-on-decoding-mode: t unify-8859-on-encoding-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/scratch /home/pjb/emacs/emacs-utils/utils hides /home/pjb/emacs/emacs-cl/src/utils /home/pjb/emacs/coffee-mode/test/test-helper hides /home/pjb/emacs/emacs-gr= adle-mode/test/test-helper /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/exampl= es/scratch /home/pjb/src/public/emacs/scratch hides /home/pjb/emacs/emacs-utils/parser= -pres/scratch /home/pjb/emacs/paredit hides /home/pjb/.emacs.d/elpa/paredit-24/paredit /home/pjb/emacs/emacs-gradle-mode/features/support/env hides /usr/local/sha= re/emacs/26.1/lisp/env /usr/share/emacs/site-lisp/rst hides /usr/local/share/emacs/26.1/lisp/textm= odes/rst /home/pjb/emacs/emacs-utils/thunk hides /usr/local/share/emacs/26.1/lisp/em= acs-lisp/thunk Features: (shadow sort mail-extr emacsbug yasnippet misearch multi-isearch cl-print help-fns radix-tree org-rmail org-mhe org-irc org-info org-gnus nnir org-docview org-bibtex bibtex org-bbdb org-w3m term/screen term/xterm xterm ob-dot ob-latex server find-lisp textmate robe inf-ruby ruby-mode highlight-indentation smartparens-config smartparens-javascript smartparens-text smartparens-html smartparens-ruby smartparens enh-ruby-mode android-mode inf-lisp slime-media slime-indentation slime-cl-indent slime-mrepl inferior-slime slime-hyperdoc slime-sprof slime-asdf slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime flycheck rx subr-x dash flymake-proc flymake warnings lisp-mnt gud apropos etags xref project arc-mode archive-mode hyperspec slime-autoloads erc-truncate erc-track erc-services erc-networks erc-ring erc-replace erc-netsplit erc-match erc-pcomplete erc-button erc-fill erc-stamp erc-join erc-autoaway paren grep delsel image-file canlock freerdp-c-style cl-indent w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load org-element avl-tree generator org org-macro org-footnote org-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 auto-complete-config auto-complete popup bash-completion iso-transl rst compile emacs-uptime debug gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win cus-edit cus-start cus-load rmailsum rmailsort asm-mode pjb-constants pjb-cl-magic pcase pjb-echo-keys pjb-erc erc-log pjb-make-depends pjb-erc-filter pjb-erc-speak pjb-speak erc-goodies erc erc-backend erc-compat pp pjb-mail sendmail pjb-pgp pgp pjb-shell pjb-work pjb-xresources pjb-thi pjb-c-style pjb-java pjb-http pjb-objc-edit paredit semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local pjb-objc-ide cedet pjb-objc-parser pjb-objc-gen android-classes mhtml-mode css-mode smie color eww mm-url gnus nnheader wid-edit url-queue shr svg xml js json map imenu flyspell ispell pl1 pjb-cvs pjb-dot pjb-graph pjb-class pjb-cvspass pjb-i2p-expression pjb-s2p-expression pjb-layers pjb-roman pjb-server pjb-queue pjb-banks pjb-bourse pjb-object pjb-euro pjb-html pjb-emacs edmacro kmacro cookie1 morse fortune sgml-mode dom picture browse-url pjb-sources filecache add-log cal-menu calendar cal-loaddefs forms forms-mode pjb-utilities pjb-font pjb-selftrade pjb-strings pjb-list pjb-cl eieio-compat eieio-opt speedbar sb-image ezimage dframe find-func cl-extra help-mode vc-git diff-mode easy-mmode elec-pair time goto-addr thingatpt tramp-sh cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring advice parse-time cl mm-archive message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils format-spec network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap epg finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib disp-table 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 inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1152520 37629) (symbols 48 69507 85) (miscs 40 890 1345) (strings 32 299694 3548) (string-bytes 1 7049053) (vectors 16 98122) (vector-slots 8 2328274 44702) (floats 8 892 1235) (intervals 56 1023 676) (buffers 992 19)) ------------=_1544437084-9800-1--