From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode Date: Tue, 16 May 2017 18:17:58 +0700 Message-ID: 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> <87r2zqvmy9.fsf@pokyo> <1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494933541 26829 195.159.176.226 (16 May 2017 11:19:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 11:19:01 +0000 (UTC) Cc: Philipp Stephani , Tom Tromey , Eli Zaretskii , Emacs developers To: =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 13:18:57 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 1dAaVE-0006qu-UI for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 13:18:57 +0200 Original-Received: from localhost ([::1]:41297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAaVK-00054a-IR for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 07:19:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAaUh-00054J-88 for emacs-devel@gnu.org; Tue, 16 May 2017 07:18:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAaUg-00076W-DZ for emacs-devel@gnu.org; Tue, 16 May 2017 07:18:23 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:38639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAaUe-000766-Rm; Tue, 16 May 2017 07:18:20 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id v15so88177968wmv.1; Tue, 16 May 2017 04:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=RaaGVGENdhvY6EiOv9skhzGMPYCRr6Ko+3EwKEwdZ1A=; b=ZN0vuDnXIt12p+OfgIMjzxA0y8XnVyLcYkAp3XWHKTGiCVisxQ1lrlRTsV5MiUGqB5 OzL0a2XNW/uKQgyOKd/3gXKTGmRBgT/0nsJoFkEWlAkERRbrh3LOOgMMU/VGbeovnk1M KUWXLoZwHBpYALd0qGqp+GMoqF/JvRvuVka4yHk9mpmjRGzjiFB7tsOoLh5m95Jt8s/i rMrVOpMM0suBXv/lquF1PoPySwAlJmqq05O6yf+XpHw+/X7iQpZSVbPb2CZ61WudIGwy t6eUdWOHuHzQ4dk/2oRnWXYRQfto/fBuFNqKeX9gjLCzga3w6Lyr1DbFuUQH1k/8L2uZ eCCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=RaaGVGENdhvY6EiOv9skhzGMPYCRr6Ko+3EwKEwdZ1A=; b=c/lGrFNyZAAvi2wZHVsJmkfEXowu0xjUWMjA3HeZH/L75AUE0g7t2jf+dskpHwMHz9 6YJESYqtQHN+jw79LKX4YgEHpdy4Js3Ax2zT4ZQhHtnzQtIDoFBf8uLaVGrKiE4VjRhS RYSVLLJfmxuwZhhj4L14jAxiIRlMZnqb+LMpVGHD5rgFEfraTEAQ2WC5MCjeBn1o1k1D raTSGiaPh3gCyzn2P+0MR53ElWl6MCvkIXk7c8Hwblre1ADPbiqqUTpEqUnkQux9cGb4 tPpMTOewxhGTGUj/lzQ+dakBPSIE8JqdV4q35Roae73KNtY05GB3/ZuwY2uk7x5qwfO9 vm0g== X-Gm-Message-State: AODbwcAPw2MofsUqDuGyyJKbb8G8FylNliN3rEwy4NQjznQEznVbWy6h m2PxVpNmXABHmLzruC/HCvax2+vhyg== X-Received: by 10.28.87.72 with SMTP id l69mr6574765wmb.111.1494933499463; Tue, 16 May 2017 04:18:19 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Tue, 16 May 2017 04:17:58 -0700 (PDT) In-Reply-To: <1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com> X-Google-Sender-Auth: Q4FPMk5D5sZizxyqwudEAS3WAmM X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 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:214881 Archived-At: On Tue, May 16, 2017 at 5:34 PM, Jostein Kj=C3=B8nigsen wrote: > Given the amount of "negative" type replies I've gotten, I'm tempted to p= ost > a counter-challenge: If this isn't the appropriate use of prog-mode... Wh= at > would you consider the proper uses of it to be (both as a developer or > user)? I have two functions in my current Emacs configuration that run on 'prog-mode-hook. * One binds 'newline-and-indent to RET and 'newline to C-j. I suppose it is a leftover from the times before electric-indent-mode. I should get rid of it. * Another changes the value of 'whitespace-style. In text modes, I only visualize spaces, tabs and newlines; in programming modes, I also mark all kinds of coding style violations such as overly long lines, mixing tabs and spaces, and using an indentation character that disagrees with the value of 'indent-tabs-mode specific to major mode. This probably could be unified, too. The big difference here is modes that are neither text nor programming =E2=80=94 I call them application mod= es =E2=80=94 such as dired, calendar, or compilation =E2=80=94 because they do= n=E2=80=99t need even whitespace visualization. As for your cases, you mention compilation and project management. I think they are not actually programming-dependent. I bind 'recompile with a compile-command of "make" (actually a variation on that) to globally, and I use it in contexts that I don=E2=80=99t consider programming =E2=80=94 e.g. converting images between formats.