From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 07 17:41:56 2019 Received: (at submit) by debbugs.gnu.org; 7 Apr 2019 21:41:56 +0000 Received: from localhost ([127.0.0.1]:48808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDFY3-0000Yz-Rk for submit@debbugs.gnu.org; Sun, 07 Apr 2019 17:41:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDFY1-0000Yk-8k for submit@debbugs.gnu.org; Sun, 07 Apr 2019 17:41:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:54650) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDFXw-0008TD-2r for submit@debbugs.gnu.org; Sun, 07 Apr 2019 17:41:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDFXu-0003Pd-Ix for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 17:41:47 -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,FREEMAIL_FROM, 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 1hDFXt-0008R6-4u for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 17:41:46 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:44176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDFXs-0008Qd-Mz for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 17:41:45 -0400 Received: by mail-pf1-x434.google.com with SMTP id y13so6389880pfm.11 for ; Sun, 07 Apr 2019 14:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=excQT68zsjaBMlJAdbooiijXLDyrIgbFIQwoTUjE1e8=; b=k1V0xfueXFlhOHTjrMnafnuAltQUQKhRxQ9EnFOgKWROfMcWgbWdUPHw41IiMaLMPh yKIK3qISgtucfo+3LD4cMeGOnq3DZNpIdRAewSP+cX2pKrQx0+Vd6It8B7lRbEeUOe75 c9u8TAq1qk8RX7v5jZurJUEpJ6Am4BvFcKGv4Q4OS3Cv03lVvzynIuz6gbVBohM/oINd +fcpIHDigFao/9VoQy6Yuvanl1cC7oQHaFKO5Oe4FrMxFgWPdu/ZhPJDrWiGoiDSaHlW gHCbkpNaZEDZ7q0uRYPCejb4/AvAypdPERJBuuuQ1Q1w8OnPRTGzWSpR7ORR+kszv9/a axHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=excQT68zsjaBMlJAdbooiijXLDyrIgbFIQwoTUjE1e8=; b=f8ZDxePiAwjxLKaFyK2hdhuArrSktXYHFS40rpofqSl16Ao7usf6+Qe+X2PUwNwy5L PR5wQ7U1HajGwl+dhk+fBsYKMRa5b7HC7bY4xOC5iW80GHcIiEOxprRJWgJrlhHRlN1D 2WZfWd6GYNdjYcpi0CkqEIefdDYtlEVGeCXMY3SEhgVfel8Q2Qt4M/eKYxlqkFdP5x4I O5j7s8k636OYzrRdY7oAoviu0RE0IeL2x9MaXSb/l1CWyW0AP3B76clCutRl+Zwcp3i0 pd8f7kW/YCSILE0TEBZ24H1zPMXeuGwqefxqCuxMcI7nLc9ffiAON4jzoO1qOg3i/diV xBFw== X-Gm-Message-State: APjAAAWTuFAN6SL3Huju8ZQ+lsOvMSOZiAYtexpuv4McxtDxOGR0Fa5e Sox96LJ0+56w/n+0GwFFIfIxKN1u X-Google-Smtp-Source: APXvYqweY4KrMdCruRaulmCMZ7/bQny3Ojy5tiAvXHe8mXUnY2gjkA9ZFQD9RG1l37YGSNZuw17vXQ== X-Received: by 2002:a62:5206:: with SMTP id g6mr25921438pfb.227.1554673302972; Sun, 07 Apr 2019 14:41:42 -0700 (PDT) Received: from debian-x1g4 (c-24-7-16-206.hsd1.ca.comcast.net. [24.7.16.206]) by smtp.gmail.com with ESMTPSA id m2sm40313678pgr.74.2019.04.07.14.41.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Apr 2019 14:41:42 -0700 (PDT) From: Ernesto Alfonso To: bug-gnu-emacs@gnu.org Subject: 26.1; call-process should accept a buffer as stdin. or its doc should reference call-process-region Date: Sun, 07 Apr 2019 14:39:30 -0700 Message-ID: <877ec5qyul.fsf@debian-x1g4.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::434 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) When looking at the call-process doc, I didn't see a way to pass a buffer to stdin without creating a temporary file. It looks like the DESTINATION argument already supports either a file-name or a buffer, but passing a buffer to INFILE does not seem supported: (call-process "cat" (get-buffer "*Messages*") nil) *** Eval error *** Wrong type argument: stringp, # Can this be supported? Could call-process-region be merged into the INFILE argument to call-process? As a short-term fix, it would be useful if the call-process referred to call-process-region. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2019-04-01 built on debian-x1g4 Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.8 (stretch) Recent messages: Sending email Sending email done Sending...done Mark set x C-g is undefined killed: call-process Mark set Mark saved where search started Mark set Mark saved where search started Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: text-scale-mode: t diff-auto-refine-mode: t global-erjoalgo-command-mode: t erjoalgo-command-mode: t show-paren-mode: t global-text-scale-mode: t tooltip-mode: t global-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/ealfonso/git/autobuild/autobuild hides /home/ealfonso/git/dotemacs/lisp/core/autobuild /home/ealfonso/.emacs.d/elpa/s-20180406.808/s hides /home/ealfonso/git/dotemacs/lisp/libs/s /home/ealfonso/quicklisp/dists/quicklisp/software/slime-v2.23/contrib/slime-cl-indent hides /home/ealfonso/git/dotemacs/lisp/libs/slime-cl-indent /home/ealfonso/.emacs.d/elpa/dash-20190320.1406/dash hides /home/ealfonso/git/dotemacs/lisp/libs/dash Features: (smtpmail ielm shadow sort mailalias mail-extr emacsbug network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache cl-print sh-script smie executable misearch multi-isearch dired-aux ffap face-remap vc-git diff-mode diary-lib diary-loaddefs cal-iso org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda files-x tmp-completions tetris-o-1 beeper translation babel mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap gnus nnheader wid-edit wm-windows 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 hi-lock company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb elec-pair lisp-mnt gud apropos compile etags xref project arc-mode archive-mode hyperspec browse-url slime-autoloads ox-texinfo ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-crypt org-element avl-tree generator org org-macro org-footnote org-pcomplete 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 comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs erc-goodies erc erc-backend erc-compat thingatpt bbdb-mua bbdb-com crm bbdb-message sendmail message rmc puny dired dired-loaddefs 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 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader bbdb bbdb-site timezone proxy-mode project-opener org-omnibar erjoalgo-command-mode command-mode-commands anonymizer genpass ert pp ewoc debug autobuild-examples autobuild selcand flycheck cl-extra json map find-func help-mode rx subr-x header2 sticky-windows company edmacro kmacro pcase dedicated dash-functional plusx my-emacs-settings paren server isearch-fast-reverse buttons zoom-global easy-mmode quick-yes advice goto-last-change f dash s finder-inf info cl 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 682551 187690) (symbols 48 61521 6) (miscs 40 257 1021) (strings 32 182018 12352) (string-bytes 1 5267657) (vectors 16 63279) (vector-slots 8 1719029 176918) (floats 8 382 605) (intervals 56 3956 82) (buffers 992 34)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 12:00:44 2019 Received: (at 35187) by debbugs.gnu.org; 9 Jul 2019 16:00:44 +0000 Received: from localhost ([127.0.0.1]:33915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksXs-0005M2-6O for submit@debbugs.gnu.org; Tue, 09 Jul 2019 12:00:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksXp-0005Lp-Nc for 35187@debbugs.gnu.org; Tue, 09 Jul 2019 12:00:42 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hksXm-0006sz-0J; Tue, 09 Jul 2019 18:00:40 +0200 From: Lars Ingebrigtsen To: Ernesto Alfonso Subject: Re: bug#35187: 26.1; call-process should accept a buffer as stdin. or its doc should reference call-process-region References: <877ec5qyul.fsf@debian-x1g4.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 09 Jul 2019 18:00:37 +0200 In-Reply-To: <877ec5qyul.fsf@debian-x1g4.i-did-not-set--mail-host-address--so-tickle-me> (Ernesto Alfonso's message of "Sun, 07 Apr 2019 14:39:30 -0700") Message-ID: <877e8rtcyi.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Ernesto Alfonso writes: > When looking at the call-process doc, I didn't see a way to pass a > buffer to stdin without creating a temporary file. It looks like > the DESTINATION argument already supports either a file-name o [...] 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: 35187 Cc: 35187@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 (-) Ernesto Alfonso writes: > When looking at the call-process doc, I didn't see a way to pass a > buffer to stdin without creating a temporary file. It looks like > the DESTINATION argument already supports either a file-name or a > buffer, but passing a buffer to INFILE does not seem supported: > > (call-process "cat" (get-buffer "*Messages*") nil) > *** Eval error *** Wrong type argument: stringp, # > > Can this be supported? Could call-process-region be merged into > the INFILE argument to call-process? I think it's probably too late to merge these two functions... > As a short-term fix, it would be useful if the call-process referred to > call-process-region. ... but I've now mentioned the latter in the former's doc string on the Emacs trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 12:00:47 2019 Received: (at control) by debbugs.gnu.org; 9 Jul 2019 16:00:47 +0000 Received: from localhost ([127.0.0.1]:33919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksXv-0005MK-HL for submit@debbugs.gnu.org; Tue, 09 Jul 2019 12:00:47 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksXu-0005MD-Mh for control@debbugs.gnu.org; Tue, 09 Jul 2019 12:00:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hksXr-0006t6-Qp for control@debbugs.gnu.org; Tue, 09 Jul 2019 18:00:46 +0200 Date: Tue, 09 Jul 2019 18:00:43 +0200 Message-Id: <875zobtcyc.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35187 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 35187 fixed close 35187 27.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 35187 fixed close 35187 27.1 quit From unknown Tue Jun 17 01:43:27 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, 07 Aug 2019 11:24:10 +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