From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 KM2tFnYMOWTqQwAASxT56A (envelope-from ) for ; Fri, 14 Apr 2023 10:19:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2AjCFnYMOWTBwQAA9RJhRA (envelope-from ) for ; Fri, 14 Apr 2023 10:19:02 +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 D55A63DB64 for ; Fri, 14 Apr 2023 10:19:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnEdP-0000AS-J5; Fri, 14 Apr 2023 04:18:19 -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 1pnEdN-0008Ve-Fl for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 04:18:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnEcv-0007nb-Lv for emacs-orgmode@gnu.org; Fri, 14 Apr 2023 04:18:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 184F024027D for ; Fri, 14 Apr 2023 10:17:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681460266; bh=XaLQ+btzBwm1FvdvFzTbk+vEFxt9KvAy+62QN0hYBos=; h=From:To:Cc:Subject:Date:From; b=RwgHx/NG30R0ruDV1GIgwN92shI+xkARXHN1XXPMGjje8pePgADdMfFwIK9CPMzWO SMT4JZfZBTauG2G4AceINUNuuqZ5lJW7MqeWxg5yzFQISQAgRLpBWW5zDcvr2Mt3Tn 6B85nLQlufCeTWVBvdQa/4d/F93ufLRjLsTQlokiGSPjqCQYg4Y/0j8bHk5YGQcSvJ sSgRySocM+AiSpis/SaCq8O58Yuw+wx8LkAUG679CSzwctneXKE+YdD8V1UgGgUxP7 kZwXML5ITNLxtSuGREnipPBPTZvrkHuPx3houlxqDwSDsQovTlDTQyuDz0wS89fs4M ZXE0DNPBURBiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PyTpK32GMz9rxF; Fri, 14 Apr 2023 10:17:45 +0200 (CEST) From: Ihor Radchenko To: Ruijie Yu Cc: Emacs orgmode Subject: Re: Major mode of orgweb/publish.sh? In-Reply-To: References: Date: Fri, 14 Apr 2023 08:20:23 +0000 Message-ID: <87edomooxk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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: , 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=1681460342; a=rsa-sha256; cv=none; b=LGtGFI0XUG+abbrSeQL/20nZWPTegvThqOEtbRWv7R36igu1r1+CIUp20dDTuFgqb/Xv9c 1JktBA/J4loyKmA6LyZwgHCbgp7Ap6aJPZ0T+Vq+BPtjhs/4naYhFTI68Tt+5LPbI71hUj A3rfNaS4nbRnbVvhHoD7HsiRrj7kCIPS19pLXJ/zQyeO/720q40S0KX4w3z5jErll0iLs0 20u+AdJ8xAxvMK+swcNgkIHM+snKAEHJoQrWNjo04EfFjEVGMzEX+MUGsndqvqpn4M2pXb bntaPsS09hCz/zJ7gJuFfTG7wgJykJE6qUHIjXUqqakO9Yxf3IZGAmyLab87Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RwgHx/NG"; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681460342; h=from:from:sender:sender: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:dkim-signature; bh=/6BOY5xKMGGYli2tJTLgedRkoPngaWddMvRRvDdL+fc=; b=NNEA7iD0Zik5pIgDHG20fvt3wICCgV/AwGAdxS9i+RBLVnAiYnqZjPe26DhhH+MSjTtLAl +Z7T3CLnbsfk4psONwuNpfA4jWiOix/WVgI3OS+KW8MlRtGX127J4Cp9FQ9J6O0x1emy2v rYGyX5b0d7D8iFsbOpdfIgJOoQP83J2F0bb5VmqBoqh0e4Shb3yfWRFbEMzEZjciyrYCvg qmQ02++e8MnIuHCotzlDysJyCnQ6Dit951/d35+NjHGYYuDLAgSn+6hGvJw0FESdvc9CBj MB3v/yM6M2HA0bigq9HaN9k1YlTTZYQdxV5yI1y2D2HlYsPx27zr0Qc8WoItlw== X-Migadu-Queue-Id: D55A63DB64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RwgHx/NG"; 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=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.81 X-Spam-Score: -5.81 X-TUID: nqxPMFEvFzGp Ruijie Yu via "General discussions about Org-mode." writes: > 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; -*- > ... The mode is technically shell-script. The file is using shell script magic to write foreign language (Elisp) script inline. > 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. You can do either way, depending on which part of the script you want to edit. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at