From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sFGRMEfzTWTkRgEASxT56A (envelope-from ) for ; Sun, 30 Apr 2023 06:49:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IMerMEfzTWSgFgAA9RJhRA (envelope-from ) for ; Sun, 30 Apr 2023 06:49:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 55C0B21AD9 for ; Sun, 30 Apr 2023 06:49:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psyyu-00077C-5x; Sun, 30 Apr 2023 00:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psyyr-000770-PY for emacs-orgmode@gnu.org; Sun, 30 Apr 2023 00:48:13 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psyyp-0008G6-PY for emacs-orgmode@gnu.org; Sun, 30 Apr 2023 00:48:13 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id c747c4e2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Apr 2023 04:48:07 +0000 (UTC) References: User-agent: mu4e 1.9.22; emacs 30.0.50 To: stardiviner Cc: emacs-orgmode@gnu.org Subject: Re: [Need Help] Error to evaluate "mpv" command in inline src block Date: Sun, 30 Apr 2023 12:46:20 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682830151; a=rsa-sha256; cv=none; b=uv8NRGWsOsH1Aj/0jNev3jKPDNH0FGrF6AksEOXba5XwJ2NG97IDSXiVzYPJhThPYCe4ie Tqb9cdeWrOkyI2I+5aHxS29unwj8yys9dtZhMfKgsS82B2BuMB1kTN2OrYgp8pa+o1mLAB k7sH1VzRZVqZ4U6yGqQmB+Yvcvcxg0L8R1FPMt0wK86TbccwWKBEYX86Yx7UDiQ5BY2AGY uF5whev42G4Spdp8vVcsQ+RzjP1G+YNMdxrJXYjqFQKc4K5+O2JSAcVjk8HwpAkttw4JPS CVf2WwLBSxjga/1CcBDYKvaplguz4Yz+EH89Q0TsW9X1Im8tbYt/aXGemoZm8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682830151; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=KWamtKEzYR4WM1P+VzOZoprhQM/7qrYagVSK9wao+9M=; b=uUiw8OMuStJRY3NbJt6zn6dL/Xy1nhjdsKB1n7NMMVzGPeA4bq2j2cxdWcH9fwVFLBvsnd wj5k/TblwC0Cpha4P66c7/3REoqs+hH6jinbcu+erqI+SqF9WPv1I/kuS5qbI/opzOv124 aFwI44Y3GnALPsrxGQuBrNl84NNjT1fh2/BQfHVgAPS6T2RF6lzNGDALaJiiKxdUA0deyh kfsBtfvDloST57nItaeodSJbmSXXCO3Elx5QqfsxdnZo9RNrxyqv5H0UyEumfimFk/Zt5y kRzyEUoRgzWKzqOZN9mMg05lx7X0QuWKYDmfVF1s6093QWIstcVPuvGqO4WxpQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.00 X-Spam-Score: -2.00 X-Migadu-Queue-Id: 55C0B21AD9 X-TUID: 5MGK8ZpYQOQj stardiviner writes: > I have example Org file like bellowing. > > Here is the testing Org content: > > #+begin_src org > ,* =E3=80=8A=E6=9E=95=E5=88=80=E6=AD=8C=E3=80=8B > :PROPERTIES: > :DATE: [2021-05-13 Thu 20:09] > :Douban: https://movie.douban.com/subject/35350794/ > :DIR: =E6=9E=95=E5=88=80=E6=AD=8C > :EVAL: src_sh{mpv "=E6=9E=95=E5=88=80=E6=AD=8C/=E3=80=8A=E6=9E=95=E5= =88=80=E6=AD=8C=E3=80=8BSE05 =E6=B1=9F=E6=B5=B7=E9=98=94 =E6=AD=8C=E8=B0=A3= =E5=93=BC=E5=94=B1.mp4"} > :END: > #+end_src > > When I press Tab key to expand upper headline. I check the inline src blo= ck session buffer, here is the output: > > #+begin_example > bash-5.2$ bash-5.2$ PROMPT_COMMAND=3D;PS1=3D"org_babel_sh_prompt> ";PS2=3D > org_babel_sh_prompt> echo 'ob_comint_async_shell_start_d1cc7563-be0c-4ed0= -a4c2-d1b545333983' > mpv "=E6=9E=95=E5=88=80=E6=AD=8C/=E3=80=8A=E6=9E=95=E5=88=80=E6=AD=8C=E3= =80=8BSE05 =E6=B1=9F=E6=B5=B7=E9=98=94 =E6=AD=8C=E8=B0=A3=E5=93=BC=E5=94=B1= .mp4" > echo 'ob_comint_async_shell_end_d1cc7563-be0c-4ed0-a4c2-d1b545333983' > ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a4c2-d1b545333983 > org_babel_sh_prompt> =3D[input] No key binding found for key 'c'. > [input] No key binding found for key 'h'. > [input] No key binding found for key '''. > [input] No key binding found for key 'b'. > [input] No key binding found for key 'c'. > [input] No key binding found for key 'n'. > [input] No key binding found for key 'a'. > [input] No key binding found for key 'y'. > [input] No key binding found for key 'n'. > [input] No key binding found for key 'c'. > [input] No key binding found for key 'h'. > [input] No key binding found for key 'n'. > [input] No key binding found for key 'c'. > [input] No key binding found for key 'c'. > [input] No key binding found for key '-'. > [input] No key binding found for key 'b'. > [input] No key binding found for key 'c'. > [input] No key binding found for key '-'. > [input] No key binding found for key '-'. > [input] No key binding found for key 'a'. > [input] No key binding found for key 'c'. > [input] No key binding found for key '-'. > [input] No key binding found for key 'b'. > [input] No key binding found for key '''. > > Resuming playback. This behavior can be disabled with --no-resume-playbac= k. > > Video --vid=3D1 (*) (h264 1920x1080 25.000fps) > (+) Audio --aid=3D1 (*) (aac 2ch 48000Hz) > AO: [coreaudio] 48000Hz stereo 2ch floatp > Mute: yes > > C-c C-c> > Saving state. > > Exiting... (Quit) > org_babel_sh_prompt> echo $SHELL=20 > /bin/zsh > org_babel_sh_prompt>=20 > #+end_example > > Then I try to replace the "mpv" shell command with another command withou= t need to invoke desktop GUI. Like bellowing Org content: > > #+begin_src org > ,* =E3=80=8A=E6=9E=95=E5=88=80=E6=AD=8C=E3=80=8B > :PROPERTIES: > :DATE: [2021-05-13 Thu 20:09] > :Douban: https://movie.douban.com/subject/35350794/ > :DIR: =E6=9E=95=E5=88=80=E6=AD=8C > :EVAL: src_sh{sleep 10; echo "done"} > :END: > #+end_src > > It evaluated fine. Try putting "cat" there. I suspect something is fed into the stdin of the process. --=20 Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.]