1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

138 Commits

Author SHA1 Message Date
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
Stefan Monnier
2ed8e1f79e (comment-search-forward): Make sure we search forward.
(comment-enter-backward): Try and distinguish the non-matching case at
EOB from the non-matching case with a missing comment-end-skip for
a 2-char comment ender.
(comment-choose-indent): New function extracted from comment-indent.
Improve the alignment algorithm.
(comment-indent): Use it.
2007-05-08 15:59:45 +00:00
Stefan Monnier
5605893d03 (comment-search-forward): Discard comment starters before point. 2007-04-01 19:33:44 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Juanma Barranquero
7c0bbe7fa1 (comment-indent): "?\ " -> "?\s". 2006-11-27 14:01:47 +00:00
Stefan Monnier
e29d96b65f (comment-valid-prefix-p): Make the check more thorough.
From an idea by Martin Rudalics <rudalics@gmx.at>.
(comment-indent-new-line): Adjust call.
2006-10-10 00:33:16 +00:00
Juanma Barranquero
016c63b645 (comment-box): Call `comment-normalize-vars'. Add autoload cookie. 2006-08-20 12:48:19 +00:00
Richard M. Stallman
b605a60ad3 (comment-indent): Fully update INDENT
before checking to see if it will change the text.
2006-08-16 05:05:56 +00:00
Reiner Steib
631c8020a5 Move `safe-local-variable' declarations to the respective files. 2006-05-11 15:01:41 +00:00
Dan Nicolaescu
be2c62b3c2 (comment-start, comment-start-skip)
(comment-end-skip, comment-end): Mark as safe.
2006-04-20 21:24:19 +00:00
Stefan Monnier
b433a5608e (comment-add): New function.
(comment-region-default, comment-dwim): Use it.
2006-04-17 03:51:30 +00:00
Stefan Monnier
ae2c9c21a3 Docstring fixes. 2006-02-03 15:57:56 +00:00
Stefan Monnier
1cb4008915 (comment-enter-backward): Fix last fix. 2005-11-20 23:25:46 +00:00
Stefan Monnier
3cc4b07630 *** empty log message *** 2005-11-20 18:09:09 +00:00