From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 20:19:19 2020 Received: (at submit) by debbugs.gnu.org; 15 Feb 2020 01:19:19 +0000 Received: from localhost ([127.0.0.1]:34910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2m74-0006MS-M6 for submit@debbugs.gnu.org; Fri, 14 Feb 2020 20:19:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:50010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2m71-0006MJ-SF for submit@debbugs.gnu.org; Fri, 14 Feb 2020 20:19:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2m6z-0003yz-Uv for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 20:19:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2m6x-0003XZ-OH for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 20:19:13 -0500 Received: from bigbang.gsfc.nasa.gov ([128.183.16.133]:42850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2m6x-0003WQ-E0 for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 20:19:11 -0500 Received: from alderaan.gsfc.nasa.gov (alderaan.gsfc.nasa.gov [128.183.53.160]) by bigbang.gsfc.nasa.gov (8.15.2/8.15.2) with ESMTP id 01F1J4Jw036116; Fri, 14 Feb 2020 20:19:04 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 bigbang.gsfc.nasa.gov 01F1J4Jw036116 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bigbang.gsfc.nasa.gov; s=bigbang-2018-09; t=1581729547; bh=H18gzxBqCAeianedmjYpM9bdxS5fxZ4NEYpt1fS4nXY=; h=From:To:Subject:Reply-To:Date:From; b=u/2FngjTj67FOQb1PL/+iNmTXgDZZzSFx/rO/5vGOvqPO8beKZYZ8jfQY610Fvoaj i9T/TldFdHcKmNg2E2EtJNByOkHInfWFb6rhYsd2RcijLCIbrDq/AdizhOMu6rABgg s90Fh9KaT5awPB7OafRnj7G4MDnow9u15wAMuZXM= Received: by alderaan.gsfc.nasa.gov (Postfix, from userid 679) id 8552080D81; Fri, 14 Feb 2020 20:19:04 -0500 (EST) From: Ed Sabol To: bug-gnu-emacs@gnu.org Subject: 26.3; rmail-summary-delete-forward: Wrong type argument: number-or-marker-p, nil Message-Id: <20200215011904.8552080D81@alderaan.gsfc.nasa.gov> Date: Fri, 14 Feb 2020 20:19:04 -0500 (EST) X-Greylist: inspected by milter-greylist-4.5.12 (bigbang.gsfc.nasa.gov [128.183.16.133]); Fri, 14 Feb 2020 20:19:04 -0500 (EST) for IP:'128.183.53.160' DOMAIN:'alderaan.gsfc.nasa.gov' HELO:'alderaan.gsfc.nasa.gov' FROM:'edward.j.sabol@nasa.gov' RCPT:'' X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.5.12 (bigbang.gsfc.nasa.gov [128.183.16.133]); Fri, 14 Feb 2020 20:19:04 -0500 (EST) X-Scanned-By: MIMEDefang 2.84 on 128.183.16.133 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 128.183.16.133 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit 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: , Reply-To: Ed Sabol Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I kept getting the error "Wrong type argument: number-or-marker-p, nil" if I tried to delete a message immediate after retrieving new messages. I finally figured out a solution. In `rmail-summary-delete-forward', please change: (with-current-buffer rmail-buffer (rmail-delete-message) (setq del-msg rmail-current-message)) to (with-current-buffer rmail-buffer (setq del-msg rmail-current-message) (rmail-delete-message)) For some inexplicable reason, rmail-current-message becomes nil after executing `rmail-delete-message' *sometimes*. I'm not sure under what circumstances it does though, so I can't give you a precise recipe to reproduce it. Changing the order of these two forms completely fixes this problem for me though. I would really appreciate it if someone committed this minor change. Is the `(rmail-summary-mark-deleted del-msg)' on the following line even needed? rmail-delete-message calls rmail-summary-mark-deleted. Seems like duplicate effort. If you get rid of that line, then you don't need the del-msg variable at all, which would simplify this code considerably and also eliminate the problem. In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-11-19 built on heabox Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Scientific Linux release 7.7 (Nitrogen) Recent messages: Expunging deleted messages...done Computing summary lines...done Saving file /Home/lhea2/sabol/Mail/cron... Wrote /Home/lhea2/sabol/Mail/cron [2 times] Computing summary lines...done Auto-saving...done Mark set [2 times] Region copied to kill buffer. Making completion list... [2 times] Region copied to kill buffer. Configured using: 'configure --prefix=/software/usr/contrib --exec-prefix=/software/usr/contrib/linux-7.x --with-x-toolkit=lucid --with-xft=yes --with-toolkit-scroll-bars=no --with-jpeg=no --with-gif=no --with-tiff=no --with-gnutls=no' Configured features: XAW3D XPM PNG SOUND GSETTINGS GLIB NOTIFY LIBSELINUX LIBXML2 FREETYPE XFT ZLIB LUCID X11 XDBE XIM THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: show-paren-mode: t diff-auto-refine-mode: t display-time-mode: t tooltip-mode: t global-eldoc-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 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: /software/usr/contrib/share/emacs/26.x/site-lisp/dockerfile-mode hides /Home/lhea2/sabol/.emacs.d/elpa/dockerfile-mode-1.2/dockerfile-mode /software/usr/contrib/share/emacs/26.x/site-lisp/perlcritic hides /software/usr/contrib/share/emacs/site-lisp/perlcritic /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-region hides /software/usr/contrib/share/emacs/site-lisp/mmm-region /software/usr/contrib/share/emacs/26.x/site-lisp/tidy hides /software/usr/contrib/share/emacs/site-lisp/tidy /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-vars hides /software/usr/contrib/share/emacs/site-lisp/mmm-vars /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-noweb hides /software/usr/contrib/share/emacs/site-lisp/mmm-noweb /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-utils hides /software/usr/contrib/share/emacs/site-lisp/mmm-utils /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-cweb hides /software/usr/contrib/share/emacs/site-lisp/mmm-cweb /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-univ hides /software/usr/contrib/share/emacs/site-lisp/mmm-univ /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-rpm hides /software/usr/contrib/share/emacs/site-lisp/mmm-rpm /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-mason hides /software/usr/contrib/share/emacs/site-lisp/mmm-mason /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-sample hides /software/usr/contrib/share/emacs/site-lisp/mmm-sample /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-mode hides /software/usr/contrib/share/emacs/site-lisp/mmm-mode /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-cmds hides /software/usr/contrib/share/emacs/site-lisp/mmm-cmds /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-class hides /software/usr/contrib/share/emacs/site-lisp/mmm-class /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-compat hides /software/usr/contrib/share/emacs/site-lisp/mmm-compat /Home/lhea2/sabol/.emacs.d/elpa/mmm-mode-0.5.7/mmm-auto hides /software/usr/contrib/share/emacs/site-lisp/mmm-auto /software/usr/contrib/share/emacs/26.x/site-lisp/mode-compile hides /software/usr/contrib/share/emacs/site-lisp/mode-compile /software/usr/contrib/share/emacs/26.x/site-lisp/heasarc-info-mode hides /software/usr/contrib/share/emacs/site-lisp/heasarc-info-mode /software/usr/contrib/share/emacs/26.x/site-lisp/simple-vc hides /software/usr/contrib/share/emacs/site-lisp/simple-vc /software/usr/contrib/share/emacs/site-lisp/css-mode hides /software/usr/contrib/share/emacs/26.3/lisp/textmodes/css-mode /software/usr/contrib/share/emacs/site-lisp/flymake hides /software/usr/contrib/share/emacs/26.3/lisp/progmodes/flymake /Home/lhea2/sabol/.emacs.d/elpa/nadvice-0.3/nadvice hides /software/usr/contrib/share/emacs/26.3/lisp/emacs-lisp/nadvice Features: (shadow mailalias mail-hist emacsbug sendmail help-mode cl-print debug misearch multi-isearch thingatpt browse-url pp qp rmailsum rmailmm elec-pair dockerfile-mode sh-script smie paren psvn wid-edit cl log-edit message rmc puny format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader ring add-log diff-mode executable mmm-auto mmm-vars mmm-utils mmm-compat imenu mm-util mail-prsvr time advice server restart-session dired dired-loaddefs pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs easy-mmode pcvs-util ewoc finder-inf 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 time-date 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 inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 360821 39122) (symbols 48 29118 1) (miscs 40 22245 2147) (strings 32 124604 9006) (string-bytes 1 4759719) (vectors 16 25408) (vector-slots 8 875886 26110) (floats 8 147 448) (intervals 56 3156 806) (buffers 992 38) (heap 1024 71981 3392)) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 27 13:55:32 2020 Received: (at 39612) by debbugs.gnu.org; 27 Oct 2020 17:55:32 +0000 Received: from localhost ([127.0.0.1]:45718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTC0-0000vE-5c for submit@debbugs.gnu.org; Tue, 27 Oct 2020 13:55:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTBy-0000ux-8T for 39612@debbugs.gnu.org; Tue, 27 Oct 2020 13:55:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1AqBggyDoQ+U5drtXbm2/X/vjDDlm+ZsVW+/XYVMBNU=; b=U80Rc3jtpJmqadKfT+D85Lyjs2 PefD2YjGQ8nd30PzB31ZFAK9gfzvPVvJ/6gbbvsqn901PDhr+b0EpSJLUkipvc+EzwPcOBR2iuumA uIivhGwpb2INxCVTLWFe2/qchDnuxFjzimFYLv2rvHzJGZgBNcopxs8eoUD6OUT9AyAM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXTBn-00025y-M2; Tue, 27 Oct 2020 18:55:22 +0100 From: Lars Ingebrigtsen To: Ed Sabol Subject: Re: bug#39612: 26.3; rmail-summary-delete-forward: Wrong type argument: number-or-marker-p, nil References: <20200215011904.8552080D81@alderaan.gsfc.nasa.gov> X-Now-Playing: Vladislav Delay, Sly Dunbar, Robbie Shakespeare's _500-PUSH-UP_: "(514)" Date: Tue, 27 Oct 2020 18:55:18 +0100 In-Reply-To: <20200215011904.8552080D81@alderaan.gsfc.nasa.gov> (Ed Sabol's message of "Fri, 14 Feb 2020 20:19:04 -0500 (EST)") Message-ID: <87zh471rll.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ed Sabol writes: > I kept getting the error "Wrong type argument: number-or-marker-p, nil" if I > tried to delete a message immediate after retrieving new messages. I finally > figured out a solution. In `rmail-summar [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39612 Cc: Ed Sabol , 39612@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: -1.0 (-) Ed Sabol writes: > I kept getting the error "Wrong type argument: number-or-marker-p, nil" if I > tried to delete a message immediate after retrieving new messages. I finally > figured out a solution. In `rmail-summary-delete-forward', please change: > > (with-current-buffer rmail-buffer > (rmail-delete-message) > (setq del-msg rmail-current-message)) > > to > > (with-current-buffer rmail-buffer > (setq del-msg rmail-current-message) > (rmail-delete-message)) OK, that seems like a harmless enough change, even if I'm not an rmail user, so I've applied it to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 27 13:55:36 2020 Received: (at control) by debbugs.gnu.org; 27 Oct 2020 17:55:36 +0000 Received: from localhost ([127.0.0.1]:45721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTC4-0000vU-Ef for submit@debbugs.gnu.org; Tue, 27 Oct 2020 13:55:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTC2-0000v6-QA for control@debbugs.gnu.org; Tue, 27 Oct 2020 13:55:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8aSvjEPasdc1JI1w4vBJ8b0mteywhE7krnN09NkxZ2g=; b=Cpi76pjnF8yy7xiT8vauJXiOiW V/rI1R1TUCeEqM+mYCR6e5L3BDHntUPSK+A1GqGB07Ao3s4Y0H/tVZQt3RjfTXry2NiX2TnC7eO8l 6lNPuPbKmQTtB8jCS1CFYYHjyRK+tuaR5zd5ovyelM2Ll353GEIbx11nXhntATziGfBE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXTBv-000266-18 for control@debbugs.gnu.org; Tue, 27 Oct 2020 18:55:29 +0100 Date: Tue, 27 Oct 2020 18:55:26 +0100 Message-Id: <87y2jr1rld.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #39612 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 39612 fixed close 39612 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 39612 fixed close 39612 28.1 quit From unknown Sat Jun 21 03:24:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 25 Nov 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator