From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.bugs Subject: bug#33690: 26.1; Wrong type argument: number-or-marker-p, nil in window-edges Date: Sun, 09 Dec 2018 22:34:12 +0100 Message-ID: <871s6qe65n.fsf@informatimago.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544393060 9514 195.159.176.226 (9 Dec 2018 22:04:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 22:04:20 +0000 (UTC) To: 33690@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 23:04:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW7BO-0002MW-J1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 23:04:14 +0100 Original-Received: from localhost ([::1]:56951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW7DV-0005jz-Ax for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 17:06:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW7DC-0005cU-EJ for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 17:06:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW7D8-0005CX-QF for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 17:06:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW7D8-0005CR-MX for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 17:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gW7D8-0006z9-H9 for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 17:06:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154439311626773 (code B ref -1); Sun, 09 Dec 2018 22:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2018 22:05:16 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by proteus.informatimago.com (Postfix, from userid 1000) id DFA94200E; Sun, 9 Dec 2018 21:34:12 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:153277 Archived-At: 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))