1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

10262 Commits

Author SHA1 Message Date
Kenichi Handa
7d862e0779 (rmail-enable-multibyte): New variable
(rmail): Bind coding-system-for-read to raw-text.  Set the buffer
multibyte if necessary.
(rmail-convert-file): Call rmail-decode-babyl-format only when we
don't have to call rmail-convert-to-babyl-format.
(rmail-decode-babyl-format): If rmail-file-coding-system is nil,
detect it.
(rmail-get-new-mail): Bind rmail-enable-multibyte locally.
(rmail-convert-to-babyl-format): Check the value of
rmail-enable-multibyte instead of enable-multibyte-characters.
1998-02-20 01:45:50 +00:00
Kenichi Handa
295baf1f72 (setup-chinese-cns-environment): Correct
the settting of default-input-method.
1998-02-20 01:45:21 +00:00
Kenichi Handa
1f77639917 (select-safe-coding-system): Kill the
warning buffer before returning.
1998-02-20 01:44:10 +00:00
Kenichi Handa
a2b4abc18b (after-insert-file-set-buffer-file-coding-system): Call set-buffer-multibyte
instead of directly setting enable-multibyte-characters to nil.
1998-02-20 01:44:10 +00:00
Kenichi Handa
66353e86d1 * subr.el (sref): Doc-string added. 1998-02-20 01:43:38 +00:00
Simon Marshall
9c8de95c2a Keyword doc fixes and keyword tweaks. 1998-02-18 09:12:24 +00:00
Dave Love
aa7a8f0ee8 (sgml-mode-common): Downcase key for
assoc so upper-case markup works.
(sgml-attributes, sgml-tag-help): Likewise.
1998-02-17 20:08:22 +00:00
Richard M. Stallman
f014d22e07 (c-copy-tree): New function.
(c-initialize-builtin-style): Use c-copy-tree.
1998-02-17 07:26:46 +00:00
Richard M. Stallman
87f235fb1b (c-enable-xemacs-performance-kludge-p): New variable.
(c-default-style): Start doc string with *.

(c-default-style): Renamed from c-site-default-style.
1998-02-17 07:14:36 +00:00
Richard M. Stallman
0bacd8d0b2 (c-make-styles-buffer-local): Take an optional argument which switches
between make-variable-buffer-local and make-local-variable.  Generalize.

(c-offsets-alist): Three new syntactic symbols: innamespace,
namespace-open, namespace-close.  These support C++ namespace blocks.
Also, new syntactic symbol cpp-macro-cont, by default bound to
c-lineup-dont-change.  This symbol is assigned to subsequent lines of
a multi-line C preprocess macro definition.

(c-style-alist): "jdk" style for conformance with Sun's JDK style.

(c-set-style-2, c-initialize-builtin-style): Don't special case
"cc-mode", it's a derived style.  Fix setup of derived style
"cc-mode".  Introduce the new default style "user" which contains all
user customizations.
1998-02-17 07:13:59 +00:00
Richard M. Stallman
77e31a8d08 (c-mode, c++-mode, objc-mode, java-mode): Set
imenu-case-fold-search to nil.

(java-mode): Set c-method-key to nil.  I don't think this is necessary
for Java, and besides, the old value was inherited from Objective-C
which was clearly not right.

(c++-mode): Set c-extra-toplevel-key to c-C++-extra-toplevel-key.
(c-initialize-on-load): New variable, *not* customized.
1998-02-17 07:11:40 +00:00
Richard M. Stallman
f1063b2f66 Imenu support changed. 1998-02-17 07:10:49 +00:00
Richard M. Stallman
bb7830ef8a (c-postprocess-file-styles): If a file style or file offsets are set,
make the variables local to the buffer (via make-local-variable).

(c-java-method-key): Variable deleted.

(c-C-extra-toplevel-key)
(c-C++-extra-toplevel-key, c-extra-toplevel-key): New variables
which parameterize the search for additional top-level enclosing
constructs.

(c-mode-base-map): c-mark-function moved back to M-C-h.
1998-02-17 07:10:11 +00:00
Richard M. Stallman
e1c458ae08 (c-forward-syntactic-ws, c-backward-syntactic-ws):
Don't narrow, just make a simple check against the given limit.

(c-collect-line-comments): New function.

(c-literal-limits): New function that finds the start and end pos
of a comment or string surrounding point.

(c-literal-limits-fast): A faster variant of `c-literal-limits'
for newer Emacsen where the state returned from
`parse-partial-sexp' contains the starting pos of the last literal.

(c-parse-state): Use (c-point 'bod) instead of
beginning-of-defun directly.

(c-guess-basic-syntax): Fixed a few byte compiler warnings.

(c-backward-to-start-of-do): Break infloop for
invalid code, e.g. when someone types while (TRUE) { at the top of
a buffer, we shouldn't hang when the { is typed!

(c-backward-to-start-of-if): Ensure never
move forward, not even if point < lim.

(c-search-uplist-for-classkey): When searching up for a class key,
instead of hardcoding the extended search for "extern", use the new
variable c-extra-toplevel-key, which is language dependent.  For C++,
this variable includes the keyword "namespace" which will match C++
namespace introducing blocks.

(c-guess-basic-syntax): Support for recognizing C++ namespace
blocks, by elaborating on the mechanism used to find external
language blocks.  Searches which hardcoded "extern" now use
c-extra-toplevel-key, a language dependent variable.  Case clauses
that were modified: CASE 5A.1, CASE 5A.4, CASE 5F, CASE 5I, CASE
14A.

CASE 3: we can now determine whether we're at the beginning of a
 	cpp macro definition, or inside the middle of one. Set syntax to
 	'cpp-macro in the former case, 'cpp-macro-cont in the latter.  In
 	both cases, the relpos is the beginning of the macro.

(c-forward-syntactic-ws): Added code that skips forward over
multi-line cpp macros.

(c-beginning-of-macro): Moved, and made into a defsubst.  This
function can now actually find the beginning of a multi-line C
preprocessor macro.

(c-backward-syntactic-ws): Use c-beginning-of-macro to skip backwards
over multi-line macro definitions.

(c-in-literal, c-fast-in-literal): Use c-beginning-of-macro to
find out whether we're in a multi-line macro definition.

(c-fast-in-literal): Function which should be faster than
c-in-literal.  In XEmacs, this uses buffer-syntactic-context.
1998-02-17 07:08:44 +00:00
Richard M. Stallman
d5436a295e (c-point): In XEmacs, use scan-lists + buffer-syntactic-context-depth.
(c-emacs-features): Added autoload cookie.
1998-02-17 07:06:17 +00:00
Richard M. Stallman
28c236dee3 (c-beginning-of-statement)
(c-end-of-statement): Do not move by sentence in strings.

(c-beginning-of-statement): Major rewrite.

(c-beginning-of-defun, c-indent-defun):
Use (c-point 'bod) instead of beginning-of-defun directly.

(c-beginning-of-defun, c-end-of-defun): New commands.

(c-beginning-of-statement): When moving forward by sentences, because
we're either inside or at the start of a comment, be sure to limit
movement to only within the extent of the comment.

(c-electric-colon): Don't insert newlines before or after scope
operators, regardless of the value of c-hanging-colons.

(c-electric-brace): namespace-open and namespace-close braces can hang.

(c-comment-line-break-function): When breaking a
line-oriented comment, copy the comment leader from the previous
line instead of hardcoding it to "// ".  This ensures that
whitespace between the slashes and the text is preserved.

(c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-star, c-electric-semi&comma)
(c-electric-colon, c-electric-lt-gt, c-scope-operator)
(c-electric-backspace, c-electric-delete)
(c-indent-command, c-indent-exp, c-indent-defun)
(c-backslash-region, c-fill-paragraph): Add "*" to interactive spec.

(c-fill-paragraph): regexp-quote the
fill-prefix when search forward for the end of line oriented comments.
(c-backslash-region): Do not preserve the zmacs region (XEmacs).
1998-02-17 07:04:48 +00:00
Richard M. Stallman
eae8661813 (c-lineup-close-paren)
(c-indent-one-line-block): New indentation functions.

(c-semi&comma-no-newlines-before-nonblanks)
(c-semi&comma-no-newlines-for-oneline-inliners): New functions.

(c-lineup-dont-change): New lineup function that leaves the current
line's indentation unchanged.  Used for the new cpp-macro-cont
syntactic symbol.
1998-02-17 07:02:18 +00:00
Richard M. Stallman
881c84c72a (Info-summary): Clear buffer-read-only. 1998-02-17 03:56:42 +00:00
Richard M. Stallman
d2c2b88383 (info-complete): Rewrite minibuffer completion code.
(info-lookup-minor-mode, turn-on-info-lookup):
Added minor mode interface.
(info-lookup-minor-mode-string): New variable.
(info-lookup-minor-mode-map): New variable.

Provide a work-around if the custom library is not available.

(info-lookup-other-window-flag)
(info-lookup-highlight-face): Variables customized.

(info-lookup-alist): No longer customizable.
(info-lookup-add-help, info-lookup-maybe-add-help): Interface
functions for adding new modes.
(info-lookup-add-help*): New function.
(info-lookup-symbol-alist, info-lookup-file-alist): Variables deleted.
This info is specified now by calling info-lookup-maybe-add-help
and info-lookup-add-help.
1998-02-17 03:25:05 +00:00
Richard M. Stallman
ab2d0cdb53 (bibtex-autokey-names): Change number tag to integer.
(bibtex-include-OPTkey): Add non-nil default :value
for function, so that it can be selected.
(bibtex-entry-format): Replace repeat with set.
(bibtex-mode-hook):  Change :type to 'hook.
(bibtex-clean-entry-hook): Ditto.
(bibtex-add-entry-hook): Ditto.
(bibtex-autokey-before-presentation-hook): Change name to ->
`bibtex-autokey-before-presentation-function' as it is not hook.
(bibtex-autokey-get-namefield): Remove newlines unconditionally.

(bibtex-autokey): Fixed prefix.
(bibtex-user-optional-fields): Better `:type'.
(bibtex-autokey-names): Better `:type' and doc-fix.
(bibtex-mark-active): New function, taking care of Emacs variants.
(bibtex-run-with-idle-timer): Ditto.
(bibtex-mode-map): Change `[(control tab)]' to `[(meta tab)]'.
(bibtex-autokey-get-yearfield): Changed to accept year when year
field has field-delimiters. This is quick fix, there might
be better solution.
(bibtex-mode): Don't call idle timer with 0 seconds.
(bibtex-mode): Call easy-menu-add.

(bibtex-autokey-get-yearfield): Fixed problem with
parsing the year field.

(bibtex-comment-start): Font locking for comments added.

(autokey-name-case-convert, autokey-titleword-case-convert): Replace
autokey-preserve-case, adding flexibility to case conversion of author
names and titlewords.

(bibtex-autokey-get-titles): Non capitalized title words
are used for key generation as well.
(bibtex-member-of-regexp): Case is honoured for matches now.
(bibtex-autokey-titleword-ignore): Added entries provide compatibility
to former behaviour.

(bibtex-autokey-titleword-ignore): Title words found in
this list are always ignored (previously only at the beginning of the
title).  Replaces bibtex-autokey-titleword-first-ignore.
1998-02-16 05:42:08 +00:00
Richard M. Stallman
65c9d7855e (standard-display-european): If AUTO is nil,
clear multibyte in *scratch*, and load latin-1.
1998-02-16 03:03:46 +00:00
Stephen Eglen
8e7df2e62b (hexl-mode-exit): Remove hexl-follow-ascii-find from post-command-hook
when leaving hexl-mode.
1998-02-15 16:57:16 +00:00
Stephen Eglen
3cfa0ee92f File customized.
(msb-modes-key): New variable.
(msb--mode-menu-cond, msb--aggregate-alist): New functions.
(msb--split-menus): Check if msb-max-file-menu-items is nil.
(msb--format-title): Remove extra / after ~.
(msb--choose-file-menu): Prevent looping when examining ange-ftp directory
paths.
Redundant (function ...) forms around lambda functions removed.
Update copyright year.
1998-02-15 16:45:52 +00:00
Richard M. Stallman
4d7ce99c2f (sh-font-lock-keywords): Fontify sh-style function names in declarations. 1998-02-15 00:30:24 +00:00
Richard M. Stallman
6bc7c7a2a7 (info-complete): Display completions on second invocation at same point
or if initial guess is already ambiguous.
(info-look-completion): New variable.

(info-lookup-symbol-alist):
Added support for latex-mode, perl-mode, awk-mode, emacs-lisp-mode.
1998-02-14 22:46:12 +00:00
Richard M. Stallman
1a94abeac2 (comint-interrupt-subjob): Call comint-kill-input.
(comint-kill-subjob, comint-quit-subjob, comint-stop-subjob): Likewise.
1998-02-14 04:32:38 +00:00
Richard M. Stallman
6b10a52144 (jka-compr-compression-info-list): Fix previous change:
clear "append" flag for bzip.
1998-02-14 02:40:07 +00:00
Dave Love
d575e99d72 (scheme-imenu-generic-expression): Simplify regexps.
(dsssl-imenu-generic-expression): Likewise
(scheme-mode-variables): Set imenu-syntax-alist.
(dsssl-mode): Remove `!' from font-lock-defaults.  Set
imenu-syntax-alist.
1998-02-12 18:20:21 +00:00
Richard M. Stallman
bfaef6dca8 (cookie-snarf): Use match-beginning on the delimiter.
(cookie-delimiter): Handle single-% delimiter.
1998-02-12 03:10:53 +00:00
Richard M. Stallman
0775c032ae (sh-set-shell): Use standard-syntax-table if none other is specified. 1998-02-11 07:14:24 +00:00
Richard M. Stallman
06f7f0a00e (debugger-mode): Don't set enable-multibyte-characters here.
(debug): Use set-buffer-multibyte to clear enable-multibyte-characters.
1998-02-11 07:11:50 +00:00
Richard M. Stallman
c549c1bfda (msb--choose-file-menu): Save some debugging info.
(msb--toggle-menu-type): Pass arg to menu-bar-update-buffers.
(msb--init-file-alist): Delete spurious =.
1998-02-11 04:20:09 +00:00
Richard M. Stallman
a249d3a05a (describe-bindings): Fix interactive spec. 1998-02-11 00:29:47 +00:00
Dave Love
b5812513a4 (compilation-scroll-output): New variable.
(compile-internal): Use it.  Set lazy-lock-defer-on-scrolling.
1998-02-09 19:40:38 +00:00
Richard M. Stallman
4f493b7c94 (byte-optimize-form-code-walker): Only call compiler-macroexpand if
the function has a cl-compiler-macro property.
1998-02-09 00:19:00 +00:00
Richard M. Stallman
060c3cc98f (jka-compr-compression-info-list): Handle bzip. 1998-02-08 22:45:47 +00:00
Richard M. Stallman
24c5a085d6 (bibtex-autokey-year-length): Doc fix. 1998-02-08 21:05:11 +00:00
Richard M. Stallman
4a8f3b3db0 (occur): Apply default by hand after read-from-minibuffer.
No need to clear text props from the result.
(query-replace-read-args, map-query-replace-regexp):
Offer the FROM arg as the default for the TO arg.
1998-02-08 07:34:28 +00:00
Richard M. Stallman
8845349022 (iso-transl-define-keys): Don't add
nonascii-insert-offset to ASCII characters.
1998-02-07 05:04:28 +00:00
Richard M. Stallman
59fed268c3 (mouse-avoidance-fancy-hook): Do nothing if button is down.
(mouse-avoidance-exile-hook, mouse-avoidance-banish-hook): Likewise.
1998-02-06 21:56:29 +00:00
Richard M. Stallman
35c8b89862 (imenu-generic-expression): Doc fix.
(imenu--index-alist): Doc fix.
(imenu-create-index-function): Doc fix.
(imenu-prev-index-position-function): Doc fix.
(imenu-extract-index-name-function): Doc fix.
1998-02-06 21:55:42 +00:00
Richard M. Stallman
9d21b6279f (rmail-clear-headers): Handle the last header in a message correctly. 1998-02-06 06:57:40 +00:00
Richard M. Stallman
e8fb3d5a5f (easy-mmode-define-minor-mode): Fix
the doc strings used for the mode flag variable and the keymap.
Delete duplicate &optional's.
1998-02-06 06:12:29 +00:00
Richard M. Stallman
caf0dd7116 (font-lock-keywords): Doc fix. 1998-02-06 06:10:30 +00:00
Richard M. Stallman
a8ad43aa29 (describe-bindings): New command (formerly in keymap.c). 1998-02-05 03:26:45 +00:00
Richard M. Stallman
17ceb934e4 (byte-compile-output-as-comment):
Use the size in bytes for the #@ size integer.
1998-02-05 03:25:11 +00:00
Richard M. Stallman
4fb1703731 (suspend-hook, suspend-resume-hook): New defvars. 1998-02-04 21:04:41 +00:00
Stephen Eglen
d979dc2b3d Customized. 1998-02-04 19:24:34 +00:00
Dave Love
b499b50bea (vc-ignore-vc-files): New variable.
(vc-file-hook, vc-file-not-found-hook): Use it.
1998-02-04 14:20:15 +00:00
Kenichi Handa
4a027a0dfb Use aref instead of sref. 1998-02-04 11:25:47 +00:00