Chong Yidong
45545d6875
(end-of-defun): Protect against infloops (Bug#2106).
2009-01-31 16:19:46 +00:00
Glenn Morris
61a846fbec
Replace last-command-char with last-command-event.
2009-01-09 04:29:16 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Juanma Barranquero
0ec6a7e501
Fix typo in previous commit.
2008-11-26 10:46:21 +00:00
Alan Mackenzie
8fc2ac41e3
(forward-sexp, backward-sexp, mark-sexp)
...
(forward-list, backward-list, down-list, backward-up-list)
(up-list, kill-sexp, backward-kill-sexp, kill-backward-up-list)
(insert-pair, insert-parentheses): State that the
command assumes that point is not in a string or comment.
2008-11-26 10:30:53 +00:00
Chong Yidong
b6bb817d39
Revert last change.
2008-08-15 00:06:12 +00:00
Chong Yidong
d478606111
(lisp-complete-symbol): Supply match-size to display-completion-list.
2008-08-14 23:44:14 +00:00
Chong Yidong
6957495d27
(beginning-of-defun): Doc fix.
2008-08-11 21:38:17 +00:00
Glenn Morris
d6cba7ae45
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 03:21:21 +00:00
Juri Linkov
ec800cf0a2
(lisp-complete-symbol):
...
Use `minibuffer-message' to display message "No completions of %s"
when this command is called in the minibuffer.
2008-03-22 00:11:53 +00:00
Chong Yidong
becc67882c
(parens-require-spaces): Doc fix.
...
Reported by Drew Adams <drew.adams@oracle.com>.
2008-03-05 20:54:56 +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
8b72699e88
Add 2008 to copyright years.
2008-01-07 01:14:52 +00:00
Stefan Monnier
61e2160737
(end-of-defun): Restructure so that end-of-defun-function is called
...
consistently, even for negative arguments.
(end-of-defun-function): Default to forward-sexp.
2007-11-26 20:27:12 +00:00
Stefan Monnier
50bfa18a09
(beginning-of-defun-raw): Pass `arg' down to beginning-of-defun-function.
2007-11-22 22:12:22 +00:00
Glenn Morris
e0085d62fa
Switch license to GPLv3 or later.
2007-07-25 04:14:29 +00:00
Stefan Monnier
4878f1de7c
(lisp-complete-symbol): Make get-buffer-window find windows in other frames.
2007-03-28 00:54:08 +00:00
Glenn Morris
f0fa15c5e5
Add 2007 to copyright years.
2007-01-21 02:48:43 +00:00
Chong Yidong
4df5698c01
(beginning-of-defun-raw): Optimise (for speed) the case when
...
open-paren-in-column-0-is-defun-start is nil. Based on code by Martin
Rudalics.
2006-12-17 22:56:39 +00:00
Glenn Morris
d59c31376c
Update copyright years.
2006-12-07 05:06:17 +00:00
Alan Mackenzie
6cb5482231
2006-11-08 Alan Mackenzie <acm@muc.de>
...
* emacs-lisp/lisp.el (beginning-of-defun-raw): Code up the case
(eq open-paren-in-column-0-is-defun-start nil) by searching for
least nested open-paren.
2006-11-08 19:22:33 +00:00
Thien-Thi Nguyen
ceb4c4d303
Update years in copyright notice; nfc.
2006-02-06 12:31:40 +00:00
Romain Francoise
5e6882903d
(lisp-complete-symbol): Don't print progress messages if in the
...
minibuffer.
2005-12-22 07:41:04 +00:00
Stefan Monnier
c1b5a260d6
(lisp-complete-symbol): Mostly undo the change by Kevin Rodgers.
...
Instead, just hide the completions buffer if we don't need to show it.
2005-12-22 01:48:20 +00:00
Stefan Monnier
398de7181d
(lisp-complete-symbol): Don't call delete-windows-on with an inexistent buffer.
2005-12-21 20:02:20 +00:00
Eli Zaretskii
6d93e4aa38
(lisp-complete-symbol): Regenerate the completion list, even after a partial
...
completion has been inserted in the current buffer. If there are more than 1
completion, redisplay the *Completions* buffer; if the completion is unique,
delete the *Completions* window.
2005-12-10 11:40:04 +00:00
Masatake YAMATO
f5fab556d4
* message.el (message-expand-group): Pass the common
...
prefix substring of completion to `display-completion-list'.
* mh-comp.el (mh-complete-word): Pass the common
prefix substring of completion to `display-completion-list'.
* dabbrev.el (dabbrev-completion): Pass the common
prefix substring of completion to `display-completion-list'.
* filecache.el (file-cache-minibuffer-complete)
(file-cache-complete): Ditto.
* tempo.el (tempo-display-completions): Ditto.
* wid-edit.el (widget-file-complete, widget-color-complete): Ditto.
* emacs-lisp/lisp.el (lisp-complete-symbol): Ditto.
* eshell/em-hist.el (eshell-list-history): Ditto.
* mail/mailabbrev.el (mail-abbrev-complete-alias): Ditto.
* progmodes/etags.el (complete-tag): Ditto.
* progmodes/make-mode.el (makefile-complete): Ditto.
* progmodes/meta-mode.el (meta-complete-symbol): Ditto.
* progmodes/octave-mod.el (octave-complete-symbol): Ditto.
* progmodes/pascal.el (pascal-complete-word)
(pascal-show-completions): Ditto.
* textmodes/bibtex.el (bibtex-complete-internal): Ditto.
* simple.el (completion-common-substring): New variable.
(completion-setup-function): Use `completion-common-substring'
to put faces.
* minibuf.c (Fdisplay_completion_list): Add new optional
argument COMMON_SUBSTRING. Bind `completion-common-substring'
to the optional argument during running `completion-setup-hook'.
2005-10-16 09:31:48 +00:00
Thien-Thi Nguyen
3731a85096
Update years in copyright notice; nfc.
2005-08-06 17:48:15 +00:00
Lute Kamstra
3a35cf56e7
Update FSF's address.
2005-07-04 17:55:18 +00:00
Juanma Barranquero
8ad8cfa5c8
(check-parens): Fix spellings.
2005-06-21 13:44:23 +00:00
Lute Kamstra
7bc108869d
(check-parens): Fix docstring.
2005-05-18 08:29:38 +00:00
Luc Teirlinck
a64dc1a44c
(defun-prompt-regexp, parens-require-spaces, buffer-end, end-of-defun)
...
(insert-parentheses): Doc fixes.
2005-04-08 23:10:24 +00:00
Richard M. Stallman
03deb635e5
(buffer-end): Doc fix.
2005-02-06 10:40:20 +00:00
Richard M. Stallman
dd60a465fb
(backward-kill-sexp, kill-sexp): Doc fixes.
2005-01-17 23:48:10 +00:00
Richard M. Stallman
afb62fddcf
(mark-sexp, mark-defun): New arg ALLOW-EXTEND
...
enables the feature to extend the existing region.
2004-12-29 01:32:06 +00:00
Kim F. Storm
90c08845df
(beginning-of-defun, end-of-defun): Don't
...
use inhibit-mark-movement.
2004-12-14 12:18:11 +00:00
Juri Linkov
967e1a52ad
* emacs-lisp/lisp.el (beginning-of-defun, end-of-defun):
...
Do not push mark when mark is active in transient-mark-mode.
* emacs-lisp/lisp.el (mark-sexp, mark-defun):
Extend the region when mark is active in transient-mark-mode,
regardless of the last command. Doc fix.
* emacs-lisp/lisp.el (mark-sexp): Reverse the condition for
preserving direction, to mark forward instead of backward when mark
is equal to point (e.g. when C-SPC C-M-SPC is typed in t-m-m).
2004-12-13 03:09:59 +00:00
Stefan Monnier
3610d3c962
(mark-sexp): Preserve direction when repeating.
2004-10-12 16:05:55 +00:00
Eli Zaretskii
de6d64b22a
(kill-backward-up-list): New function.
2004-09-04 12:56:54 +00:00
Juri Linkov
017c959d5d
(beginning-of-defun, end-of-defun):
...
Do not push mark if inhibit-mark-movement is non-nil.
2004-09-02 09:43:38 +00:00
Juri Linkov
d97c819899
(insert-pair-alist): New var.
...
(insert-pair): Make arguments optional. Find character pair
from `insert-pair-alist' according to the last input event.
(insert-parentheses): Make arguments optional.
(raise-sexp, delete-pair): New funs.
2004-05-28 21:12:25 +00:00
Richard M. Stallman
d3d6bc9b3b
(mark-defun, narrow-to-defun): If moving back then fwd gets a defun
...
that ends before point, try again moving fwd then back.
2004-05-22 07:41:55 +00:00
Juri Linkov
5891bf24d9
(beginning-of-defun, end-of-defun):
...
Push mark on the first call of successive command calls.
(insert-pair): New fun created from `insert-parentheses' with
`open' and `close' arguments added. Enclose active regions
in paired characters. Compare adjacent characters syntax with
inserted characters syntax before inserting a space.
(insert-parentheses): Call `insert-pair' with ?\( ?\).
2004-05-01 03:58:43 +00:00
Stefan Monnier
44b254cc4f
(beginning-of-defun-raw, end-of-defun):
...
Correctly handle negative arguments when calling hook functions.
2004-04-14 18:20:23 +00:00
Richard M. Stallman
750e563f99
(beginning-of-defun-raw, end-of-defun):
...
Iterate the hook function if arg is given.
(mark-defun, narrow-to-defun): Change order of finding the limits.
2004-01-29 17:56:42 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Dave Love
7a0e987434
(beginning-of-defun-function): Doc fix.
2003-08-20 18:48:43 +00:00
Stefan Monnier
b5ed9def80
(beginning-of-defun-raw): Use shy-group.
2003-05-18 21:51:01 +00:00
Juanma Barranquero
1269ae51b1
(beginning-of-defun): Fix typo.
2002-10-17 16:50:28 +00:00
Kai Großjohann
be0d25b686
* emacs-lisp/lisp.el (mark-defun): Don't leave multiple marks
...
when repeated.
* textmodes/paragraphs.el (mark-paragraph): Ditto.
2002-02-17 15:08:31 +00:00