summaryrefslogtreecommitdiff
path: root/lisp/indent.el
Commit message (Collapse)AuthorAgeFilesLines
...
* | Extend 'indent-relative' when its arg is non-nilAlex2016-11-181-17/+24
| | | | | | | | | | | | | | | | | | * lisp/indent.el (indent-relative-maybe): New obsolete alias. (indent-relative-first-indent-point): Renamed from 'indent-relative-maybe'. (indent-relative): Now accepts an additional optional argument. The first argument was renamed to FIRST-ONLY. Doc fix. Support the additional arg. (Bug#24766)
* | Don't delete selection after indent-rigidlyNoam Postavsky2016-08-061-1/+1
|/ | | | | | * lisp/indent.el (indent-rigidly): Pass `deactivate-mark' as the ON-EXIT function to `set-transient-map', this prevents `delete-selection-mode' from deleting the text that was just indented (Bug #20408).
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Fix docstring quoting problems with ‘ '’Paul Eggert2015-11-171-1/+1
| | | | | | | | | | | | | Problem reported by Artur Malabarba in: http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html Most of these fixes are to documentation; many involve fixing longstanding quoting glitches that are independent of the recent substitute-command-keys changes. The changes to code are: * lisp/cedet/mode-local.el (mode-local-augment-function-help) (describe-mode-local-overload): Substitute docstrings before displaying them. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Quote the generated docstring for later substitution.
* * lisp/indent.el (indent--default-inside-comment): New functionStefan Monnier2015-10-061-1/+21
| | | | (indent-for-tab-command): Use it for `noindent' indentation.
* * lisp/indent.el (indent-region): Don't deactivate the markStefan Monnier2015-04-171-1/+1
| | | | Fixes: debbugs:20357
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Fix a few packages to work with nil tab-stop-listLeo Liu2014-06-261-0/+7
| | | | | | | | | | | * indent.el (indent-accumulate-tab-stops): New function. * textmodes/picture.el (picture-set-tab-stops): * ruler-mode.el (ruler-mode-mouse-add-tab-stop) (ruler-mode-ruler): Fix to work with nil tab-stop-list. * progmodes/asm-mode.el (asm-calculate-indentation): Use indent-next-tab-stop.
* * align.el (align-adjust-col-for-rule): Unbreak due to defaultingLeo Liu2014-06-241-5/+5
| | | | | | | | | | | tab-stop-list to nil. * indent.el (indent-next-tab-stop): Rename from indent--next-tab-stop. (indent-rigidly-left-to-tab-stop) (indent-rigidly-right-to-tab-stop, tab-to-tab-stop) (move-to-tab-stop): Change callers. Fixes: debbugs:16381
* Replace "Maintainer: FSF" with the emacs-devel mailing addressGlenn Morris2014-02-091-1/+1
|
* Some doc related to tab-stopsGlenn Morris2014-01-271-7/+8
| | | | | | * doc/lispref/text.texi (Indent Tabs): Update related to tab-stops. * lisp/indent.el (tab-stop-list): Doc fix. Add :version.
* * lisp/indent.el (indent-line-to): Use backward-to-indentationJuri Linkov2014-01-201-2/+2
| | | | | | instead of back-to-indentation. Fixes: debbugs:16461
* * lisp/indent.el (indent-rigidly): Set deactivate-mark to nilJuri Linkov2014-01-151-1/+4
| | | | | | in transient indentation mode. Fixes: debbugs:16438
* * lisp/indent.el (indent-according-to-mode): Flush to column 0 in text-modeStefan Monnier2014-01-131-3/+4
| | | | after an empty line.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * indent.el (indent-rigidly): Use substitute-command-keys.Chong Yidong2013-12-231-2/+3
|
* Rename set-temporary-overlay-map -> set-transient-mapChong Yidong2013-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (set-transient-map): Rename from set-temporary-overlay-map. Doc fix. * lisp/face-remap.el (text-scale-adjust): * lisp/indent.el (indent-rigidly): * lisp/kmacro.el (kmacro-call-macro): * lisp/minibuffer.el (minibuffer-force-complete): * lisp/repeat.el (repeat): * lisp/simple.el (universal-argument--mode): * lisp/calendar/todo-mode.el (todo-insert-item--next-param): * lisp/progmodes/f90.el (f90-abbrev-start): Callers changed. * lisp/org/org.el (orgstruct-make-binding): Call set-transient-map instead of old name set-temporary-overlay-map. * doc/lispref/keymaps.texi (Controlling Active Maps): Renamed set-temporary-overlay-map to set-transient map. Doc fixes. (Searching Keymaps): The transient keymap takes precedence.
* Tweak C-x TAB behavior changes, and update docs.Chong Yidong2013-12-211-23/+62
| | | | | | | | | | | | | | | | * lisp/indent.el (indent-rigidly-map): Add docstring, and move commands into named functions. (indent-rigidly-left, indent-rigidly-right) (indent-rigidly-left-to-tab-stop) (indent-rigidly-right-to-tab-stop): New functions. Decide on indentation direction based on bidi direction, and accumulate sequential commands in a single undo boundary. (indent-rigidly--pop-undo): New utility function. * doc/emacs/indent.texi (Indentation Commands): Document C-x TAB changes. * doc/lispref/text.texi (Region Indent): Note the new interactive behavior of indent-rigidly.
* * bindings.el (visual-order-cursor-movement): Fix version.Leo Liu2013-12-131-6/+7
| | | | | | | * indent.el (indent-region): Disable progress reporter in minibuffer. Fixes: debbugs:16108
* * lisp/indent.el (indent-rigidly): Fix 2013-10-08 change.Glenn Morris2013-10-171-1/+1
| | | | Fixes: debbugs:15635
* * indent.el: Provide interactive indent-rigidly mode. Use lexical-binding.Teemu Likonen2013-10-081-52/+118
| | | | | | | | | | | | | (indent-rigidly--current-indentation): New function. (indent-rigidly-map): New var. (indent-rigidly): Use it to provide interactive mode. (indent-region): Add progress reporter. (tab-stop-list): Make it implicitly extend to infinity by repeating the last step. (indent--next-tab-stop): New function to implement this behavior. (tab-to-tab-stop, move-to-tab-stop): Use it. Fixes: debbugs:8196
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Update doc for behavior of TAB in Text based modes.Chong Yidong2011-11-291-39/+46
| | | | | * lisp/indent.el (indent-for-tab-command, indent-according-to-mode): Doc fix. (indent-region): Doc fix. Switch nested ifs to equivalent cond.
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-2/+2
|
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | * lisp/indent.el (indent-according-to-mode): Apply syntax-propertize.Stefan Monnier2010-09-181-1/+2
| | | | | | | | | | (indent-region): Use indent-according-to-mode. * test/indent/octave.m: Remove one more `fixindent'. Use `end'.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * indent.el (indent-region): Deactivate region (bug#6200).Stefan Monnier2010-05-181-1/+5
|/
* * indent.el (indent-for-tab-command): Doc fix.Chong Yidong2010-03-221-2/+4
|
* (tab-always-indent): Fix custom-type.Glenn Morris2010-01-191-3/+7
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * minibuffer.el (completion-at-point-functions): New var.Stefan Monnier2009-12-071-16/+25
| | | | | | | | | | | | | | | | | | | (completion-at-point): New command. * indent.el (indent-for-tab-command): Handle the new `complete' behavior. * progmodes/python.el (python-mode-map): Use completion-at-point. (python-completion-at-point): Rename from python-partial-symbol and adjust for use in completion-at-point-functions. (python-mode): Setup completion-at-point for Python completion. * emacs-lisp/lisp.el (lisp-completion-at-point): New function extracted from lisp-complete-symbol. (lisp-complete-symbol): Use it. * emacs-lisp/lisp-mode.el (emacs-lisp-mode): Use define-derived-mode, setup completion-at-point for Elisp completion. (emacs-lisp-mode-map, lisp-interaction-mode-map): Use completion-at-point. * ielm.el (ielm-map): Use completion-at-point. (inferior-emacs-lisp-mode): Setup completion-at-point for Elisp completion. * progmodes/sym-comp.el: Move to... * obsolete/sym-comp.el: Move from progmodes.
* * indent.el (indent-for-tab-command): Fix typo in docstring.Chong Yidong2009-05-201-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* * align.el:Lute Kamstra2008-12-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allout.el: * apropos.el: * arc-mode.el: * autoinsert.el: * avoid.el: * battery.el: * bookmark.el: * buff-menu.el: * calculator.el: * chistory.el: * cmuscheme.el: * comint.el: * compare-w.el: * dabbrev.el: * delim-col.el: * desktop.el: * diff-mode.el: * diff.el: * dired-aux.el: * dired-x.el: * dired.el: * dos-vars.el: * ediff-diff.el: * ediff-help.el: * ediff-init.el: * ediff-merg.el: * ediff-mult.el: * ediff-ptch.el: * ediff-vers.el: * ediff-wind.el: * ediff.el: * emerge.el: * facemenu.el: * faces.el: * ffap.el: * filecache.el: * find-dired.el: * font-core.el: * font-lock.el: * forms.el: * fringe.el: * help-at-pt.el: * hippie-exp.el: * ido.el: * image-file.el: * imenu.el: * indent.el: * info.el: * isearchb.el: * iswitchb.el: * jit-lock.el: * jka-compr.el: * log-edit.el: * lpr.el: * ls-lisp.el: * man.el: * menu-bar.el: * midnight.el: * mouse-sel.el: * mouse.el: * msb.el: * outline.el: * paren.el: * pcmpl-cvs.el: * pcmpl-gnu.el: * pcomplete.el: * pcvs-info.el: * pcvs-parse.el: * printing.el: * ps-mule.el: * ps-print.el: * replace.el: * ruler-mode.el: * saveplace.el: * sb-image.el: * scroll-bar.el: * sha1.el: * shadowfile.el: * shell.el: * sort.el: * speedbar.el: * strokes.el: * tempo.el: * term.el: * terminal.el: * time-stamp.el: * time.el: * tree-widget.el: * type-break.el: * vc-cvs.el: * vc-hg.el: * vc-mcvs.el: * vc-rcs.el: * vc-sccs.el: * vc.el: * view.el: * w32-vars.el: * whitespace.el: * wid-edit.el: Remove leading * from docstrings of defcustoms, deffaces, defconsts and defuns.
* (indent-for-tab-command): Use use-region-p.Chong Yidong2008-10-301-2/+1
|
* (indent-line-function): Doc fix.Glenn Morris2008-09-121-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-101-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
| |
* | Add prefix arg handling to indent-for-tab-commandMiles Bader2007-12-251-9/+29
| | | | | | | | | | | | | | | | | | | | | | | | (indent-for-tab-command): Rigidly indent the following sexp along with the current line when a prefix arg is given in the non-active-region case. Specify raw prefix in interactive spec. Simplify main indentation logic to get rid of the conditional call to `indent-according-to-mode' (it just ended up calling `indent-line-function' in all cases anyway, which can be done more simply here). Remove unnecessary test of ARG in active region case. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-964
* | (indent-for-tab-command): Fix doc-string typo.Martin Rudalics2007-12-191-1/+1
| |
* | (tab-stop-list): Mark as safe-local-variable.Reiner Steib2007-12-081-0/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-10-271-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 131-137) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 261-262) - Update from CVS Revision: emacs@sv.gnu.org/emacs--devo--0--patch-908
| * (indent-to-left-margin): If point's in the indentation,Richard M. Stallman2007-10-241-1/+6
| | | | | | | | move to the end of the indentation.