From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode Date: Sun, 14 May 2017 22:58:37 +0300 Message-ID: <5d0ea199-7ec0-93a2-65eb-90711b26c158@yandex.ru> References: <1494412509.2069441.971865104.0646ACD6@webmail.messagingengine.com> <8337ccbrar.fsf@gnu.org> <1494439153.1311720.972341016.7C2EC66A@webmail.messagingengine.com> <83o9v0a66q.fsf@gnu.org> <1494487799.3240345.972964808.43DA610E@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1494791966 5462 195.159.176.226 (14 May 2017 19:59:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 May 2017 19:59:26 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Thunderbird/53.0 Cc: emacs-devel@gnu.org To: Philipp Stephani , jostein@kjonigsen.net, Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 21:59:18 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9zfh-0001FH-Qd for ged-emacs-devel@m.gmane.org; Sun, 14 May 2017 21:59:17 +0200 Original-Received: from localhost ([::1]:33779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9zfn-0006B5-09 for ged-emacs-devel@m.gmane.org; Sun, 14 May 2017 15:59:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9zfC-0006Ao-Fg for emacs-devel@gnu.org; Sun, 14 May 2017 15:58:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9zf8-0005p8-J2 for emacs-devel@gnu.org; Sun, 14 May 2017 15:58:46 -0400 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:37975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9zf8-0005nJ-Cb; Sun, 14 May 2017 15:58:42 -0400 Original-Received: by mail-wm0-x231.google.com with SMTP id v15so25345927wmv.1; Sun, 14 May 2017 12:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=y7XPPAtQtLB/zMgrnEcEc1OW/6ok4HSS6C4gwk3wRb4=; b=kW/U8e6mSQPdmxweh805enJ057qEgMtEqP4Ty3XpvmcMd1fAyaHiy/Rznegf/JsiC2 TkHJ7FzTmKkWT2XSiHjH6QrZKn+GaKv6tHvu+bgivu3Y3OxU3lopfRkvu+4U2+FxVXgU rq0kzFyeFrmQjX3XdBH7X++JdpYIxUmzD5UUM0QeDydw/IvOyDWjWdNd4lBkqEM2JJ5D pu0l+E4pq0x3WwVDEsu/pTfrc+EeTECa3hNG5M4NGmYC3O6sNhdsA90RIhAVF2ThPcpr qH6Z2XRdsarUM0WBokC27CuhplH5XlqF9opGfJmRQt77l6xo2Lw0x9T6CRkjGr6I5hst JcnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=y7XPPAtQtLB/zMgrnEcEc1OW/6ok4HSS6C4gwk3wRb4=; b=K4TWawvP9vYw6SyGPJre99L4hwoMaIDtk5pnpvLU6JmK3oT/bmE14jJo9jtHaMQxPY SWDaXCrXYzB81W7dIRD4MnLaoXeZD30HKE0i6wUcRcHPQmdXw1sAtEu5ACFbCnOBsIhH ZSqEDtYVWWFh1rst4f5kO5lbeP0+GzBQl6KGIXr5ygInliM9WBYnyZ10V1QjljU2HH/Q wAEVa5lcTtjYkStsqZ8hW5jwARQ+SKZX33db5Gc3YBBlA/GyLMh1CXQFOhePDJcrcDeZ AAQk/aE7PE2rYhL/NOWxW3s9yeLUoosfv2aOnIF27vcQW+s0V5X6OzZabxfvMPhkfFQ0 fnYQ== X-Gm-Message-State: AODbwcCOfZymv+rSeKPnYqTJ0wCz0Ilsvrr5TFKq/yPToFnomL1V1sI2 xv5wCIprS+u+vg== X-Received: by 10.28.166.193 with SMTP id p184mr1550252wme.88.1494791920798; Sun, 14 May 2017 12:58:40 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.156]) by smtp.googlemail.com with ESMTPSA id e67sm11124676wma.9.2017.05.14.12.58.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 12:58:40 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214847 Archived-At: On 14.05.2017 22:28, Philipp Stephani wrote: > prog-mode is more of an implementation detail than an API. See e.g. the > discussion in > http://cc-mode-help.narkive.com/KcrSl9QI/standalone-cc-mode-doesn-t-run-prog-mode-hook: > "The fact that many programming lanuguage modes are derived from > prog-mode is an internal implementation detail, not a user level > feature, and users taking advantage of such things are liable to get > into trouble." That is Alan's opinion, not gospel. > I think it also represents a false dichotomy: computer languages can't > be arbitrarily classified in "programming" and "text"; it's rather a > continuum. If HTML is a "programming language", why not reStructuredText > or Markdown? All three are markup languages originally intended for > documents, with well-defined grammars. If Markdown is also a > "programming language", why not plain text files that contain similar > ad-hoc markup? In the end, we have to consider whether an average user would consider a major mode to be "programming mode". Or we might choose some other criterion. IIRC Stefan mentioned one such criterion: a mode has an indentation function that works significantly differently from indent-relative.