From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Heuristics for: is a major-mode a "programming language" mode?
Date: Thu, 16 Sep 2010 23:40:05 +0000 (UTC) [thread overview]
Message-ID: <slrni95aml.l51.nospam-abuse@powdermilk.math.berkeley.edu> (raw)
In-Reply-To: 50407747-1f13-43c4-bb9a-ac53afdeca19@g6g2000pro.googlegroups.com
On 2010-09-15, Xah Lee <xahlee@gmail.com> wrote:
> On Sep 15, 2:28 am, Ilya Zakharevich <nospam-ab...@ilyaz.org> wrote:
>> I want a certain keypress act as forward-sexp in "programming
>> language" modes, and as forward-sentence (sp?) in other modes
>> (likewise for go-to-function-begin (sp?) and forward-paragraph (sp?)).
>>
>> So there must be some code which decides "which type" is the given
>> major mode. I would prefer the bulk of the decision to be made
>> programmatically, THEN let the user override if the auto-choice was
>> wrong. Anyone with ideas how to do this?
>
> a fool's answer: wouldn't just search for all the [] and {} heuristic
> works pretty much?
>
> most top 10 langs follow c-like syntax, so am guessing checking some
> () {} would work out...
I'm puzzled: "search for [] {}" WHERE?
Thanks,
Ilya
prev parent reply other threads:[~2010-09-16 23:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-15 9:28 Heuristics for: is a major-mode a "programming language" mode? Ilya Zakharevich
2010-09-15 13:12 ` Tim X
2010-09-15 14:27 ` Stefan Monnier
2010-09-15 14:43 ` Xah Lee
2010-09-15 15:08 ` Stefan Monnier
2010-09-15 15:32 ` Xah Lee
2010-09-15 23:22 ` Stefan Monnier
2010-09-16 23:43 ` Ilya Zakharevich
2010-09-17 9:50 ` Stefan Monnier
2010-09-16 23:40 ` Ilya Zakharevich [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrni95aml.l51.nospam-abuse@powdermilk.math.berkeley.edu \
--to=nospam-abuse@ilyaz.org \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).