1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

60 Commits

Author SHA1 Message Date
Eli Zaretskii
2ebf8f54cb (dabbrev--select-buffers): Fix last change. 2001-06-21 07:42:04 +00:00
Richard M. Stallman
513e7954c8 (dabbrev--make-friend-buffer-list): New function,
broken out from dabbrev--find-expansion.  Handle minibuffer
specially here.
(dabbrev--find-expansion): Simplify code in various ways.
Don't treat minibuffers specially.
Call dabbrev--make-friend-buffer-list.
(dabbrev--select-buffers): Don't treat minibuffers specially.
Simplify.
(dabbrev--scanning-message): Do nothing when minibuffer is current.
2001-06-20 11:03:58 +00:00
Richard M. Stallman
05be3833f3 (dabbrev-select-buffers-function): Doc fix. 2001-05-05 22:31:30 +00:00
Miles Bader
a6a0642945 (dabbrev--ignore-buffer-p): New function.
(dabbrev--find-expansion): Use it.
(dabbrev--select-buffers): Don't select ignored buffers.
2001-04-27 15:28:38 +00:00
Richard M. Stallman
fd2dfb4079 Add doc strings for some functions.
(dabbrev--eliminate-newlines): New variable.
(dabbrev--substitute-expansion): Convert newlines to spaces
if dabbrev--eliminate-newlines is set.
If abbrev and expansion are both all-lower-case,
leave dabbrev--last-case-pattern nil.
2001-04-26 19:44:30 +00:00
Eli Zaretskii
d3111e5aa9 (dabbrev--select-buffers): Add a doc string. 2001-04-26 07:40:14 +00:00
Gerd Moellmann
c4ca64dbae (dabbrev-ignored-buffer-regexps): Renamed from
dabbrev-ignored-regexps.
2001-02-06 12:04:19 +00:00
Gerd Moellmann
8dc5c94d1d (dabbrev--substitute-expansion):
Treat a one-capital-letter abbrev as "not all upper case",
so as to force preservation of the expansion's pattern
if the expansion starts with a capital letter.
2001-01-27 12:07:49 +00:00
Gerd Moellmann
3ffa545ba6 (dabbrev--last-case-pattern): Value is now
`upcase' or `downcase' or nil.
(dabbrev-expand): Don't do anything with dabbrev--last-case-pattern.
Pass new record-case-pattern arg to dabbrev--substitute-expansion.
(dabbrev--substitute-expansion): New arg record-case-pattern.
If it is non-nil, set dabbrev--last-case-pattern.
If ABBREV is " ", use dabbrev--last-case-pattern to change EXPANSION.

(dabbrev--find-expansion): Remove extra nreverse.
2000-12-15 11:51:04 +00:00
Gerd Moellmann
f9cc39a188 (dabbrev--find-expansion): Use walk-windows instead
of cycling through windows with next-window.
2000-07-03 09:13:06 +00:00
Gerd Moellmann
fdad0f1455 (dabbrev-expand): Don't display messages in the
echo area if the minibuffer window is active.
2000-05-29 16:17:48 +00:00
Dave Love
87207d1407 Add debug-ignored-errors.
(dabbrev-completion): Use mapc.
2000-05-22 17:30:42 +00:00
Gerd Moellmann
7e65cba265 (dabbrev-ignored-regexps): New user-option.
(dabbrev--find-expansion): Ignore buffers matching a regexp
from dabbrev-ignored-regexps.
2000-04-03 19:23:35 +00:00
Sam Steingold
da49057ce7 * dabbrev.el (dabbrev-filter-elements): Use the new backquote syntax. 1999-11-15 18:59:00 +00:00
Karl Heuer
a73a57bca1 (dabbrev--find-expansion): Don't scan the current buffer
over again.
1998-09-23 21:56:59 +00:00
Richard M. Stallman
9648a1e6e0 (dabbrev-ignored-buffer-names): Fix typo. Add *Buffer List*. 1998-06-25 01:16:56 +00:00
Andreas Schwab
eaaca5ee78 (dabbrev-case-fold-search, dabbrev-case-replace,
dabbrev-check-other-buffers): Use `other' widget type.
1998-06-24 08:54:53 +00:00
Dan Nicolaescu
f5f727f8ff *** empty log message *** 1998-05-26 09:23:23 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Richard M. Stallman
9b7c13e0bd Comment change. 1998-03-14 04:43:03 +00:00
Richard M. Stallman
7bd9ba7033 (dabbrev-ignored-buffer-names): New variable.
(dabbrev--find-expansion): Ignore those buffers
unless they get specifically preferred.
1998-01-09 22:12:10 +00:00
Richard M. Stallman
fec1279bc2 (dabbrev-case-fold-search): Remove extra quote in customize constant.
(dabbrev-case-replace): Likewise.
1997-09-09 02:56:04 +00:00
Richard M. Stallman
8b64df4625 Comment change. 1997-08-12 00:37:22 +00:00
Richard M. Stallman
79bb4872ef (dabbrev-abbrev-skip-leading-regexp): Doc fix. 1997-08-11 23:55:10 +00:00
Richard M. Stallman
6f0b000cf6 (dabbrev-expand, dabbrev--abbrev-at-point)
(dabbrev--search): Use buffer-substring-no-properties.
1997-05-19 01:01:25 +00:00
Richard M. Stallman
543abb4a78 (dabbrev-case-replace, dabbrev-case-fold-search):
Make these simple three-value choices.
(dabbrev-completion): Handle dabbrev-case-fold-search
and dabbrev-case-replace the new way.
(dabbrev-expand, dabbrev--substitute-expansion): Likewise.
1997-05-10 00:33:28 +00:00
Richard M. Stallman
bbf5eb2805 Add defgroup's; use defcustom for user vars. 1997-04-12 03:18:33 +00:00
Richard M. Stallman
654116295d (dabbrev--substitute-expansion):
Change criterion for copying expansion's case pattern.
Do this now if expansion case varies after the first char.
1997-03-30 19:06:27 +00:00
Richard M. Stallman
dea5efcbe3 (dabbrev--last-case-pattern): New variable.
(dabbrev-expand): Set it for ordinary expansions;
use it when copying successive words.
1996-08-07 18:27:20 +00:00
Richard M. Stallman
07e47d0b70 (dabbrev-expand): When snarfing consecutive words,
if previous one was upcased, upcase this one too.
(dabbrev--substitute-expansion): When snarfing consecutive words,
don't case convert here.
1996-08-01 04:54:51 +00:00
Richard M. Stallman
caafcc32ad (dabbrev--substitute-expansion): Use just ABBREV, not OLD, in previous change. 1996-07-27 04:09:13 +00:00
Richard M. Stallman
e674957483 (dabbrev-case-fold-search, dabbrev-case-replace): Undo previous change. 1996-07-22 02:13:10 +00:00
Richard M. Stallman
66db4b5b2a (dabbrev--search): Don't downcase the result here.
(dabbrev-completion): Bind completion-ignore-case.
(dabbrev--substitute-expansion): Downcase the expansion here,
but not if case pattern matches start of original expansion.
1996-07-21 23:45:15 +00:00
Karl Heuer
8d47e7e524 (dabbrev-case-fold-search, dabbrev-case-replace): Set
risky-local-variable property, since these get eval'ed.
1996-07-12 00:32:48 +00:00
Erik Naggum
bfbf16aff7 (dabbrev-abbrev-skip-leading-regexp): Doc fix. 1996-01-24 19:01:08 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
83f8045840 (dabbrev-case-replace): Doc fix. 1995-11-11 05:24:34 +00:00
Richard M. Stallman
d8f7e85aba (dabbrev--find-expansion): Move buffers that are visible on the screen
to the front of the list to be searched.
1995-10-20 20:48:00 +00:00
Richard M. Stallman
3132e11599 (dabbrev-expand): When no more expansions,
Put back the original abbrev with its original case pattern.
1995-10-20 20:30:22 +00:00
Richard M. Stallman
4209f47921 (dabbrev-expand): Save previous point for undo. 1995-07-30 07:08:49 +00:00
Karl Heuer
63d991d634 (dabbrev--search): Don't let spurious match in middle
of word obscure real match at start of same word.
1995-07-17 22:48:39 +00:00
Karl Heuer
a8a2d6cade (dabbrev--abbrev-at-point): If point is after
a separator, move back to previous abbreviation.
(dabbrev-expand): New feature--if you insert a space and
call this command again, it always fetches consecutive words
after the expansion that was found for the actual abbrev.
1995-05-29 06:22:40 +00:00
Richard M. Stallman
df6eb420bf (dabbrev-completion): Use mapcar, not mapc.
Call dabbrev--reset-global-variables as the first thing.
(dabbrev-abbrev-char-regexp): Default value is nil again.
(dabbrev--find-all-expansions): Don't use push.
(dabbrev--search): Likewise.
(dabbrev-check-other-buffers):
Renamed from dabbrev-always-check-other-buffers.
(dabbrev-check-all-buffers): Renamed frm dabbrev-check-rest-of-buffers.
(dabbrev-expand): Now checks for marker.
(dabbrev--try-find): Now does a protected call to `widen'.
(dabbrev-always-check-other-buffers): Default now t.
(dabbrev--capitalize): Function deleted.
(dabbrev-completion): Use `capitalize'.
1995-05-15 23:16:08 +00:00
Richard M. Stallman
f8b581fa23 (esc-map): Delete excess closeparen. 1994-12-25 22:05:30 +00:00
Richard M. Stallman
5eb6298247 (dabbrev-abbrev-char-regexp): Accept symbol chars
as well as word constituent chars.
1994-12-24 21:39:16 +00:00
Richard M. Stallman
dd1ae35538 (dabbrev-completion): Now searches all buffers when given prefix arg 16.
(dabbrev--version): Variable deleted.
1994-12-24 01:35:28 +00:00
Richard M. Stallman
7313ccdbd0 Don't require cl, picture, or reporter.
Don't provide new-dabbrev.
(dabbrev--try-find): Don't use `loop'.
Don't create or kill local bindings.
(dabbrev-completion): Use key-description to say what to type.
Fix style of "done" message.
(dabbrev-submit-feedback): Function deleted.
(dabbrev--same-major-mode-p): Simplify.
(dabbrev-completion, dabbrev--abbrev-at-point): Fix error msg style.

(dabbrev-filter-elements): New macro.
(dabbrev--select-buffers, dabbrev--find-expansion): Use that.
(dabbrev--search): Use that.
1994-12-24 01:30:55 +00:00
Richard M. Stallman
6163b3ba74 Complete rewrite by Lars.Lindberg@sypro.cap.se. 1994-12-24 01:26:51 +00:00
Richard M. Stallman
5f5d794a22 Don't repeat at load time any bindings that are autoloaded. 1993-12-23 04:52:56 +00:00