From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 0JkLCMMcOWRPCwEASxT56A (envelope-from ) for ; Fri, 14 Apr 2023 11:28:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GAk8B8McOWSgZgEAG6o9tA (envelope-from ) for ; Fri, 14 Apr 2023 11:28:35 +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 6013223F9D for ; Fri, 14 Apr 2023 11:28:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnFi4-0001UJ-Cb; Fri, 14 Apr 2023 05:27:13 -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 1pnFi2-0001U5-3v for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 05:27:10 -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 1pnFhy-0006Hq-Ft; Fri, 14 Apr 2023 05:27:09 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 9d096909 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 14 Apr 2023 09:27:02 +0000 (UTC) References: <87a5zaookb.fsf@localhost> User-agent: mu4e 1.9.22; emacs 30.0.50 To: Ihor Radchenko Cc: Bastien , emacs-orgmode@gnu.org Subject: Re: Major mode of orgweb/publish.sh? Date: Fri, 14 Apr 2023 17:20:09 +0800 In-reply-to: <87a5zaookb.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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 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=1681464514; a=rsa-sha256; cv=none; b=Yew/rkPpY9fA6amh8B3N6FdxjqdJCsI0jqwZOMJaLfDsMFM/1jHdpFOp7gbG/yoLKFmLME rYnwNkZ1O+uGb7vCkWAfazsL8zrqVKwiKQDXW2mXP/rBkjr11TyIgYlh9YeqEKkh85l2Jp hAi9Kd/cgp7TCsxDc83/mAPnNgokIz8zArHqpc0NwDGuAidWB1f20+stzn7kF8sr8xP3fm tHatGNQUTG77il0D0WbE/P6j6GI7Us8Ulw3bSaTUePYfLkR3dpyfzXpOAgY8BT86xLLszx b27qcIvlB+45XtukboMCQea1It0SAVtgNzoEMNwLcwaXSY/S6Npbj4jD0z7z3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681464514; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Rgd5ZGiECS4poSrv0J8d85suHe5hvTxtTyQC5CLfSH0=; b=EYIXb18mkaQSMbMlhbY1E1dwF2OlH8AILfe+OvK1qTk8NXQdKcOzALRm0/fMFr9VxN6LMH Ebf5I+tSQU8WjUGC4g5z1p1Sm8GM0ZY9G26rynlaOh12dtIUoe3tDCwVgXcEE98xpL2wIV ZVt+lnmNqhYdG8x9MbRh0wfDaUrZYZ9nSo/5rLza2HCCfI16TcW0hfUKppwIKT01R5MhNp Rt1pqrIWBM0jKpS5MJx4bfh9PWIGkws/hlEF7wNVIsHWSy7MN9IC70uaGHtvQiBgIXx6qK YL+SEz8ydQpOWdbWibNa22rTuAF/0ZcHD6ymYJL26zT1UHxOUQCUtbzzlJlFkg== X-Migadu-Queue-Id: 6013223F9D Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.52 X-Spam-Score: -1.52 X-TUID: QjEiyTW2D0MJ Ihor Radchenko writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Major mode was erronously set to shell-script-mode because of the empty line. > > There is no error there. The line in question is inline stdin redirect > in shell. "#..." is what is fed to exec emacs. There is no intention to > define mode for publish.sh there, just a standard Elisp script header. Instead of "inline stdin redirect", this instead just passes Emacs the file name and Emacs just reads from the file again. I was about to propose changing the shbang line into just #!/usr/bin/emacs -x, but even though the --help text says this is exactly the case to use it, running such a script opens up a graphical terminal which is unexpected. But regardless, I don't quite care about it as long as it does its job (other than the fact that I need to `M-x emacs-lisp-mode RET' at its current state, and the concern that the lexical binding property line takes effect neither in-buffer nor during script execution), so I'll let you or Bastien decide whether doing anything about the first few lines is worth it. >> Converted the `load' into `require' because it allows someone working on a local >> repo to `eval-buffer' successfully, given that the individual installs these >> dependencies from GNU/NonGNU Elpa. Previously, due to the hard-coded path, >> `eval-buffer' would not be successful. > > Looks reasonable, but I will let Bastien decide on this. He is the > author of this file. Sounds good. Let's wait for that, along with his confirmation that my copyright process is complete. -- Best, RY