From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14732: Package dos-mode for ELPA Date: Mon, 01 Jul 2013 19:50:00 +0300 Message-ID: <83y59qb4xz.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372697473 1822 80.91.229.3 (1 Jul 2013 16:51:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jul 2013 16:51:13 +0000 (UTC) Cc: 14732@debbugs.gnu.org To: Arni Magnusson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 01 18:51:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UthJo-0001OF-1R for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jul 2013 18:51:13 +0200 Original-Received: from localhost ([::1]:53227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UthJn-0004sc-Ib for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jul 2013 12:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UthJh-0004sO-I7 for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2013 12:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UthJf-0008Fq-8X for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2013 12:51:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UthJf-0008Eh-4K for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2013 12:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UthJe-0001Yl-G0 for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2013 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2013 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14732-submit@debbugs.gnu.org id=B14732.13726974495926 (code B ref 14732); Mon, 01 Jul 2013 16:51:02 +0000 Original-Received: (at 14732) by debbugs.gnu.org; 1 Jul 2013 16:50:49 +0000 Original-Received: from localhost ([127.0.0.1]:50663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UthJQ-0001XT-GV for submit@debbugs.gnu.org; Mon, 01 Jul 2013 12:50:49 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37985) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UthJN-0001Wn-FL for 14732@debbugs.gnu.org; Mon, 01 Jul 2013 12:50:47 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MP900100O1WJG00@a-mtaout22.012.net.il> for 14732@debbugs.gnu.org; Mon, 01 Jul 2013 19:50:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP90018KO3P4RC0@a-mtaout22.012.net.il>; Mon, 01 Jul 2013 19:50:13 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75766 Archived-At: > Date: Mon, 1 Jul 2013 01:00:02 +0000 (GMT) > From: Arni Magnusson > cc: 14732@debbugs.gnu.org > > As for the second point (why not add to `bat-generic-mode'), I have two > answers, so please pick the one you prefer: > > > (1) I would be honored to prepare a patch to improve the syntax > highlighting of `bat-generic-mode'. This patch would be based on existing > functionality in `dos-mode' and would provide: > > - highlighting of more commands: at attrib color date dir doskey endlocal > erase fc find mkdir more move popd pushd rmdir setlocal sort time title > type xcopy > > - highlighting of more control flow keywords: cmd defined else equ exit > geq gtr in leq lss neq > > - highlighting of called script: call foo > > - highlighting of %%variable: for %%X in (bark meow) do echo %%X > > - highlighting of defined variable: if defined VAR I think we prefer this alternative, thanks. However, to accept such changes into Emacs, you will need to do legal paperwork, as I don't see your assignment for Emacs on file at this time. > (2) There is more to `dos-mode' than syntax highlighting. Perhaps it would > make Emacs users happy to introduce progmodes/dos.el and obsolete > `bat-generic-mode' in the same elegant way as `javascript-generic-mode' > invokes `js-mode'. There's no need to obsolete a mode, as it isn't doing anything wrong. It just has only a small number of features. > This might also make it easier for users to discover this functionality in > Emacs. Notice that for over 4 years, there has been a discussion on > http://www.emacswiki.org/emacs/DosScripts, without anyone mentioning > `bat-generic-mode', perhaps because they were not aware of its existence. Then I guess we will have to make a better marketing effort this time. For example, we could make bat-generic-mode be the default mode for Windows batch files, which will make users acutely aware of it.