Stefan Monnier [Wed, 23 Apr 2003 14:55:19 +0000 (14:55 +0000)]
(comment-normalize-vars): Fix regexp.
Prompt the user for the comment-start to use rather than signalling an error.
(uncomment-region): Don't leave half-removed comment markers.
André Spiegel [Wed, 23 Apr 2003 12:49:25 +0000 (12:49 +0000)]
Patch by Wolfgang Scherer <Wolfgang.Scherer@gmx.de>
(vc-cvs-stay-local): Allow lists of host regexps.
(vc-cvs-stay-local-p): Handle them.
(vc-cvs-parse-root): New function, used by the above.
Stefan Monnier [Tue, 22 Apr 2003 19:03:18 +0000 (19:03 +0000)]
(vc-mcvs-root): Cache the result.
(vc-mcvs-registered): Simplify. Use file-relative-name.
(vc-mcvs-register): Simplify. Don't burp if MCVS/TYPES doesn't exist.
(vc-mcvs-command): Filter F-NN names in the output for diff and log.
(f90-font-lock-keywords-2): Use override for
font-lock-variable-name-face in declarations (so that strings in
declarations are over-ridden). Highlight continuation characters.
(f90-indent-new-line): Remove direct call to f90-indent-line-no,
f90-update-line, since f90-indent-line calls these.
(f90-abbrev-start): Fix XEmacs compatibility.
Stefan Monnier [Sat, 19 Apr 2003 22:40:18 +0000 (22:40 +0000)]
(vc-cvs-dir-state): Use vc-cvs-command.
(vc-cvs-could-register, vc-cvs-make-version-backups-p): Use defalias.
(vc-cvs-merge-news): Simplify.
(vc-cvs-diff): Remove unused var `options'.
(vc-cvs-parse-entry): Use the same algorithm as cvs does.
Stefan Monnier [Thu, 17 Apr 2003 21:15:04 +0000 (21:15 +0000)]
(view-read-only): Don't declare a second time.
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Check that file does exist.
(large-file-warning-threshold): New custom.
(find-file-noselect): Use it.
(report-errors): New macro.
(normal-mode): Use it.
(toggle-read-only): Really toggle, even if view-mode is on.
(parse-colon-path): Remove unused `cd-prefix' var.
(make-backup-file-name-1): Remove unused `failed' var.
(basic-save-buffer): Remove unused `tempsetmodes' var.
(basic-save-buffer-2): Remove unused `temp' var.
(insert-directory): Remove unused `available' var.
(f90-indent-to, f90-indent-line-no)
(f90-no-block-limit, f90-end-of-block, f90-beginning-of-block)
(f90-comment-region, f90-indent-line, f90-indent-region)
(f90-find-breakpoint, f90-block-match): Trivial simplifications.
(f90-looking-at-do, f90-looking-at-select-case)
(f90-looking-at-if-then, f90-looking-at-where-or-forall): Drop
XEmacs 19 support and simplify.
(f90-indent-new-line): No need for case-fold-search. Simplify.
(f90-fill-region): Make marker nil when done. Simplify.
(fortran-tab-mode-minor-mode-string): Delete this variable,
introduced in previous change.
(fortran-tab-mode-string): Change default value.
(fortran-mode): Use mode-line-process (rather than
minor-mode-alist) to indicate tab format code.
(fortran-analyze-file-format): Return fortran-tab-mode-default if
no match.
Stefan Monnier [Mon, 14 Apr 2003 23:07:49 +0000 (23:07 +0000)]
(font-lock-maximum-size, font-lock-verbose): Remove.
(font-lock-multiline, font-lock-fontified, font-lock-set-defaults):
Move back to font-lock.el
(font-lock-default-function): Use font-lock-mode-internal.
Stefan Monnier [Mon, 14 Apr 2003 23:07:39 +0000 (23:07 +0000)]
(font-lock-multiline, font-lock-fontified)
(font-lock-set-defaults): Move back from font-core.el and merge
it back with font-lock-set-defaults-1.
(font-lock-mode-internal): New function (basically the body of
the old font-lock-mode minor mode).
Stefan Monnier [Mon, 14 Apr 2003 19:58:05 +0000 (19:58 +0000)]
(latex-mode-map): Bind latex-split-block to C-c C-s.
(tex-font-lock-keywords-2): Comment out unused var `type'.
(tex-guess-mode): New name for old `tex-mode'.
(tex-mode): Make it a derived mode of text-mode.
(plain-tex-mode, latex-mode): Change parent from text-mode to tex-mode.
(tex-common-initialization): Don't setup syntax-table any more.
(tex-validate-buffer): Remove unused var `oend'.
Use with-current-buffer and line-beginning-position.
(tex-recenter-output-buffer): Remove unused var `old-buffer'.
(latex-indent): Return `noindent' if no indentation can happen.
(doctex-font-lock-^^A, doctex-font-lock-syntactic-face-function)
(doctex-font-lock-syntactic-keywords, doctex-font-lock-keywords)
(doctex-mode): New funs for DocTeX mode, derived from LaTeX mode.
(fortran-previous-statement): Check for fortran-continuation-string.
(fortran-calculate-indent): Do not add extra whitespace to strings
broken over lines. Remove superfluous progn.
(fortran-fill): Handle long strings that must be broken over lines.
Kai Großjohann [Sun, 13 Apr 2003 12:46:11 +0000 (12:46 +0000)]
From Michael Albinus <Michael.Albinus@alcatel.de>.
(ange-ftp-expand-symlink): If result of
expansion is a symlink, expand again.
(ange-ftp-file-symlink-p): Return target of symlink literally.
Stefan Monnier [Sat, 12 Apr 2003 23:13:03 +0000 (23:13 +0000)]
(change-log-version-number-search): Fix old bug.
(add-change-log-entry): Avoid inserting the same funname again.
(add-log-indent-text): New var.
(add-log-indent): New fun.
(change-log-mode): Use it.
Stefan Monnier [Sat, 12 Apr 2003 22:21:18 +0000 (22:21 +0000)]
Don't autoload all these defcustoms.
(browse-url-default-macosx-browser): New fun.
(browse-url-browser-function): Use it for system-type = darwin.
(browse-url-usr1-signal): Remove.
(browse-url-mosaic): Use SIGUSR1 directly instead.
(browse-url-gnome-moz-program): New var.
(browse-url-gnome-moz, browse-url-default-browser): Use it.
(f90-join-lines): Make it behave more like the standard function
`join-line' - join with previous line, unless an argument supplied.
Join comments correctly. No longer has a meaningful return
value, no longer fills (seems contradictory to join AND fill).
(f90-fill-region, f90-menu): Adapt for new f90-join-lines.
Stefan Monnier [Sat, 12 Apr 2003 20:28:10 +0000 (20:28 +0000)]
Use push, with-current-buffer, dolist, ...
(byte-compile-const-variables): New var.
(byte-compile-close-variables): Reset it.
(byte-compile-file-form-defvar, byte-compile-defvar): Update it.
(byte-compile-const-symbol-p): Now arg `value' to check defconsts.
(byte-compile-variable-ref): Use it and improve warning message.
(byte-compile-check-lambda-list): Use byte-compile-const-symbol-p.
(byte-compile-lapcode): Remove unused vars.
(byte-compile-eval): Fix thinko in handling of old-autoloads.
(byte-recompile-directory): Use the expanded form for directory.
(byte-compile-track-mouse): Use modern backquote syntax.
(byte-compile-defvar): Detect and properly handle (defconst a).
(byte-compile-defalias-warn): Remove unused arg `alias'.
(byte-compile-defalias): Update call.
Stefan Monnier [Sat, 12 Apr 2003 19:04:11 +0000 (19:04 +0000)]
(server-socket-name): Use new safe location for socket.
(server-ensure-safe-dir): New fun.
(server-start): Use it.
(server-process-filter): Re-enable the -eval feature.
* help.el (describe-minor-mode): New function implementation.
Accept both minor mode string and minor mode indicator.
(describe-minor-mode-completion-table-for-indicator)
(describe-minor-mode-completion-table-for-symbol): New functions.
minor-mode-list is used here.
(describe-minor-mode-from-symbol): renamed
from (old) describe-minor-mode. Use
describe-minor-mode-completion-table-for-symbol.
Don't use eval. Just use symbol-name.
(describe-minor-mode-from-indicator): Document is updated.
Use `format-mode-line'. Use
describe-minor-mode-from-symbol instead of
describe-minor-mode.
Use describe-minor-mode-completion-table-for-indicator.
(expand-minor-mode-indicator-object): removed.
(lookup-minor-mode-from-indicator): remove the fist white
space from both indicator and anindicator before comparing them.
* bindings.el (mode-line-major-mode-keymap)
(mode-line-minor-mode-keymap): defined keys for the maps
here in `defvar'.