From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Questions about bat-generic-mode Date: Sun, 20 Jan 2013 22:00:19 +0200 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Message-ID: <87fw1vr5f0.fsf@gavenkoa.example.com> References: <86622vll9k.fsf@free.fr> <86libqjvmz.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358712044 25633 80.91.229.3 (20 Jan 2013 20:00:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 20:00:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 21:01:03 2013 Return-path: Envelope-to: geh-help-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 1Tx14g-00041u-Aj for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 21:01:02 +0100 Original-Received: from localhost ([::1]:40755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx14P-0007xj-FR for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 15:00:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx14I-0007xS-UI for help-gnu-emacs@gnu.org; Sun, 20 Jan 2013 15:00:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx14H-0007ay-Mq for help-gnu-emacs@gnu.org; Sun, 20 Jan 2013 15:00:38 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx14H-0007at-Gc for help-gnu-emacs@gnu.org; Sun, 20 Jan 2013 15:00:37 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tx14W-0003zH-9C for help-gnu-emacs@gnu.org; Sun, 20 Jan 2013 21:00:52 +0100 Original-Received: from 37.229.4.200 ([37.229.4.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jan 2013 21:00:52 +0100 Original-Received: from gavenkoa by 37.229.4.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jan 2013 21:00:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.229.4.200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:GzehQo+xWRJt3xan9r9U519BU+o= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88739 Archived-At: On 2013-01-18, Pascal Quesseveur wrote: >>"OG" == Oleksandr Gavenko writes: > > OG> Its nice thing but you know that :: is an very undocumented hack > OG> (invalid label): > > It is not so undocumented. I didn't mean replacing rem by :: in > generic-bat-mode-setup-function but it would be nice to be able to > change the default value. I haven't found a way to change it without > modifying the function. > 3 years ago I also have desire to make patch that provide highlighting of '::' as comment syntax and want 'M-;' (comment-dwim) be able uncomment such regions as I involved in project with many batch files with such commenting style... > OG> Send a patch by M-x report-emacs-bug. > > I am not a Windows expert and I dare not submit a patch without > knowing better the Windows com. For instance I discovered today that > echo( works like echo. and is sometimes considered better. There a lot of batch-file modes for Emacs: http://www.emacswiki.org/emacs/DosScripts * http://emacswiki.org/emacs/batch-mode.el * http://emacswiki.org/emacs/cmd-mode.el I don't try them as don't like any external dependency (but "apt-get install" accept). So stuck with bat-generic-mode. Feature that I like and which is missing is an indentation for batch parentheses syntax: if exist file.txt ( echo xxx ) else ( echo yyy ) -- Best regards!