all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wrapping code in a try/except
@ 2010-11-03 10:13 Andrea Crotti
  2010-11-03 10:51 ` Andreas Röhler
  2010-11-04  6:09 ` Kevin Rodgers
  0 siblings, 2 replies; 10+ messages in thread
From: Andrea Crotti @ 2010-11-03 10:13 UTC (permalink / raw)
  To: help-gnu-emacs

It would be nice sometimes to be able to wrap multiple lines

istruction1();
istruction2();

in something like

try {
    istruction1();
    istruction2();
} except ...

I can use for example
(kill-region (point) (mark))

then insert what the construct and yank what I killed, but I would
rather use a yasnippet snippet for it, but I can't use a snippet since
while I'm writing I don't have a region selected...

Should I create a command instead? Or is there something for these kind
of things?




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-11-23 14:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1.1288779213.27562.help-gnu-emacs@gnu.org>
2010-11-04 19:17 ` Wrapping code in a try/except Stefan Monnier
2010-11-03 10:13 Andrea Crotti
2010-11-03 10:51 ` Andreas Röhler
2010-11-19 14:39   ` Andrea Crotti
2010-11-19 18:27     ` Andreas Röhler
2010-11-19 20:50       ` Andrea Crotti
2010-11-20 17:11         ` Andreas Röhler
2010-11-23 10:19           ` Andrea Crotti
2010-11-23 14:32             ` Andrea Crotti
2010-11-04  6:09 ` Kevin Rodgers

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.