all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [cperl-mode] cperl-indent-for-comment
@ 2010-05-05 19:42 LanX
  2010-05-06  0:17 ` cperl-indent-for-comment LanX
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: LanX @ 2010-05-05 19:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

Two questions;

1) I wanna make # more DWIM and automatically doing an indent-for-
comment when at the end of the line. I thought about
  a) checking if the preceding character was a ";" or a paren.
and
  b) checking with describe-text-property that I'm not within a string
or regex.

is b) the recommended way to do this?

2) cperl-indent-for-comment produces weird results when started within
a Perl-string (M-;), it indents but repeated calls  produce a multiple
concatenated "# " at the end.

Is this the intended functionality???

Cheers
  Rolf


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

end of thread, other threads:[~2010-05-14 16:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 19:42 [cperl-mode] cperl-indent-for-comment LanX
2010-05-06  0:17 ` cperl-indent-for-comment LanX
2010-05-06 20:01 ` [cperl-mode] cperl-indent-for-comment Ilya Zakharevich
2010-05-06 21:39   ` cperl-indent-for-comment LanX
2010-05-09  0:21     ` cperl-indent-for-comment Ilya Zakharevich
2010-05-10 12:58       ` cperl-indent-for-comment LanX
2010-05-10 23:56         ` cperl-indent-for-comment Ilya Zakharevich
2010-05-14 16:08           ` [cperl] electric-backspace and variable-refactoring LanX
2010-05-07  2:35 ` [cperl-mode] cperl-indent-for-comment Stefan Monnier

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.