From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Really noninteractive Date: Fri, 21 Feb 2020 08:20:48 -0500 Message-ID: References: <878skx492v.fsf@gnus.org> <874kvlgtp0.fsf@localhost> <87zhdd2lzy.fsf@gnus.org> <87r1yp2ji7.fsf@gnus.org> <87a75dgjl4.fsf@dick> 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="50494"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Ihor Radchenko , emacs-devel To: dick.r.chiang@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 21 14:32:59 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j58QM-000D0l-M2 for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 14:32:58 +0100 Original-Received: from localhost ([::1]:57797 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j58QL-0004RP-Lx for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 08:32:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j58Ev-0003HU-Ll for emacs-devel@gnu.org; Fri, 21 Feb 2020 08:21:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j58Et-0000BV-LT for emacs-devel@gnu.org; Fri, 21 Feb 2020 08:21:09 -0500 Original-Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]:42555) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j58Es-0008WN-00 for emacs-devel@gnu.org; Fri, 21 Feb 2020 08:21:07 -0500 Original-Received: by mail-ot1-x331.google.com with SMTP id 66so1929914otd.9 for ; Fri, 21 Feb 2020 05:21:05 -0800 (PST) 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=yDugUwnHvXS2EWd1WlYXHJ0INA1lRiA1NIoFH/6pb/A=; b=PQfpdyDL/5r0oKB2oMY8U5sENTGSKxy2+a0nJV+asL3Cz25L5xa/17D+4lvAw68GC1 LAAUKHoJwItORJ9ocQMGdxiLyzus6F2QDy6Scm1ovkuNXTJJKBlplYf+liGYg3EAaKRa guByg5uT2xAbVfnjjFcQtTIKAPwWkJDwidzaMnnADk31p2NAjvE8I4Sj6Gy4jaMBqvzz CcXCCTTb1OihbKsqo9Yizrug6w8uva/ilaMiBRL1JR3EqW8bjGkABmn/XLa/NSWzNjRw lFJoGq+2WoP+i84QlZ+AgWK67eGMpenFyoRW+2TKqBBEGPcJP+TGMZ/n7a7vuqyZU4Ww ew7A== 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=yDugUwnHvXS2EWd1WlYXHJ0INA1lRiA1NIoFH/6pb/A=; b=W7U6yyu2LD0ZhqKitkMuppmgjx9uOF6PJdau/UG8o3+HOyNJX8161HHuqKUJF2OGdq MSb/yLfYdiy3m5EA+tYfUVrL7Ekf2ytatwOkvEgiI4eg5KnxV+nStFY6ndv5cuRrDEmQ 49UqaD5k/BZ8Y7M0lbvaz+aqfL02eV9+x/dG3xclhtgfPx52pT3S+eP/rTVpobCY/b9B IQa2OxCcYVdGgf4yUNoWT0FrCe97c8Tuuuj/ytgYPhg0rwgAftk05oYSyhbcsDYq7snY UpQhGk1Ip1c81o1ejzXSf/wfbwezxqVD9EHyOxX+36t2fUAYYh3TeROuaVkSkRiqJa5x 7BEQ== X-Gm-Message-State: APjAAAXP3Oe7nZicFsEbQFBcFbq18eaNwMSIkpgLmdK91lPbSPyUOdQd rRnOmbBJhzjrwWw4s842WZl8KtkSF42Fcdsp6Vo= X-Google-Smtp-Source: APXvYqxndC0+NzBhMToesPWIwmv+pFaDJc6lpztuXU6kof6mPm15HQDLa95il2IKvfnpWdMQ7EYYkchXteYD+hu12xs= X-Received: by 2002:a9d:7304:: with SMTP id e4mr26003369otk.99.1582291265107; Fri, 21 Feb 2020 05:21:05 -0800 (PST) In-Reply-To: <87a75dgjl4.fsf@dick> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::331 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245010 Archived-At: On Thu, 20 Feb 2020 at 14:11, wrote: > > LI> Yes, but that's not what I want. :-) I want to say "this function call, > LI> in this otherwise totally normal Emacs, should not prompt". > > Okay, so you've established that `noninteractive` only diverts "normal emacs" > to call `read_minibuf_noninteractive()` which in turn attempts to get input > from stdin See, I assumed this as well after reading the prior messages of this thread. But I just tried it out now, and it actually does not do any diversion. I'm actually not entirely sure why, I guess changes to the `noninteractive' variable from lisp don't reach the C level? So the redirection of stdin only helps in the --batch case.