all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* comment-dwim on blank lines
@ 2007-11-02  1:09 Glenn Morris
  2007-11-02  1:14 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2007-11-02  1:09 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel


If comment-dwim is called on a non-blank line, it calls comment-indent
to do the work of either inserting or indenting a comment. On a blank
line, it does the work of inserting a new comment itself. Is there a
reason for this difference in behaviour?

It means that there isn't really any way for modes to customize what
comment-dwim does on blank lines, other than by abusing
indent-line-function. In particular, comment-insert-comment-function
does not get called, which seems to contradict its doc-string.

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

end of thread, other threads:[~2007-11-28  9:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02  1:09 comment-dwim on blank lines Glenn Morris
2007-11-02  1:14 ` Stefan Monnier
2007-11-02  1:47   ` Glenn Morris
2007-11-02  6:45     ` martin rudalics
2007-11-07 23:27       ` Glenn Morris
2007-11-22  3:08         ` Glenn Morris
2007-11-28  5:21           ` Glenn Morris
2007-11-28  9:15             ` martin rudalics

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.