From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IBAQBsAHOWS20gAASxT56A (envelope-from ) for ; Fri, 14 Apr 2023 09:58:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6EBABcAHOWRdBAAAG6o9tA (envelope-from ) for ; Fri, 14 Apr 2023 09:58:56 +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 40C803D021 for ; Fri, 14 Apr 2023 09:58:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnEJV-0003Cg-91; Fri, 14 Apr 2023 03:57:45 -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 1pnEJS-0003CX-TK for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 03:57:43 -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 1pnEJN-00032E-Nt for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 03:57:42 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id cf2f563f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 14 Apr 2023 07:57:34 +0000 (UTC) User-agent: mu4e 1.9.22; emacs 30.0.50 To: Emacs orgmode Subject: Major mode of orgweb/publish.sh? Date: Fri, 14 Apr 2023 15:49:49 +0800 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=1681459135; a=rsa-sha256; cv=none; b=bA12WBcgvwp7cn+N0OD1hGQHt54r/fh+sksgyYliGyKP0owhoJoNIgYYRuw0oGSN8TqoqN 5jbqftsG2uHM19cnfVJsACTf+sG0GOGg3CIujj1x+8WNeR71G+JBNVRrwXgEEl2LJSJlpZ A5yGcFkLP9/Ja5prBKhL1T1U86GrJ3RH8jEwHqpf0K+wdWL50V0rjxKOsGsCMSWKqidepJ StLJ913AehPd7ScDCFsN2ne9b5W6lkUxaDtzbrI1aNDH2EfJDhY6xAM0HLckaKw/dizlw2 jCa1fwF8TV+6B1aKaaejAeHzeQ90pUg9b8W0J1P5HKXYVPZ98Q7S5HsFkzEXCg== 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=1681459135; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=juni4pElvNpLAirGV/MGJ3zvJRvSOqM12s3w6FOq6QY=; b=Pny5Qf8hAJtxUGSbIlHxT2VUkFMApk/AIqLeCfqKNapzgxt8SFT5fMho0BT1rFwCEJdaqA +qrB6YeAYsAK4KtyjxyfHizbjTGmHxLUewEqm+2/FM3XLPEr7V8LWjlW0FAEQ0Hu0PIDIR B5rVFPzjiIL64cL/o4xO/n2eW1Uqg1jlMSxIgmCC8ogjt+VESLsDzRu49pOaJc94nk1yNf oFngVwCH3FYHcK/tiLUByhhF7whlJWAyS7gJGairh+6I6GuOX37cKrclg6Qgssk4ilraMK /bTG8z7F/abviOk7Gv6et37mXPYOjx/uEJAEKmHSwpd6dJbhoqyhZSCZl1a+mQ== X-Migadu-Queue-Id: 40C803D021 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.32 X-Spam-Score: -1.32 X-TUID: L/ZtVBHG7sSW Hello, What is the expected major mode for orgweb/publish.sh? When I open it, I see it is in `shell-script-mode'. This is what I see in orgweb/publish.sh: --8<---------------cut here---------------start------------->8--- #!/usr/bin/env sh ":" ; exec emacs --quick --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*- ... --8<---------------cut here---------------end--------------->8--- When I remove the empty line 2 and run `normal-mode', the file now opens in `emacs-lisp-mode'. I have a sneaking suspicion that `emacs-lisp-mode' is the expected major mode for this file, because there is also the `lexical-binding' variable declaration on the property line, which has no effects when the major mode is shell. -- Best, RY