Glenn Morris
2a1e24765b
Replace version 24.2 with 24.3 where appropriate (hopefully)
2012-08-15 09:29:11 -07:00
Stefan Monnier
28be5ce7b0
* loadup.el: Preload newcomment.el.
...
* newcomment.el: Move autoload-only code to toplevel.
2012-05-07 16:48:41 -04:00
Glenn Morris
2311d8e5a6
Merge from pending; try to fix-up suboptimal ses ChangeLog.
2012-04-16 20:06:56 -07:00
Chong Yidong
fb7ada5f94
Remove * characters from the front of variable docstrings.
2012-04-09 21:05:48 +08:00
Stefan Monnier
699c782b76
Merge from trunk
2012-03-25 16:37:21 -04:00
Stefan Monnier
98fb480ee3
* lisp/newcomment.el (comment-inline-offset): Don't autoload.
...
(comment-choose-indent): Obey comment-inline-offset.
2012-03-25 14:41:06 -04:00
Philipp Haselwarter
8eb5d48f36
* lisp/newcomment.el (comment-inline-offset): New custom var.
...
(comment-indent): Use it.
Fixes: debbugs:11090
2012-03-25 14:37:24 -04:00
Stefan Monnier
b9d0879b49
* lisp/newcomment.el (comment-choose-indent): No space after BOL.
2012-03-22 22:46:31 -04:00
Chong Yidong
1339bf4302
* lisp/newcomment.el (comment-styles): Add autoload.
...
Fixes: debbugs:10868
2012-02-25 11:08:39 +08:00
Juanma Barranquero
3fe58f4f9c
lisp/newcomment.el (uncomment-region-default): Remove unused binding.
2012-02-21 15:48:13 +01:00
Lawrence Mitchell
eb864a71bd
* lisp/newcomment.el (uncomment-region-default): Don't leave extra space
...
when an arg is provided.
Fixes: debbugs:8150
2012-02-17 10:44:32 -05:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Chong Yidong
d473dce830
Fix for uncommentin in Fundamental mode.
...
* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.
Fixes: debbugs:8424
2011-09-18 14:10:01 -04:00
Stefan Monnier
1b8b395447
* newcomment.el (comment-add, comment-valid-prefix-p): Docfix.
2011-09-14 17:21:59 -04:00
Chong Yidong
bfbbace74b
* lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659).
2011-05-28 19:07:43 -04:00
Glenn Morris
f64049c602
* lisp/newcomment.el (comment-kill): Prefix "unused" local.
2011-05-11 09:37:03 -07:00
Stefan Monnier
ba83908c4b
Misc fixes, and use lexical-binding in more files.
...
* lisp/subr.el (letrec): New macro.
(with-wrapper-hook): Move from lisp/simple.el and don't use CL.
* simple.el (with-wrapper-hook): Move with-wrapper-hook to subr.el.
* lisp/help-fns.el (help-function-arglist): Handle subroutines as well.
(describe-variable): Use special-variable-p to filter completions.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't expand `declare'
in defmacros.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Handle `declare'.
* lisp/emacs-lisp/cl.el (pushnew): Silence unfixable warning.
* lisp/emacs-lisp/cl-macs.el (defstruct, define-compiler-macro):
Mark unused arg as unused.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Use memq.
* lisp/emacs-lisp/autoload.el (make-autoload): Don't assume the macro's
first sexp is a list.
(autoload-generate-file-autoloads): Improve error message.
* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist
to understand the new byte-code arg format.
* lisp/vc/smerge-mode.el:
* lisp/vc/log-view.el:
* lisp/vc/log-edit.el:
* lisp/vc/cvs-status.el:
* lisp/uniquify.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/bibtex-style.el:
* lisp/reveal.el:
* lisp/newcomment.el:
* lisp/emacs-lisp/smie.el:
* lisp/abbrev.el: Use lexical-binding.
* src/eval.c (Fprog1, Fprog2): Simplify and use XCDR/XCAR.
(Fdefvar): Remove redundant SYMBOLP check.
(Ffunctionp): Don't signal an error for undefined aliases.
* doc/lispref/variables.texi (Converting to Lexical Binding): New node.
2011-03-11 15:04:22 -05:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0
Nuke arch-tags.
2011-01-15 15:16:57 -08:00
Stefan Monnier
6d3d611343
* lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.
...
(smerge-resolve--normalize-re): New var.
(smerge-resolve--extract-comment, smerge-resolve--normalize): New funs.
(smerge-resolve): Use them.
* lisp/newcomment.el (comment-only-p): New function.
(comment-or-uncomment-region): Use it.
2011-01-14 13:10:15 -05:00
Stefan Monnier
77ab81d054
Merge from emacs-23
2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Stefan Monnier
ee9355dcc8
* lisp/newcomment.el (comment-styles): Add docs to each style.
...
Improve docstring.
(comment-style): Use comment-styles's docs to describe values.
Fixes: debbugs:7509
2010-12-03 18:14:50 -05:00
Lars Magne Ingebrigtsen
23737b4aee
* newcomment.el (comment-dwim): Fix the intentation in the doc string.
2010-10-21 22:12:38 +02:00
Chong Yidong
266a86bd7f
Merge changes from emacs-23 branch
2010-09-23 15:00:31 -04:00
Stefan Monnier
c9805d2356
* lisp/newcomment.el (comment-normalize-vars): Better test validity of
...
comment-end-skip.
2010-09-21 15:09:22 +02:00
Chong Yidong
bd78fa1d54
Add "Package:" file headers to denote built-in packages.
2010-08-29 12:17:13 -04:00
Stefan Monnier
f0b7054e23
* lisp/newcomment.el (comment-add): Move comment to docstring.
2010-08-17 21:38:30 +02:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Dan Nicolaescu
aaa448c984
* widget.el (define-widget): Purecopy the docstring.
...
* international/mule-cmds.el (charset): Do not purecopy the
docstring here, define-widget does it.
* textmodes/texinfo.el (texinfo-open-quote, texinfo-close-quote):
* textmodes/bibtex-style.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/compile.el (compile-command):
* language/korea-util.el (default-korean-keyboard):
* international/mule-conf.el (file-coding-system-alist):
* emacs-lisp/eldoc.el (eldoc-minor-mode-string):
* tooltip.el (tooltip-frame-parameters):
* newcomment.el (comment-end, comment-padding):
* dired.el (dired-trivial-filenames):
* comint.el (comint-file-name-prefix): Purecopy initial values.
2009-11-11 19:24:20 +00:00
Juanma Barranquero
32226619c5
Use called-interactively-p' instead of
interactive-p'.
2009-10-02 03:48:36 +00:00
Chong Yidong
707f4689ea
* newcomment.el (comment-region): Doc fix (Bug#3370).
2009-05-26 03:16:31 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Dan Nicolaescu
3976387b54
(comment-style): Default to `indent'. (Bug#1589)
2008-12-18 09:24:20 +00:00
Glenn Morris
eb3fa2cfcf
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 08:06:51 +00:00
Stefan Monnier
33d71ec3b1
(comment-enter-backward): Be careful to restore point changed during narrowing.
2008-04-03 22:26:39 +00:00
Miles Bader
56388398e7
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
2008-03-10 00:49:47 +00:00
Stefan Monnier
bbcedd0514
(comment-kill): Docstring improvement.
2008-03-03 21:20:21 +00:00
Miles Bader
59ce725a3b
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea
Add 2008 to copyright years.
2008-01-07 02:45:14 +00:00
Richard M. Stallman
9f15f6766b
(comment-region-default): Don't triple the
...
comment starter if the first region line isn't indented enough.
2007-12-22 18:39:16 +00:00
Glenn Morris
53dd1d5387
Martin Rudalics <rudalics at gmx.at>
...
(comment-region-internal): Fix newline insertion in `block' case.
2007-11-28 05:20:33 +00:00
Glenn Morris
eb0c4c3084
(comment-dwim): Call comment-insert-comment-function, if defined, for
...
blank lines. Doc fix.
2007-11-03 03:00:32 +00:00
Glenn Morris
b9b4d12c5f
(comment-indent): Let comment-insert-comment-function,
...
if defined, do all the work of inserting a new comment.
2007-11-02 08:10:40 +00:00
Richard M. Stallman
c391a81ff3
(comment-styles): New style indent-or-triple.
...
(comment-style): Make that the default.
(comment-add defvar): Doc fix.
(comment-add): Delete arg EXTRA.
(comment-region-default): Open code call to comment-add.
Handle indent-or-triple style which uses `multi-char' for INDENT.
2007-10-26 09:52:12 +00:00
Stefan Monnier
b294361625
(comment-choose-indent): New function extracted
...
from comment-indent. Improve the alignment algorithm.
(comment-indent): Use it.
2007-09-28 01:59:40 +00:00
Richard M. Stallman
7f821b7938
(comment-add): If EXTRA, double `comment-add' value.
2007-09-20 16:32:26 +00:00
Richard M. Stallman
5266b06b4f
(comment-add): New arg EXTRA.
...
(comment-region-default): Pass EXTRA if not indenting lines.
2007-09-17 16:40:58 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c
Switch license to GPLv3 or later.
2007-07-25 04:50:21 +00:00