From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#40576: call-process-region does not accept nil as first argument
Date: Sun, 12 Apr 2020 18:01:40 +0200
Message-ID:
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="35850"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 40576@debbugs.gnu.org
To: Pietro Giorgianni
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 12 18:06:41 2020
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1jNf83-0009DB-6H
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Apr 2020 18:06:39 +0200
Original-Received: from localhost ([::1]:34890 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jNf82-0006AU-8T
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Apr 2020 12:06:38 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41956)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from ) id 1jNf4Z-0002sf-IS
for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 12:03:04 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1jNf4Y-0005n5-Kl
for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 12:03:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:47149)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1jNf4X-0005mo-S8
for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 12:03:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1jNf4X-0004D0-PC
for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 12:03:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 12 Apr 2020 16:03:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 40576
X-GNU-PR-Package: emacs
Original-Received: via spool by 40576-submit@debbugs.gnu.org id=B40576.158670732116073
(code B ref 40576); Sun, 12 Apr 2020 16:03:01 +0000
Original-Received: (at 40576) by debbugs.gnu.org; 12 Apr 2020 16:02:01 +0000
Original-Received: from localhost ([127.0.0.1]:58695 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jNf3Y-0004B2-L1
for submit@debbugs.gnu.org; Sun, 12 Apr 2020 12:02:01 -0400
Original-Received: from mail-ot1-f47.google.com ([209.85.210.47]:38226)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jNf3V-0004Ak-B5
for 40576@debbugs.gnu.org; Sun, 12 Apr 2020 12:01:57 -0400
Original-Received: by mail-ot1-f47.google.com with SMTP id n8so1431162otk.5
for <40576@debbugs.gnu.org>; Sun, 12 Apr 2020 09:01:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=jqObcBaApbDD/waqdtfV6nRqhI1A6d7LiggSgKvLwhI=;
b=sXNgo4hHoPirzc9/+j9O20FiSd2iW1ZzFu8wWLGQHuCtLRnSw693aWR9udxNRXTJJ6
WyvrFQLpSreY0WNx1SJM6vwDCYKFBQkJ46usKJ3Q/c91cPUOmqsM+C+WRYL3QosXdAbV
Dc+SJWEplKEkA2/xYZe1UTtlb7CzWwu7BBma27tFDg/RBeikS7dr1SzKcHP6p1QRC3Cm
Qn+8BPCwld2bO0OHOOiF/g8iBkUVMcKAIUQNAs9Fa2mVl/Vn/zWD0BPVMhcujr0ZwQ+k
cQbJ9PmFT5HpmSrfTJJdx5r3JDlTCHissecFmxw0ouVTSbpITvUWW1RlbQI+f4EWiez5
0zxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=jqObcBaApbDD/waqdtfV6nRqhI1A6d7LiggSgKvLwhI=;
b=oM7+xSNqkpfIWYwKecK0zh5IJyw2zEqsuol7H0xqAFn5j2n7hsQxDmL5FyU/rdI5QS
TxOXp3+qD0LhErxbe9xBrnPKlsok0a0mYptWbYhgD1xqkTdfAEFcDgcD1gKa1PBKR/64
F/r3d3Vx+9vxoL3r9HXuPoBu8knPu4NcKb7Z0Oykyl8vhFLGJHRcqZSgAy7S35QjeGLK
FsVyZOjcTTmiCqpkmsm263ESxf86i/7I9nbAFHJCwQWAjksHbfESKxWWuYDyqv1yiIrg
ce/2lg59rBeXHAPlhHOVqbYetoCEdMQXfF9wde79hTa3RpeQ8CRERRDdteV+cugfxvAF
apBg==
X-Gm-Message-State: AGi0Pua9XmzXDZNyQMOl2e64WDI4wDRKUcw4M6cjRKXbaGqpxcxN97mf
XWr6xMq6foUn+MXOgU8t+Z1tk39frvQAon/bsvc=
X-Google-Smtp-Source: APiQypIWEUM9KNSJnaWEbyvPiWH6JgOWKVQyQU9KLuIzGN79Ry5L6jWXnVK57LGDZsmvxoR6YQua3AmbMSlD8TmdkH8=
X-Received: by 2002:a05:6830:1e79:: with SMTP id
m25mr11248857otr.36.1586707311608;
Sun, 12 Apr 2020 09:01:51 -0700 (PDT)
In-Reply-To:
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: 209.51.188.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-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:178255
Archived-At:
Am So., 12. Apr. 2020 um 17:44 Uhr schrieb Pietro Giorgianni
:
>
> Hi,
>
> According to the documentation of call-process-region,
> If START is nil, that means to use the entire buffer contents; END is
> ignored.
>
> But when I run:
> (call-process-region nil nil "/bin/cat" t (current-buffer))
> I get:
> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
> call-process-region(nil nil "/bin/cat" t #)
> eval((call-process-region nil nil "/bin/cat" t (current-buffer)) nil)
> elisp--eval-last-sexp(t)
> eval-last-sexp(t)
> eval-print-last-sexp(nil)
> funcall-interactively(eval-print-last-sexp nil)
> call-interactively(eval-print-last-sexp nil nil)
> command-execute(eval-print-last-sexp)
>
> If, instead, I run:
> (call-process-region (point-min) (point-max) "/bin/cat" t (current-buffer))
>
> It works.
>
> Am I interpreting the documentation wrong?
Nope, looks like a genuine bug (that happens only if DELETE is non-nil).