From unknown Tue Jun 17 01:43:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21388: 24.4.50; Wrong type argument in sendmail-send-it w/o mail-interactive Resent-From: Ken Olum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Aug 2015 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21388@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144105200018098 (code B ref -1); Mon, 31 Aug 2015 20:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Aug 2015 20:13:20 +0000 Received: from localhost ([127.0.0.1]:44102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVSB-0004hp-EK for submit@debbugs.gnu.org; Mon, 31 Aug 2015 16:13:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVS9-0004hh-9i for submit@debbugs.gnu.org; Mon, 31 Aug 2015 16:13:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWVS8-0008JV-3B for submit@debbugs.gnu.org; Mon, 31 Aug 2015 16:13:17 -0400 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]:60118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWVS8-0008JO-0z for submit@debbugs.gnu.org; Mon, 31 Aug 2015 16:13:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWVS6-0005aI-ML for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 16:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWVS1-0008H1-Lb for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 16:13:14 -0400 Received: from cosmos.phy.tufts.edu ([130.64.84.253]:58133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWVS1-0008Cj-J2 for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2015 16:13:09 -0400 Received: from kdo by cosmos.phy.tufts.edu ([local]:local) with local id 1ZWVRw-000241-44 - Using Exim-4.84 (MandrivaLinux) MTA (return-path ); Mon, 31 Aug 2015 16:13:04 -0400 From: Ken Olum Date: Mon, 31 Aug 2015 16:13:04 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) emacs -Q M-x set-variable mail-interactive nil C-x m ... compose message ... C-c C-c Answer "transport" to "Send mail via:" Get error "Wrong type argument: stringp, 0" The problem is that at the beginning of sendmail.el, errbuf is bound to 0 intead of NIL when mail-interactive is not set, so at the end it tries to switch to buffer 0. In GNU Emacs 24.4.50.6 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2014-09-05 on cosmos Repository revision: 115765 kdo@cosmos.phy.tufts.edu-20140827175042-gu33co7yr80qg4is Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.5 LTS Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LC_ALL: C value of $LANG: en_US.UTF-8 locale-coding-system: nil Major mode: Shell Minor modes in effect: t: t shell-dirtrack-mode: t diff-auto-refine-mode: t tooltip-mode: t mouse-wheel-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 line-number-mode: t Recent input: - i C-a C-x b C-x b s e n d C-n C-n C-s e r r b C-s C-s C-s C-n C-p C-n C-n C-e C-M-b C-M-f C-n C-u C-v C-p C-p C-n C-n M-. C-x b C-M-a C-x 1 C-s e r r b C-s C-s C-s C-a M-: C-g M-: SPC n i l ) M-f M-f C-h v C-h f C-x o C-x b C-M-a C-s e r r b u f C-s C-x b m a i n e C-S-q C-z b g e a m c s SPC m a c s SPC - Q C-x r . p n C-x 1 p SPC SPC SPC . p M-< p n q C-c C-c M-C C-x b * D e d e b d e b u g b a c k C-g C-x C-b C-x o C-s * C-s C-s C-s C-s C-s C-x b B a c C-x 1 . n n n d t t d C-e d C-e d C-e d C-e d C-e d d d p p p q C-x b C-x k M-x c l e a r a n c e l - d e M-p M-p M-n M-x r e p o r t - e m a c s - b u g C-g M-p M-x r e p o r t - e m a c s - b u g Recent messages: Making completion list... [3 times] Quit Mark saved where search started Continuing. Wrong type argument: stringp, 0 No following nondeleted message Expunging deleted messages...done Saving file /home/kdo/mail/inbox... Wrote /home/kdo/mail/inbox [2 times] Canceling debug-on-entry for all functions Quit Load-path shadows: None found. Features: (shadow emacsbug pp find-func mailalias debug fortran cus-edit cus-start cus-load log-view pcmpl-cvs vc-dir ewoc vc-bzr rect conf-mode doc-view ps-mode vc-rcs compare-w find-dired python json view diff novice log-edit pcvs-util add-log tmm unrmail image-mode cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs nroff-mode vc vc-dispatcher edmacro lpr ispell dired-aux grep sh-script smie executable rmailkwd parse-time vc-cvs apropos mule-util etags rmailsum rmailedit undigest bibtex rmailout sgml-mode pcmpl-gnu dabbrev pcmpl-unix two-column kmacro iso-transl help-mode tabify imenu man qp mailman rmail-render-highlight rmail-query-reply-to rmail-physics-list rmail-bapc rmail-highlight-body rmail-hack-message rmail-order-headers nnmail gnus-int gnus-range mail-source gnus gnus-ems nnheader wid-edit sendmail mail-extr sort mailcap gnus-util jka-compr ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff info misearch multi-isearch tex-mode compile latexenc rmailmm message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils shell pcomplete diff-mode easy-mmode thingatpt browse-url math derived inf-lisp easymenu comint ansi-color ring warnings cl-macs cl gv cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process inotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 1217849 131757) (symbols 48 35427 0) (miscs 40 24361 19221) (strings 32 83955 18686) (string-bytes 1 2338170) (vectors 16 36555) (vector-slots 8 1615309 208850) (floats 8 166 846) (intervals 56 217923 10812) (buffers 976 337) (heap 1024 199738 93899)) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 31 16:22:40 2015 Received: (at control) by debbugs.gnu.org; 31 Aug 2015 20:22:40 +0000 Received: from localhost ([127.0.0.1]:44146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVbE-0004xw-AS for submit@debbugs.gnu.org; Mon, 31 Aug 2015 16:22:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54651) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVbC-0004xo-Qk for control@debbugs.gnu.org; Mon, 31 Aug 2015 16:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWVbC-0004HF-7J for control@debbugs.gnu.org; Mon, 31 Aug 2015 16:22:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:57661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWVbC-0004HB-4G for control@debbugs.gnu.org; Mon, 31 Aug 2015 16:22:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZWVbB-0006YH-9j for control@debbugs.gnu.org; Mon, 31 Aug 2015 16:22:37 -0400 Subject: control message for bug 21388 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 31 Aug 2015 16:22:37 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) forcemerge 20211 21388 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 10:16:06 2016 Received: (at control) by debbugs.gnu.org; 27 Nov 2016 15:16:06 +0000 Received: from localhost ([127.0.0.1]:43701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB1BW-0007Ch-5x for submit@debbugs.gnu.org; Sun, 27 Nov 2016 10:16:06 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:33168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB1BU-0007Bv-5d; Sun, 27 Nov 2016 10:16:04 -0500 Received: by mail-io0-f177.google.com with SMTP id j65so192538955iof.0; Sun, 27 Nov 2016 07:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=8+6VKfRm1jtpsHmrvvZ4RMX8Z08YkM7KL/5SHPp//os=; b=KZEzXT/gfG8xXlWlmPvEjYDP8VsLVrg/REgd2C6YBN8IQjQKGjUa+ZTijyybOXTe15 CxxaZUXu9nq6hmrdz766/a2TtsqVgKFPCuksYxQJfDZgsdpkYE8eZh09LLAnDHmi/+sn VjoQSshdnf0HzbxNIyreWW/7QibLzmXL1jbAaKXWY/aRyOa9BRPLuhU4IXrliz5zk1JS 3hO7eSJPHXxm8fVgm9Cg3g+EtjzLhNToOWYwDbPGyBAlaoZpG/lAUOKkvPWFlpXO+phd 3mQLlD8W94maOln/RzKNhMTyD0AdkUbESA64D8XFA45+jOWB0JX7gzMjzNaR02/mtFFT 83UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=8+6VKfRm1jtpsHmrvvZ4RMX8Z08YkM7KL/5SHPp//os=; b=BL4fMyESNI0YmIbQAIfU58ScynBJhDquoWTww5NXT+AQqZFBwOWwucMXIfcqf8nk4L jXAmXYRLxJsLYozpmRIS551SQRUxnthkKB491w+Kl9qgviDgAa9tK+PMy8y8kOPlnw1N mgKkGM0JuuvCDEAzdX+mhylO0JhXeEVFj070ZF8flW2FoEv3H5YpxRtko4QDvJNqq0u2 kLkGaEttPYv3A5zzQc/lL3RKQOvWxSJKI/kdFKI45RxusIjk2bzQCfPXGAojHjuF3PYL UJ24ikXRkqb/Q+Ac1xNYO9RJNgnT5y1RLCULM0Md4bsO4MdKUMQhU4pDIKKrQk79VDUh 5IqA== X-Gm-Message-State: AKaTC03KkDgxgL0G2W6phJUd253nR+cP0noqqflhZKul7oMB2xLa84GTdpB9wHjeU7hpBQ== X-Received: by 10.107.141.211 with SMTP id p202mr13734199iod.47.1480259758612; Sun, 27 Nov 2016 07:15:58 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 2sm18378284ioz.30.2016.11.27.07.15.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Nov 2016 07:15:58 -0800 (PST) From: npostavs@users.sourceforge.net To: Francesco =?utf-8?Q?Potort=C3=AC?= Subject: Re: bug#25040: 24.5; setting mail-interactive to nil causes error while sending References: Date: Sun, 27 Nov 2016 10:16:54 -0500 In-Reply-To: ("Francesco \=\?utf-8\?Q\?Potort\=C3\=AC\=22's\?\= message of "Sun, 27 Nov 2016 16:00:27 +0100") Message-ID: <87twaths0p.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control Cc: 25040@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: 0.5 (/) unarchive 20211 forcemerge 20211 25040 quit Francesco Potort=C3=AC writes: > > I was too hasty, sorry about that. Anyway, the problem exists, but it > is different from what I have told. 0 can be put back there. > > Apparently this change at the end of the functions fixes the bug: > > 1302,1305c1302,1305 > < (if (and (bufferp errbuf) > < (not error)) > < (kill-buffer errbuf) > < (switch-to-buffer-other-window errbuf))))) > --- >> (when (bufferp errbuf) >> (if (not error) >> (kill-buffer errbuf) >> (switch-to-buffer-other-window errbuf)))))) Ah, this was fixed in 25.1, where the function ends with (when (buffer-live-p errbuf) (if error (switch-to-buffer-other-window errbuf) (kill-buffer errbuf)))