From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dario Gjorgjevski Newsgroups: gmane.emacs.bugs Subject: bug#44592: In sh-script-mode, should the syntax of . and / be made symbol? Date: Thu, 12 Nov 2020 14:49:32 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32928"; mail-complaints-to="usenet@ciao.gmane.io" To: 44592@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 12 14:50:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdCzS-0008RB-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Nov 2020 14:50:18 +0100 Original-Received: from localhost ([::1]:58304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdCzR-0002SR-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Nov 2020 08:50:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdCzC-0002Jx-3o for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 08:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdCzB-0002Rf-QC for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 08:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdCzB-0003Rk-Oi for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 08:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dario Gjorgjevski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Nov 2020 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44592 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160518899113222 (code B ref -1); Thu, 12 Nov 2020 13:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Nov 2020 13:49:51 +0000 Original-Received: from localhost ([127.0.0.1]:44012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdCz0-0003RC-US for submit@debbugs.gnu.org; Thu, 12 Nov 2020 08:49:51 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdCyv-0003R2-U2 for submit@debbugs.gnu.org; Thu, 12 Nov 2020 08:49:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdCyv-00022k-8x for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 08:49:45 -0500 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:54885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdCyp-0002IT-KP for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 08:49:44 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id d142so5320727wmd.4 for ; Thu, 12 Nov 2020 05:49:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=8CITMzjxqNaRhOkVQaFqNp+6qHNIrqhBYHy4E6QYs/8=; b=aS9dhplxLzYlf0WZVXS6kYwAylzMz2wweODLpxTZF+7XR68gyuOnzhJSe12cobqbKP 2nPKJK4rzKeEVRwPS3XGENSrOKmzNDeweitoHgP5A2rz6kiHcP2sSPHfAGrryL3HhtJw b5C69yL6KeLjM6AfJ3jLe/0QRY7NkIcb81VeKfDcZStucinCkm0BmLs8iGo5TxPmGVZB KcTIF0hCrf5NVOw8oBJ4QcPwz5auawE7x0UzemiFzsM+gvl+Up2IULpY52TZDsiKWT7x ojadz8RG3rogniB5YwzTQrnSxeQv2wkbMVFWmzM+YxEU2HzfHwbubT3W+i670nijTcE9 OmSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=8CITMzjxqNaRhOkVQaFqNp+6qHNIrqhBYHy4E6QYs/8=; b=e99VFZrG9g5SXl4gNru1jl0l4fafJq2eNnwM78OOwZRQgWCJ7ugKPrwSi7XcqR7/IR f2+HamIOEOBYNbTlvEBtLa/6csvLATX3uSPTsuw/O6/nGOdKi9puQU3dWnQ9938xITSP O1oZFLIc60aDe6Iaw823AE9ux0Hajzi6Zp/X5Anw20DiM4n1gACRZ2RR3bt/A1k/rWpB Ef9zWWM3DPoadC4q1x4kK9apjI+kV35yWcU/T8Y/3B1ytlC3UQGw7wQ0NI4RjvYeiP0u ftkBo8JOpnrTyKRhCMDhVaPcSzoJvdDt2sP/VlZRYpZ9YdrQOk0kiVDy9m2N7jBm0dNl fOew== X-Gm-Message-State: AOAM532F8lyigsA15MIOYEFfjk76113xJ10qQYpDbXuk0L3YhuTr4ItX vZN4q5dLKKOaiwyYal45hIafDfRFep0= X-Google-Smtp-Source: ABdhPJwaCjJ6z0LohAPVwk1RBveVMV0wJEYsZ0x3MolswBm+elRcofkJ2+Wdm5KJETxOk335XTPThg== X-Received: by 2002:a1c:2b03:: with SMTP id r3mr9394283wmr.184.1605188974178; Thu, 12 Nov 2020 05:49:34 -0800 (PST) Original-Received: from ZALANDO-31298 (p200300e9770cc086cc3651117f379878.dip0.t-ipconnect.de. [2003:e9:770c:c086:cc36:5111:7f37:9878]) by smtp.gmail.com with ESMTPSA id m20sm8077533wrg.81.2020.11.12.05.49.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Nov 2020 05:49:33 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=dario.gjorgjevski@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193158 Archived-At: In the syntax table of sh-script-mode, the syntax of . and / is punctuation. This has the advantage of being able to use, e.g., kill-sexp to kill one component of a path. However, it also has the disadvantage of not correctly indenting line continuations when a path to a command is given. As an example, consider: relative-path/to/configure --prefix=$prefix \ --with-x \ --with-x-toolkit=gtk3 \ --with-cairo (This is how I would expect it to be indented.) Currently, sh-script-mode would consider only relative-path to be the first sexp on the leading line and therefore indent it as: relative-path/to/configure --prefix=$prefix \ --with-x \ --with-x-toolkit=gtk3 \ --with-cairo Changing the syntax of . and / to symbol would make the entire relative-path/to/configure be considered the first sexp and therefore give the correct indentation show above. Moreover, one would then be able to use, e.g., kill-sexp to kill a full path as opposed to just one component. What do you think? Alternatively, we could work on fixing only the SMIE-provided indentation and leave the syntax as it is. Best regards, Dario -- $ keyserver=hkps://hkps.pool.sks-keyservers.net $ keyid=744A4F0B4F1C9371 $ gpg --keyserver $keyserver --search-keys $keyid