summaryrefslogtreecommitdiff
path: root/lisp/newcomment.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix for uncommentin in Fundamental mode.Chong Yidong2011-09-181-1/+2
| | | | | | | * newcomment.el (comment-normalize-vars): If prompting for comment-start, set comment-start-skip too. Fixes: debbugs:8424
* * newcomment.el (comment-add, comment-valid-prefix-p): Docfix.Stefan Monnier2011-09-141-3/+3
|
* * lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659).Chong Yidong2011-05-281-1/+1
|
* * lisp/newcomment.el (comment-kill): Prefix "unused" local.Glenn Morris2011-05-111-1/+1
|
* Misc fixes, and use lexical-binding in more files.Stefan Monnier2011-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* * lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.Stefan Monnier2011-01-141-4/+7
| | | | | | | | (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.
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | * lisp/newcomment.el (comment-styles): Add docs to each style.Stefan Monnier2010-12-031-12/+52
| | | | | | | | | | | | | | Improve docstring. (comment-style): Use comment-styles's docs to describe values. Fixes: debbugs:7509
* | * newcomment.el (comment-dwim): Fix the intentation in the doc string.Lars Magne Ingebrigtsen2010-10-211-2/+2
| |
* | Merge changes from emacs-23 branchChong Yidong2010-09-231-1/+2
|\ \ | |/
| * * lisp/newcomment.el (comment-normalize-vars): Better test validity ofStefan Monnier2010-09-211-1/+2
| | | | | | | | comment-end-skip.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * lisp/newcomment.el (comment-add): Move comment to docstring.Stefan Monnier2010-08-171-5/+5
|/
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * widget.el (define-widget): Purecopy the docstring.Dan Nicolaescu2009-11-111-2/+2
| | | | | | | | | | | | | | | | | * 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.
* Use `called-interactively-p' instead of `interactive-p'.Juanma Barranquero2009-10-021-2/+2
|
* * newcomment.el (comment-region): Doc fix (Bug#3370).Chong Yidong2009-05-261-5/+9
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (comment-style): Default to `indent'. (Bug#1589)Dan Nicolaescu2008-12-181-1/+2
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (comment-enter-backward): Be careful to restore point changed during narrowing.Stefan Monnier2008-04-031-4/+5
|
* Merge from emacs--rel--22Miles Bader2008-03-101-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
| * (comment-kill): Docstring improvement.Stefan Monnier2008-03-031-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
| * (comment-choose-indent): New function extractedStefan Monnier2007-09-281-37/+62
| | | | | | | | | | from comment-indent. Improve the alignment algorithm. (comment-indent): Use it.
* | (comment-region-default): Don't triple theRichard M. Stallman2007-12-221-3/+9
| | | | | | | | comment starter if the first region line isn't indented enough.
* | Martin Rudalics <rudalics at gmx.at>Glenn Morris2007-11-281-2/+4
| | | | | | | | (comment-region-internal): Fix newline insertion in `block' case.
* | (comment-dwim): Call comment-insert-comment-function, if defined, forGlenn Morris2007-11-031-10/+15
| | | | | | | | blank lines. Doc fix.
* | (comment-indent): Let comment-insert-comment-function,Glenn Morris2007-11-021-38/+39
| | | | | | | | if defined, do all the work of inserting a new comment.
* | (comment-styles): New style indent-or-triple.Richard M. Stallman2007-10-261-26/+40
| | | | | | | | | | | | | | | | (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.
* | (comment-add): If EXTRA, double `comment-add' value.Richard M. Stallman2007-09-201-4/+4
| |
* | (comment-add): New arg EXTRA.Richard M. Stallman2007-09-171-6/+16
| | | | | | | | (comment-region-default): Pass EXTRA if not indenting lines.
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (comment-search-forward): Make sure we search forward.Stefan Monnier2007-05-081-42/+73
|/ | | | | | | | | (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.
* (comment-search-forward): Discard comment starters before point.Stefan Monnier2007-04-011-1/+3
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-051-1/+1
|
* (comment-indent): "?\ " -> "?\s".Juanma Barranquero2006-11-271-2/+2
|
* (comment-valid-prefix-p): Make the check more thorough.Stefan Monnier2006-10-101-9/+40
| | | | | From an idea by Martin Rudalics <rudalics@gmx.at>. (comment-indent-new-line): Adjust call.
* (comment-box): Call `comment-normalize-vars'. Add autoload cookie.Juanma Barranquero2006-08-201-4/+6
|
* (comment-indent): Fully update INDENTRichard M. Stallman2006-08-161-3/+8
| | | | before checking to see if it will change the text.
* Move `safe-local-variable' declarations to the respective files.Reiner Steib2006-05-111-0/+1
|
* (comment-start, comment-start-skip)Dan Nicolaescu2006-04-201-0/+4
| | | | (comment-end-skip, comment-end): Mark as safe.
* (comment-add): New function.Stefan Monnier2006-04-171-6/+8
| | | | (comment-region-default, comment-dwim): Use it.
* Docstring fixes.Stefan Monnier2006-02-031-5/+6
|