From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: Re: Should yaml-ts-mode inherit from prog-mode? Date: Sun, 5 Mar 2023 07:15:09 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 05 07:16:17 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pYhfL-0006NB-UR for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Mar 2023 07:16:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYhen-0006vW-7C; Sun, 05 Mar 2023 01:15:41 -0500 Original-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 1pYhel-0006vG-G1 for emacs-devel@gnu.org; Sun, 05 Mar 2023 01:15:39 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYhej-0001f2-PI for emacs-devel@gnu.org; Sun, 05 Mar 2023 01:15:39 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id da10so26106032edb.3 for ; Sat, 04 Mar 2023 22:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677996936; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sLm7WQNmJJTcL4g3r6o3Tk5fuZMEkWlsBFlK/GW/FqU=; b=Tud2CRC0gjjE/0Y1Zv58Swy3xHQ+IztayagpEt6QRSA8qBddDTII1Pb6X6Sys2CgcB eeXJifmMashOLIqvyA6pm67ML/k45eGqh2BbBgiSkDAkjMEDlw55EwDggnvi7kKL7Fvp KDWdriGbcqvnVN+fUf/OpQAS6sUsW1lE8O8jAbA2PYxjhslrVzf5TMVhzEoHPN1GgrlF o3JIQSCfx+GH3xGZ+Hfoavo9jUpjy/kNcXqmPYezvm3j1V7Y8bJk+wTgP4y/HpJdJVkl ysMkKeZ3TLOlq+Qd8az4X2qRW8kA5NZV19QqQIi/8GzWhSpDRVILuDj1tje2LR9DKjEU 0E7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677996936; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sLm7WQNmJJTcL4g3r6o3Tk5fuZMEkWlsBFlK/GW/FqU=; b=ceUzzmzWfhDGqhp9R/FC9GO3mGTbBJOj9ngAMCMFYL9nQ/FzkDk86ViFcwE6SBuuyv a31ZFIaWkaJPjrufU9rFI5/kK+mMiMnnAJp/W9tJxYbZD2vqpAOJTliqRRT6N5CnjDFS SM7uQyz/2tbnh9X6DMeoDdb4eeXfO7uhlMVHLvXLeVYsgaVrnWT+hC3GMoR77Wcls4Gu RokUUkOR8p/hX5uJSRXoqdBIewq+tY/Sv+ueVBglFNPW1FliYlplF4VtFT+TrJzXuv+m jlif3m0Vsz314QGoxKTdJv/BMCLxmgKrPjKXtWf1DdczKH2qfXTCXaLAtGGMYkmnRL0x Aniw== X-Gm-Message-State: AO0yUKUlvsQzMn4zY8rWNWhDtypshEJ/I+u12Bs7hXmmEtTRj8B2kMS5 xfwbVLp8e9dDL+BVYw7qRSDwyU8cDq07wR0PAdqzCZ1SzlHQng== X-Google-Smtp-Source: AK7set99W0vsL8nBYk2blGZWuSsUCumqt9OK3u7qmiN5hf8zBxqf1G/4jocUT8AABszFhaLNkYnpOZVr4is4n5KE+h8= X-Received: by 2002:a17:906:a1c5:b0:8f0:147b:be2 with SMTP id bx5-20020a170906a1c500b008f0147b0be2mr2976282ejb.4.1677996935854; Sat, 04 Mar 2023 22:15:35 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=paaguti@gmail.com; helo=mail-ed1-x532.google.com 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303963 Archived-At: On Mar 3, 2023, Yuan Fu wrote: >> On Mar 3, 2023, at 1:00 AM, Rudolf Schlatte wrote: >> >> Philip Kaludercic writes: >> >>> Deriving from prog-mode or from text-mode doesn't mean much in practice= . >>> I see it as less of a formal taxonomy of programming languages, and mor= e >>> of a convenience measure to make changes that (vaguely speaking) "all >>> programming modes" or "all text-related modes" have in common. E.g. I >>> have this in my init.el: >>> >>> (add-hook 'text-mode-hook #'flyspell-mode) >>> (add-hook 'prog-mode-hook #'flyspell-prog-mode) >> >> Similarly, I use variable-width fonts for text mode buffers and fixed >> width fonts for prog-mode buffers. Since in yaml indentation is >> significant, it would be preferrable for me to have yaml-mode inherit >> from prog-mode, if only for convenience's sake. >> >> >Agreed. I think of prog-mode as =E2=80=9Cprogramming mode=E2=80=9D as oppo= sed to =E2=80=9Cprose mode=E2=80=9D, aka text-mode. In that sense, deriving= from prog-mode makes more sense to me. >In text related to programming, one would assume monospace font, flyspell-= prog-mode, structured text, etc. >Yuan 1+ And that should also be applicable to 'non-ts' yaml-mode. Best, /PA --=20 Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet