all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: SameerDS <sameerds@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: inserting code based on syntactic information in cc-mode
Date: Mon, 23 Nov 2009 01:58:10 -0800 (PST)	[thread overview]
Message-ID: <e9ea97f9-f2ba-4aa0-bfb3-2a36859f7044@g22g2000prf.googlegroups.com> (raw)
In-Reply-To: slrnhgkmas.e3o.joostkremers@j.kremers4.news.arnhem.chello.nl

On Nov 23, 2:44 pm, Joost Kremers <joostkrem...@yahoo.com> wrote:
> SameerDS wrote:
> > I want to write elisp functions that can insert code based on the
> > syntactic information at the point where they are invoked.
>
> this is not entirely what you describe, but it may be more useful even:
>
> http://code.google.com/p/yasnippet/

Indeed, that seems like something I definitely want to use ... thanks
for the pointer! But it is only half the solution. Rather than
remembering abbrevs for code snippets or even binding them to keys, I
would like to write glue logic that selects the correct snippet based
on what I am typing! Hence the need to inspect local syntactic
information ...

-- Sameer.
http://sameer.sbuddhe.net/


  reply	other threads:[~2009-11-23  9:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23  9:38 inserting code based on syntactic information in cc-mode SameerDS
2009-11-23  9:44 ` Joost Kremers
2009-11-23  9:58   ` SameerDS [this message]
2009-11-23 10:42 ` Pascal J. Bourguignon
2009-11-23 11:03   ` SameerDS
2009-12-11 11:16   ` SameerDS
2009-12-11 16:42     ` Lennart Borgman
2009-12-11 17:09     ` harven
2009-12-11 18:38 ` Alan Mackenzie
2009-12-12  3:14   ` SameerDS

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=e9ea97f9-f2ba-4aa0-bfb3-2a36859f7044@g22g2000prf.googlegroups.com \
    --to=sameerds@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.