all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Questions about bat-generic-mode
Date: Sun, 20 Jan 2013 22:00:19 +0200	[thread overview]
Message-ID: <87fw1vr5f0.fsf@gavenkoa.example.com> (raw)
In-Reply-To: 86libqjvmz.fsf@free.fr

On 2013-01-18, Pascal Quesseveur wrote:

>>"OG" == Oleksandr Gavenko <gavenkoa@gmail.com> 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!




  reply	other threads:[~2013-01-20 20:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17 18:25 Questions about bat-generic-mode Pascal Quesseveur
2013-01-17 20:58 ` Oleksandr Gavenko
     [not found] ` <mailman.17754.1358458783.855.help-gnu-emacs@gnu.org>
2013-01-18 16:36   ` Pascal Quesseveur
2013-01-20 20:00     ` Oleksandr Gavenko [this message]
     [not found]     ` <mailman.17972.1358712041.855.help-gnu-emacs@gnu.org>
2013-01-21 10:18       ` Pascal Quesseveur
2013-01-21 10:40         ` Pascal Quesseveur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw1vr5f0.fsf@gavenkoa.example.com \
    --to=gavenkoa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.