Commit graph

15510 commits

Author SHA1 Message Date
André Spiegel
ffda046061 (vc-revert-buffer): Handle empty diff properly.
(vc-version-backup-file): New function.
(vc-checkout): Create a version backup if necessary.
(vc-checkin): If a version backup file exists, delete it.
(vc-version-diff): Diff locally using version backups, if available.
(vc-revert-file): If there's a version backup, revert locally.
(vc-transfer-file): Use version backup for base version, if
available.  If not, ask for confirmation whether to get it from the
server.  Update mode line before check-in.
2000-10-04 09:48:37 +00:00
Dave Love
ebd4825d4a (tool-bar-setup): New function.
(tool-bar-mode): Use it.
2000-10-04 09:36:30 +00:00
Peter Breton
ddb62bf14a * net/net-utils.el (nslookup-font-lock-keywords,
ftp-font-lock-keywords, smbclient-font-lock-keywords):
Only set if window-system is non-nil
(net-utils-run-program): Returns buffer.
(network-connection-reconnect): Added this function.
2000-10-04 05:43:37 +00:00
Peter Breton
8b7187d816 *** empty log message *** 2000-10-04 05:40:27 +00:00
Peter Breton
9a7f629dd7 * generic.el:
Incorporates extensive cleanup and docfixes by
Stefan Monnier (monnier+gnu/emacs@flint.cs.yale.edu).
Uses cl compile-time macros.
(generic-mode-name, generic-comment-list,
generic-keywords-list, generic-font-lock-expressions,
generic-mode-function-list, generic-mode-syntax-table):
Removed variables.
(generic-mode-alist): Renamed to generic-mode-list.
(generic-find-file-regexp): Default changed to "^#".
(generic-read-type): Uses completing read on generic-mode-list.
(generic-mode-sanity-check): removed this function.
(generic-add-to-auto-mode): Removed this function
(generic-mode-internal): Binds mode-specific definitions
into function instead of putting them in alist.
(generic-mode-set-comments): Reworked extensively.
(generic-mode-find-file-hook): Simplified regexp searching
(generic-make-keywords-list):  Omit extra pair of parens
2000-10-04 05:17:12 +00:00
Peter Breton
1b24f4b795 *** empty log message *** 2000-10-04 05:02:12 +00:00
Peter Breton
b9dccd9ea5 (rul-generic-mode): Removed one eval-when-compile
which caused a max-specpdl-size exceeded error.
2000-10-04 04:55:12 +00:00
Peter Breton
7aeb9d6fd7 * generic-x.el (apache-conf-generic-mode):
Regexp now allows leading whitespace.
(rc-generic-mode): Added eval-when-compile
around generic-make-keywords-list.
Deleted duplicate regexp
(rul-generic-mode): Added eval-when-compile
around generic-make-keywords-list.
(etc-fstab-generic-mode): New generic mode.
2000-10-04 04:45:55 +00:00
Peter Breton
82d11a0b0e * find-lisp.el (find-lisp-find-files-internal):
Make sure directory name ends with "/".
2000-10-04 04:19:10 +00:00
Miles Bader
b442e70a76 Update. 2000-10-04 02:37:41 +00:00
Stefan Monnier
a637334014 (diff-font-lock-keywords): Minor regex fix.
(diff-goto-source): Be smarter when choosing REVERSE or not.
2000-10-03 18:36:36 +00:00
Stefan Monnier
003dd63517 (texinfo-mode-menu): Add an explicit shortcut for update all. 2000-10-03 18:33:10 +00:00
Stefan Monnier
28c7697169 (texinfo-heading-face): Forgot the var def. 2000-10-03 18:29:54 +00:00
Miles Bader
a7bf5cf358 *** empty log message *** 2000-10-03 17:42:51 +00:00
Dave Love
3b0bf2617c (quoted-printable-encode-region): Don't use mm-find-charset-region. 2000-10-03 17:38:06 +00:00
Miles Bader
64666d2d52 (dired-mark-read-file-name): Add optional arg DEFAULT.
(dired-do-create-files): If there's only one file, pass it in as
  the DEFAULT arg to dired-mark-read-file-name.
2000-10-03 17:35:47 +00:00
Miles Bader
8dc3ba7d01 (minibuffer-temporary-goal-position):
New variable.
(next-history-element):
  Try to keep the position of point in the input string constant.
2000-10-03 17:32:34 +00:00
Dave Love
657b2c659b Don't require mm-util.
(quoted-printable-decode-region): Rewritten.
(quoted-printable-decode-string, quoted-printable-encode-region):
Doc fix.
(quoted-printable-encode-region): Barf on multibyte characters.
Maybe make the class multibyte.  Upcase chars, not formatted
strings.  Allow mm-use-ultra-safe-encoding to be unbound.
(quoted-printable-encode-string): Don't use
mm-with-unibyte-buffer.
2000-10-03 16:13:36 +00:00
Dave Love
72fc04186a 2000-10-03 Dave Love <fx@gnu.org>
* mail-source.el (mail-sources): Revert to nil.

2000-10-03  ShengHuo ZHU  <zsh@cs.rochester.edu>

	* mail-source.el (mail-source-report-new-mail): Use
	nnheader-cancel-timer.

2000-10-03  Simon Josefsson  <simon@josefsson.org>

	* mail-source.el (mail-source-imap-file-coding-system): New variable.
	(mail-source-fetch-imap): Use it.
2000-10-03 16:12:25 +00:00
Dave Love
9a075f5ee6 (nnmail-spool-file): Revert to `((file))'. 2000-10-03 16:11:12 +00:00
André Spiegel
858f7cb406 # 2000-10-03 12:34:56 +00:00
André Spiegel
72cfc5fb64 (vc-transfer-file, vc-default-receive-file): Rewritten to factorize
backend-specific code cleanly.
(vc-unregister): Function removed.
2000-10-03 12:24:15 +00:00
André Spiegel
fb0d6a7904 (vc-rcs-receive-file): Rewritten to contain only backend-specific
code.
2000-10-03 12:08:40 +00:00
André Spiegel
0e41e1d66c # 2000-10-03 11:41:28 +00:00
André Spiegel
a7e98271c7 (vc-rcs-fetch-master-state): Parse and remember default branch
unconditionally.
(vc-rcs-set-default-branch): New function.
(vc-rcs-cancel-version, vc-rcs-checkin, vc-rcs-checkout): Use it.
(vc-rcs-checkin): If an appropriate default branch has been set,
force creation of that branch.
2000-10-03 11:33:59 +00:00
André Spiegel
045e1aa59e (vc-revert-file): New function.
(vc-revert-buffer): Delegate some of the work to it.
2000-10-03 11:22:13 +00:00
Miles Bader
1be1456864 (yow): Don't display multi-line quotations in a *Help* buffer, since the
echo area will now grow to accommodate them.
  [Note -- I thought I already checked this change, but it seems to have
   mysteriously disappeared]
2000-10-03 07:06:41 +00:00
Gerd Moellmann
45c477b462 (isearch-lazy-highlight-update): Don't put a lazy
highlighting overlay with a different face over the overlay
isearch uses to highlight the current match because that can lead
to bad face combinations.
2000-10-02 19:51:03 +00:00
Gerd Moellmann
01c86c564d (toplevel): Load faces before isearch. 2000-10-02 19:21:46 +00:00
Gerd Moellmann
18ca20aa86 (isearch-faces): New custom group.
(isearch): New defface; was already tested for in the code.
(isearch-lazy-highlight-face): Changed to defface from defcustom.
(isearch-highlight): Always use face `isearch'.
2000-10-02 19:18:09 +00:00
Dave Love
944425c0c3 (byte-optimize-lapcode): Don't bind
unused vars.  Treat byte-constant2 like byte-constant.  Fix bogus
comparison of opcode with operand.
2000-10-02 17:44:51 +00:00
Miles Bader
2a099bccab *** empty log message *** 2000-10-02 17:01:29 +00:00
André Spiegel
4300ecb8e2 # 2000-10-02 12:06:13 +00:00
André Spiegel
1f22ad2403 (vc-registered): If FILE used to be registered under a certain
backend, try that one first.
2000-10-02 12:02:37 +00:00
André Spiegel
8989ab56c2 (vc-responsible-backend): Undo the previous change in the argument
list.  Handle multiple backends correctly.
(vc-find-new-backend): Function removed.
(vc-register): Use vc-responsible-backend, as before.
(vc-next-action-on-file): Do use vc-registered, not vc-backend.
2000-10-02 12:01:09 +00:00
Gerd Moellmann
64e6cc18e6 *** empty log message *** 2000-10-02 11:19:01 +00:00
Gerd Moellmann
b831c087d8 (fancy-splash-head): Change message below the
logo.
2000-10-02 11:18:21 +00:00
Miles Bader
4eaa6852c9 (diff-test-hunk): Backout previous change. Fix doc string.
(diff-apply-hunk): Don't return a value.
2000-10-02 06:50:45 +00:00
Miles Bader
00df919ede (diff-goto-source): Emit a status message.
(diff-test-hunk, diff-apply-hunk): Remove unneeded `let'.
(diff-test-hunk): Make the return value agree with the doc string.
(diff-apply-hunk): Only advance if `diff-advance-after-apply-hunk'.
(diff-advance-after-apply-hunk): New variable.
2000-10-02 03:48:38 +00:00
Stefan Monnier
ceec5a0c1b (with-vc-file, vc-next-action-on-file):
Use vc-backend rather than vc-registered.
(vc-next-action-on-file): Use intern-soft.
Deal with read-only *vc-diff* buffer.
(vc-switch-backend): Short circuit if nothing is to be done.
Handle the case where (not (memq backend backends)).
Don't use vc-resynch-buffer which could lose unsaved editing.
(vc-transfer-file): Docstring fix.
2000-10-01 20:58:17 +00:00
Stefan Monnier
7849e1791b * vc.el (vc-editable-p): Minor optimization.
(edit-vc-file, vc-next-action-on-file): Don't use find-file.
(vc-find-new-backend): New function split from vc-responsible-backend.
(vc-register): Use it.
(vc-responsible-backend): Remove REGISTER arg and add BACKENDS arg.
(vc-unregister): Drop BACKEND arg (it doesn't work anyway).
(vc-default-unregister, vc-revert-buffer): Docstring fix.
(vc-clear-headers): Don't use find-file.
(vc-revert-buffer): Use `and' again (must have been a braino).
(vc-switch-backend): Only prompt if requested.
(vc-default-receive-file): Update call to vc-unregister.

* vc-rcs.el (vc-rcs-unregister): Keep a backup of the master file.
(vc-rcs-receive-file): Avoid with-vc-properties.
Update call to vc-unregister.
Use constant `RCS' rather than (dynamically bound) var `backend'.
2000-10-01 19:35:24 +00:00
André Spiegel
4ad5da8fd1 # 2000-10-01 12:12:16 +00:00
André Spiegel
0ab66291b8 (vc-next-action-on-file): Update mode line only if file is visited.
(vc-start-entry): New argument initial-contents.  Don't visit the file
if it isn't already visited.  Brought documentation up-to-date.
(vc-next-action, vc-register): Updated calls to vc-start-entry.
(vc-checkin): New optional arg initial-contents, which is passed to
vc-start-entry.
(vc-finish-logentry): Make sure to bury log buffer only if there
really is one.  Call `vc-resynch-buffer' on log-file, not
buffer-file-name.
(vc-default-comment-history, vc-default-wash-log): New functions.
(vc-index-of): Removed.
(vc-transfer-file): Make do without the above.
(vc-default-receive-file): Call comment-history unconditionally.  Pass
the resulting string to vc-checkin, instead of inserting it into the
comment ring.
2000-10-01 12:06:15 +00:00
André Spiegel
b6969bdbd6 (vc-rcs-receive-file): Call comment-history unconditionally. Use the
comments as initial contents of the log entry buffer.  Document the
trick to force branch creation with no changes.
2000-10-01 11:17:42 +00:00
Miles Bader
aa0c3dca64 (easy-mmode-define-navigation):
Call `recenter' with an arg to prevent redrawing the display.
2000-10-01 03:38:23 +00:00
Stefan Monnier
d5f5a2c509 *** empty log message *** 2000-10-01 01:33:01 +00:00
Stefan Monnier
b643ec5311 (easy-mmode-pretty-mode-name): Prettier. 2000-10-01 00:58:35 +00:00
Stefan Monnier
f77eca766a (lisp-complete-symbol): Only jump 2 not 3 levels. 2000-10-01 00:57:13 +00:00
Stefan Monnier
7b8f3241f1 (c-mode): Don't gratuitously override the default for comment-column. 2000-10-01 00:53:23 +00:00
Stefan Monnier
53c4fe4786 (latex-metasection-list): New var.
(latex-imenu-create-index): Use it.
Move the regexp construction outside loops (and use push).
(tex-font-lock-keywords-1, tex-font-lock-keywords-2)
(tex-font-lock-keywords): Moved from font-lock.el.
(tex-comment-indent): Remove.
(tex-common-initialization): Don't set comment-indent-function.
(latex-block-default): New var.
(tex-latex-block): Use it to provide a default choice.
Add any unknown choice to latex-block-names.
Insert [...] after {...}.
(tex-last-unended-begin): Simplify regexp.
(tex-goto-last-unclosed-latex-block, latex-backward-sexp-1)
(latex-forward-sexp-1, latex-forward-sexp): New functions.
(latex-mode): Set forward-sexp-function.
2000-10-01 00:47:41 +00:00