From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YDA6OmELOWTPPgAASxT56A (envelope-from ) for ; Fri, 14 Apr 2023 10:14:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AAYaOmELOWTsgwAAauVa8A (envelope-from ) for ; Fri, 14 Apr 2023 10:14:25 +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 C6984698 for ; Fri, 14 Apr 2023 10:14:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnEYU-0006bz-K7; Fri, 14 Apr 2023 04:13:14 -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 1pnEYS-0006bo-25 for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 04:13:12 -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 1pnEYP-0006hc-Sj for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 04:13:11 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id d96d205c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 14 Apr 2023 08:13:07 +0000 (UTC) References: User-agent: mu4e 1.9.22; emacs 30.0.50 To: Ruijie Yu Cc: emacs-orgmode@gnu.org Subject: Re: Major mode of orgweb/publish.sh? Date: Fri, 14 Apr 2023 16:11:58 +0800 In-reply-to: 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=1681460065; a=rsa-sha256; cv=none; b=ndi5tAehcWM12EVVeX/JDWhIP3Bv0e2PwJGfW20WwcW51fZ2QnU0ggWkL/jpyiRgJWo8Nb 3BlHQzwpL/nnMoiitxxVlL3xdvlZpcWk9jfPjrmvO/pUmwIZL85tJXLFJx40EDSjapN9Jr qw7cGwiuPTOzlQJBPC6spSSlnldCV6LO8psLjprbA+qXEs9Op8Ggc5cezGt0ZRVmMsVVRw yGJj+3ULMNTqdP8lrPGk76Jlx+7Ei/VLqXLQaxDda99WLN+Kyy+woS3aBhFet/8Pa75jgm 9/1ODgg59IBl8CXmZt5B8LO5ekteRaoDrmFVsOMDs9UkUpLzIOwoi3tI5HEUrQ== 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=1681460065; 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=qc1/krP0hs6J6i6Ver1qH2g6++3R2yPFRBmIrxXamaM=; b=Q4Wajjk4G4/wcF+guc01XaQ0PIFUO5YFcken8qcLKIAySY9LJ44fU1oLLwwUCsjIOgYbJd MiwzMs/Jaweqe0bNv0L9yg0qzWa0bsIcX3ruJvni8YX5j0NR2PQB4PYLyLjSr9Gi3NpgYw A5QiFZBbuzMNZBSy7kzKGfoJ+Bfq36W6zbFdNJZ56mB90y90RmDvJoDdWfIOrNnnA1n8HL qCN1gED6NtqzZcVIRS3/c0OQgYBSz5AYUsNaq3XV30DpCQhRWcIMxBgME83ifwTP8+MInJ w7oqOnWhAyhqFZGP7xK86xoEmGdWDVUCd5ALyxAtuRNbqne3U7I/ULmPGhkQ0Q== X-Migadu-Queue-Id: C6984698 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: tMzkpzGedBOm Ruijie Yu via "General discussions about Org-mode." writes: > 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. In case I am right, I'll send a patch for this and another issue I find for review shortly. -- Best, RY