Leo Liu
83d208a5dd
Fix a few packages to work with nil tab-stop-list
...
* 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.
2014-06-26 07:53:37 +08:00
Leo Liu
96559792e1
* align.el (align-adjust-col-for-rule): Unbreak due to defaulting
...
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
2014-06-24 07:09:20 +08:00
Glenn Morris
34dc21db6e
Replace "Maintainer: FSF" with the emacs-devel mailing address
2014-02-09 17:34:22 -08:00
Glenn Morris
e3bd7eed8c
Some doc related to tab-stops
...
* doc/lispref/text.texi (Indent Tabs): Update related to tab-stops.
* lisp/indent.el (tab-stop-list): Doc fix. Add :version.
2014-01-27 20:49:02 -05:00
Juri Linkov
3c5a4839a1
* lisp/indent.el (indent-line-to): Use backward-to-indentation
...
instead of back-to-indentation.
Fixes: debbugs:16461
2014-01-20 10:45:56 +02:00
Juri Linkov
ccc6b208d5
* lisp/indent.el (indent-rigidly): Set deactivate-mark to nil
...
in transient indentation mode.
Fixes: debbugs:16438
2014-01-15 10:22:41 +02:00
Stefan Monnier
6ae948d87e
* lisp/indent.el (indent-according-to-mode): Flush to column 0 in text-mode
...
after an empty line.
2014-01-13 00:03:31 -05:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00:00
Chong Yidong
7510b0219c
* indent.el (indent-rigidly): Use substitute-command-keys.
2013-12-23 12:07:01 +08:00
Chong Yidong
8cd22a0818
Rename set-temporary-overlay-map -> set-transient-map
...
* 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.
2013-12-23 11:59:10 +08:00
Chong Yidong
77221051a2
Tweak C-x TAB behavior changes, and update docs.
...
* 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.
2013-12-21 16:37:08 +08:00
Leo Liu
b9e20952ea
* bindings.el (visual-order-cursor-movement): Fix version.
...
* indent.el (indent-region): Disable progress reporter in
minibuffer.
Fixes: debbugs:16108
2013-12-13 09:54:09 +08:00
Glenn Morris
642eb8b6af
* lisp/indent.el (indent-rigidly): Fix 2013-10-08 change.
...
Fixes: debbugs:15635
2013-10-17 15:31:11 -04:00
Teemu Likonen
b7d5bd823c
* indent.el: Provide interactive indent-rigidly mode. Use lexical-binding.
...
(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
2013-10-08 02:17:49 -04:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Chong Yidong
e70b5064d7
Update doc for behavior of TAB in Text based modes.
...
* lisp/indent.el (indent-for-tab-command, indent-according-to-mode): Doc fix.
(indent-region): Doc fix. Switch nested ifs to equivalent cond.
2011-11-29 23:55:54 +08:00
Juanma Barranquero
06b605171f
lisp/*.el: Lexical-binding cleanup.
2011-04-19 15:44:55 +02: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
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
f5632fb6c2
* lisp/indent.el (indent-according-to-mode): Apply syntax-propertize.
...
(indent-region): Use indent-according-to-mode.
* test/indent/octave.m: Remove one more `fixindent'. Use `end'.
2010-09-18 18:21:16 +02:00
Chong Yidong
bd78fa1d54
Add "Package:" file headers to denote built-in packages.
2010-08-29 12:17:13 -04:00
Stefan Monnier
2a96c2a765
* indent.el (indent-region): Deactivate region (bug#6200).
2010-05-18 23:06:48 -04:00
Chong Yidong
e9ba3e26e5
* indent.el (indent-for-tab-command): Doc fix.
2010-03-22 13:28:27 -04:00
Glenn Morris
e073d74aaa
(tab-always-indent): Fix custom-type.
2010-01-19 19:46:23 -08:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Stefan Monnier
51ef56c47f
* minibuffer.el (completion-at-point-functions): New var.
...
(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.
2009-12-07 20:06:26 +00:00
Chong Yidong
ae8ba4092c
* indent.el (indent-for-tab-command): Fix typo in docstring.
2009-05-20 02:35:45 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Lute Kamstra
9201cc281b
* align.el:
...
* 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.
2008-12-03 05:48:14 +00:00
Chong Yidong
361a81d9bc
(indent-for-tab-command): Use use-region-p.
2008-10-30 23:52:39 +00:00
Glenn Morris
59b5f3a80d
(indent-line-function): Doc fix.
2008-09-12 03:07:25 +00:00
Glenn Morris
eb3fa2cfcf
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 08:06:51 +00:00
Stefan Monnier
cbee283dd7
Fix up comment convention on the arch-tag lines.
2008-04-10 14:10:46 +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
Miles Bader
1225a933f0
Add prefix arg handling to indent-for-tab-command
...
(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
2007-12-25 21:07:12 +00:00
Martin Rudalics
d6a4ad7475
(indent-for-tab-command): Fix doc-string typo.
2007-12-19 09:24:31 +00:00
Reiner Steib
44b275c456
(tab-stop-list): Mark as safe-local-variable.
2007-12-08 14:33:53 +00:00
Miles Bader
fdc9061358
Merge from emacs--rel--22
...
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
2007-10-27 09:07:17 +00:00
Richard M. Stallman
caadec436d
(indent-to-left-margin): If point's in the indentation,
...
move to the end of the indentation.
2007-10-24 08:10:57 +00:00
Juri Linkov
bc3214eda6
(indent-for-tab-command): Change interactive spec from "P" to "p".
...
(indent-for-tab-command): Add check for interactive arg before
indenting the active region.
2007-10-18 00:08:08 +00:00
Dan Nicolaescu
17ee46255f
* progmodes/cc-mode.el (c-mode-base-map): Use
...
c-indent-line-or-region instead of c-indent-line.
* indent.el (indent-for-tab-command): First check if the region is
active.
2007-09-24 17:48:50 +00:00
Dan Nicolaescu
6dd697d9a5
(indent-for-tab-command): Indent the region if
...
transient-mark-mode and the region is active.
2007-09-22 00:57:00 +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
9450aaa02b
(tab-always-indent): Docstring fix.
2007-06-12 16:33:39 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00