[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comment-dwim on blank lines
From: |
Glenn Morris |
Subject: |
comment-dwim on blank lines |
Date: |
Thu, 01 Nov 2007 21:09:53 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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.
- comment-dwim on blank lines,
Glenn Morris <=
- Re: comment-dwim on blank lines, Stefan Monnier, 2007/11/01
- Re: comment-dwim on blank lines, Glenn Morris, 2007/11/01
- Re: comment-dwim on blank lines, martin rudalics, 2007/11/02
- Re: comment-dwim on blank lines, Glenn Morris, 2007/11/07
- Re: comment-dwim on blank lines, Glenn Morris, 2007/11/21
- Re: comment-dwim on blank lines, Glenn Morris, 2007/11/28
- Re: comment-dwim on blank lines, martin rudalics, 2007/11/28