1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

17230 Commits

Author SHA1 Message Date
Karl Heuer
32d0864482 Include charset.h and coding.h.
(Fcall_process): Perform character code conversion of a process
arguments and the process output.
(Fcall_process_region): Encode coding of a text given to a
process.
1997-02-20 06:46:14 +00:00
Karl Heuer
40b2421cb0 (doc-string of `interactive'): Describe new code
letters `i', `z', and `Z'.
(Fcall_interactively): Handle them.
1997-02-20 06:45:50 +00:00
Karl Heuer
96b65d4ea9 (BEGV_ADDR, PT_ADDR, ZV_ADDR): Use macro POS_ADDR.
(Z_ADDR, BUF_GPT_ADDR, BUF_Z_ADDR): New macros.
(struct buffer): New members `category_table',
`direction_reserved', and `enable-multibyte-characters'.
(POS_ADDR): New macro used at all places instead of &FETCH_CHAR.
(FETCH_BYTE): New macro used at any places to check the argument
against an ASCII character.
(FETCH_MULTIBYTE_CHAR): New macro used at any places to get a
character code of the argument when it is known to be a multibyte
character.
(_fetch_multibyte_char_p, _fetch_multibyte_char_len): New
variables.
(FETCH_CHAR): Use macros FETCH_MULTIBYTE_CHAR and FETCH_BYTE.
1997-02-20 06:45:13 +00:00
Karl Heuer
3b06f8809c Include charset.h.
(Fget_buffer_create): Allocate an extra byte for a buffer, and
make it always 0 for anchoring.
(reset_buffer): Handle a new member `enable_multibyte_characters'
in the struct buffer.
(fix_overlay_before): New function.
(init_buffer_once): Handle new members in the struct buffer.
(syms_of_buffer): Declare new buffer local variables
`enable-multibyte-characters' and `direction-reserved'.
1997-02-20 06:44:32 +00:00
Karl Heuer
38a1965a3f (Fmake_char_table): Typo in doc-string fixed. Handle
the case that PURPOSE is nil (in a deeper char-table).
(Fmake_bool_vector): Make correct size of Lisp_Object for
bool-vector.
1997-02-20 06:43:51 +00:00
Karl Heuer
713c05740a The following changes are for new source codes related to Mule.
(XOBJ): Include fontset.o.
(obj): Include charset.o, coding.o, category.o, and ccl.o.
(lisp, shortlisp): Include Mule related elc files.
(buffer.o, cmds.o, dispnew.o, doprnt.o): Depend on charset.h.
(editfns.o, indent.o, insdel.o, keymap.o): Depend on charset.h.
(minibuf.o, xdips.o, xfaces.o, xselect.o): Depend on charset.h.
(data.o, print.o, lread.o): Depend on charset.h.
(callproc.o, fileio.o, process.o, term.o): Depend on charset.h and
coding.h.
(regex.o, search.o, syntax.o): Depend on charset.h and category.h.
(fontset.o): Depend on charset.h and fontset.h.
(xterm.o): Depend on charset.h, ccl.h, and fontset.h.
(category.o, ccl.o, charset.o, coding.o, fontset.o): New targets.
1997-02-20 06:43:16 +00:00
Karl Heuer
5a255667cc (Fpos_visible_in_window_p): Bug fix. Specify big
negative number for the argument TOHPOS of compute_motion().
We don't need to calculate to (HPOS==0), but can stop immediately
when VPOS pasts HEIGHT.
1997-02-20 06:42:13 +00:00
Karl Heuer
fafd594b01 (struct position): New member tab_offset to accumulate tab offset. 1997-02-20 06:41:36 +00:00
Karl Heuer
1c9241f53a (display_text_line): Introduce new local variable
rev_dir_bit to display right to left characters (not yet used).

(message): Use FRAME_MESSAGE_BUF_SIZE().
(redisplay_internal): Add canceling code for continuation at
wide-column.
(display_text_line): Don't just decrement left_edge->bufpos,
it may be multi-byte character, use DEC_POS instead.

(try_window): Change the way of calculation of tab
offset.  We now use val.tab_offset to maintain tab offset.
Removed local variable tab_offset.
(try_window_id): Likewise.

(pos_tab_offset): Return COL (Modulo is no longer valid).
Add the line to set tab_offset member.
Use pos.tab_offset.

(redisplay_window): Specify big negative number for TOHPOS
of compute_motion().
(try_window_id): Likewise.

(tri_window_id): Specify "1 << (BITS_PER_SHORT - 1)" to
express "Don't care".

Include charset.h, coding.h, and process.h.
(display_text_line): Handle multibyte characters.
(display_mode_line): Pay attention to wide-column characters.
(decode_mode_spec_coding): New function.
(decode_mode_spec): Handle %-constructs `%z' and `%Z' to print
coding system mnemonics.
(display_string): Handle multibyte characters.
1997-02-20 06:40:53 +00:00
Karl Heuer
a997a7ca07 (current_column_bol_cache): New variable. This makes
move_to_column faster.
(current_column): Set current_column_bol_cache.
(current_column_1): Likewise.
(Fmove_to_column): Use current_column_bol_cache.

(current_column): When the buffer may have multi-byte
characters, call current_column_1.
(compute_motion): Handle multi-byte characters.
(current_column_1): Likewise.
(Fmove_to_column): Likewise.

Include "charset.h".
(compute_motion): Remove the variable PREV_VPOS.
Introduce new local variables (multibyte, wide_column, prev_pos,
contin_hpos, prev_tab_offset) to handle multi-byte characters and
wide-column characters.

(pos_tab_offset): Specify "- (1 << (BITS_PER_SHORT - 1))"
to express big negative number (for consistency with xdisp.c).

(vmotion): Specify "1 << (BITS_PER_SHORT - 1)" to
express "Don't care".
1997-02-20 06:39:27 +00:00
Karl Heuer
24e86043a4 (direct_output_forward_char): #if-0-out redundant
check against truncated text at end of line.
Add giving-up for buffers with reverse direction.
(remake_frame_glyphs): Use FRAME_MESSAGE_BUF_SIZE()
instead of FRAME_WIDTH, as the message may include multi-byte
character and the length may be longer than width.
(width_run_cache_on_off): Disable width-run-cache when
multi-byte characters are enabled.
(skip_invisible): Don't put the boundary in the middle of
multibyte characters.

(direct_output_forward_char): Bug fix.  Add
XFASTINT (w->left) for losing cursor check.

Include charset.h.
(update_line): Handle wide-column characters.
1997-02-20 06:35:00 +00:00
Karl Heuer
f90080d4aa Require fontset. Create fontsets from
default-fontset-spec, X resources, and "-fn" command line
argument.
1997-02-20 05:51:26 +00:00
Karl Heuer
ee0a4f29f9 (sendmail-coding-system): New variable.
(sendmail-send-it): Perform code conversion on sending mail
according to sendmail-coding-system.
1997-02-20 05:50:19 +00:00
Karl Heuer
79501c8dd3 (x-get-selection): Set default data-type of selection
to COMPOUND_TEXT.
(selection-converter-alist): Add an entry for COMPOUND_TEXT.
1997-02-20 05:49:58 +00:00
Karl Heuer
d0c3269a29 (rmail-file-coding-system): New variable.
(rmail-insert-inbox-text): Perform character code conversion
according to rmail-file-coding-system.
(rmail-only-expunge): Pay attention to multibyte characters.
1997-02-20 05:49:08 +00:00
Karl Heuer
742d416fcc (occur): Pay attention to multibyte characters. 1997-02-20 05:48:39 +00:00
Karl Heuer
f8e2c40cde (show-paren-function): Handle multibyte characters. 1997-02-20 05:48:19 +00:00
Karl Heuer
51a02226c2 (mouse-set-font): Handle fontset. 1997-02-20 05:47:42 +00:00
Karl Heuer
5e14f0f5f1 Load mule specific files. 1997-02-20 05:47:23 +00:00
Karl Heuer
f46d509102 (isearch-mode-map): Define
isearch-toggle-input-method and
isearch-toggle-specified-input-method in the map.
(isearch-multibyte-characters-flag): New variable.
(isearch-mode): Initialize it to nil.
(isearch-printing-char): Handle multibyte characters.
(isearch-message-prefix): Include title of input method if
necessary in the prefix of message.
1997-02-20 05:46:22 +00:00
Karl Heuer
0634ea78a0 (help-with-tutorial): Prefix argument to specify a
language interactively.
1997-02-20 05:45:01 +00:00
Karl Heuer
82d0954a23 (find-file, find-file-other-window,
find-file-read-only, find-file-read-only-other-window,
find-file-read-only-other-frame, find-alternate-file-other-window,
find-alternate-file): With a prefix argument, enable users to
specify a coding system interactively.
(find-file-noselect): Describe optional arguments NOWARN and
RAWFILE in the doc-string.
(write-file, insert-file, append-to-file): Accept a prefix
argument to enable users to specify a coding system interactively.
(revert-buffer): Read an auto-saved file without any code
conversion.
1997-02-20 05:44:24 +00:00
Karl Heuer
9a06295dcf (debugger-mode): Disable multibyte character handling
in Debugger mode.
1997-02-20 05:41:01 +00:00
Karl Heuer
b8575ac32e (byte-compile-file): Write a compiled file without
any code conversion.
1997-02-20 05:40:01 +00:00
Karl Heuer
a8f15301e6 (update-file-autoloads): Read loaddefs.el without
any code conversion.
1997-02-20 05:39:18 +00:00
Karl Heuer
50ef36f521 (nnheader-insert-head): Handle the case that the
length of header is changed because of code conversion.
1997-02-20 05:38:08 +00:00
Karl Heuer
d5d99b8075 (kill-forward-chars, kill-backward-chars): Pay
attention to multibyte characters.
(what-cursor-position): With a prefix argument, print detailed
info of a character on cursor position.
(transpose-subr-1): Pay attention to multibyte characters.

(do-auto-fill): Handle `kinsoku' processing.
1997-02-20 05:35:12 +00:00
Karl Heuer
c9d611f447 (do-kinsoku): New variable.
(fill-region-as-paragraph): Handle `kinsoku' processing.
1997-02-20 05:33:51 +00:00
Eli Zaretskii
167d14181c (compile-mouse-goto-error): Move to end of line
before calling `compile-reinitialize-errors', so that it always
sees the entire filename.
1997-02-19 15:48:50 +00:00
Noah Friedman
9d497c0123 (eldoc-message-commands): Doc fixes.
(eldoc-message): Make function, not macro.

(eldoc-last-message): New internal variable.
(eldoc-mode): Initialize it to nil.
(eldoc-message): Use it.
(eldoc-print-current-symbol-info): Use it.

(eldoc-pre-command-refresh-echo-area): New function.
(eldoc-mode): Put it on pre-command-hook if in XEmacs or using idle timers
in Emacs.

(eldoc-message-commands-table-size): New constant.
(eldoc-add-command): Use it to initialize eldoc-message-commands.

(eldoc-display-message-no-interference-p): New function.
(eldoc-display-message-p): Use it.

(eldoc-print-fnsym-args, eldoc-print-var-docstring): Arg sym no longer
optional.
Do not initialize arg if nil.

(eldoc-forward-sexp-safe): Function deleted.
(eldoc-beginning-of-sexp): New function.
(eldoc-fnsym-in-current-sexp): Use eldoc-beginning-of-sexp.
Use eldoc-current-symbol to get symbol at point.

(eldoc-function-argstring-from-docstring-method-table): Forge docstrings
for `and', `or', `list', `+', and `-'.

(eldoc-add-command-completions): New function.
(eldoc-add-command): Take list of args.
No longer interactive.

(eldoc-remove-command-completions): New function.
(eldoc-remove-command): Take list of args.
No longer interactive.

top level: Initialize eldoc-message-commands using
eldoc-add-command-completions.
1997-02-19 10:24:26 +00:00
Roland McGrath
2884cbf0e8 (update-autoloads-from-directory): Get absolute file names from
directory-files, and expand generated-autoload-file.  Subdirs happy now.
1997-02-17 21:44:59 +00:00
Karl Heuer
b89d503573 Delete duplicate inclusion of fcntl.h
and duplicate #undefs of open, read, write, close.
1997-02-14 00:07:22 +00:00
Richard M. Stallman
2bb00bdd36 (vc-do-command): If OKSTATUS is nil, ignore errors.
(vc-backend-release): For RCS, pass nil for OKSTATUS.
1997-02-10 20:43:37 +00:00
Richard M. Stallman
7bf5e9e404 (scan_lists): Signal errors using scan-error.
(syms_of_syntax): Set up Qscan_error.
1997-02-10 09:47:12 +00:00
Richard M. Stallman
2d955a501c (Fminibuffer_message): New function.
(syms_of_minibuf): Set up Lisp function.
1997-02-10 09:46:16 +00:00
Richard M. Stallman
86bfaffe40 (isearch-search): Refuse to match invisible text.
(isearch-range-invisible): New function.
(search-invisible): New user option.
1997-02-10 09:41:31 +00:00
Richard M. Stallman
284a88a318 (mouse-buffer-menu): Group buffers by major modes if that seems to be useful.
(mouse-buffer-menu-mode-groups): New variable.
(mouse-buffer-menu-alist, mouse-buffer-menu-split): New subroutines
broken out of mouse-buffer-menu.
1997-02-10 00:10:16 +00:00
Richard M. Stallman
1884e32542 (rmail-sort-messages): Preserve point
with respect to the the current message.
1997-02-10 00:08:51 +00:00
Karl Heuer
5ff083afb4 Fix previous change. 1997-02-09 23:02:19 +00:00
Karl Heuer
8c9dbabe64 (compare-windows): Make more efficient use of
result from compare-buffer-substrings.
1997-02-09 22:55:17 +00:00
Eli Zaretskii
49683a1376 * (compilation-process-setup-function): New variable.
(compile-internal): Call compilation-process-setup-function if
it is non-nil.
1997-02-09 16:03:50 +00:00
Eli Zaretskii
8785daf347 * (diff-process-setup): New function, sets up the
compilation-exit-message-function so that it works with both
asynchronous and synchronous sub-processes.
(diff): Bind compilation-exit-message-function.  Run
compilation-finish-function when compile-internal returns if async
processes aren't supported.
1997-02-09 15:57:11 +00:00
Richard M. Stallman
7ada1a07ac (define-derived-mode): Add derived-mode-parent
property to the defived mode command name.
1997-02-08 20:17:04 +00:00
Richard M. Stallman
db98a733f2 (change_window_height): Take size from multiple siblings,
nearest ones first, when that can be done without deleting any of them.
1997-02-08 18:34:53 +00:00
Richard M. Stallman
c5fe2ff17b Handle multiple Info buffers.
(Info-tag-table-marker): Initialize to nil.
(Info-tag-table-buffer): New variable.
(Info-find-node): Don't switch buffers if already in Info mode.
Use Info-tag-table-buffer to support multiple Info buffers.
(Info-read-subfile): Don't switch to *info* buffer.
(Info-build-node-completions): Handle buffer local bindings for
Info-tag-table-marker.
(Info-search): Add a save-excursion.
(Info-mode): Make Info-tag-table-buffer buffer-local.
Make a different marker in Info-tag-table-marker for each buffer.
(Info-kill-buffer): New function, on kill-buffer-hook.
1997-02-08 18:34:21 +00:00
Richard M. Stallman
9317a85d0f (scroll_preserve_screen_position): New variable.
(keys_of_window): Set up Lisp var.
(window_scroll): If scroll_preserve_screen_position is 0,
behave the old way (advancing point the minimum distance).
1997-02-08 15:50:17 +00:00
Richard M. Stallman
50b3531c82 (auto-show-mode): Doc fix. 1997-02-06 23:23:32 +00:00
Richard M. Stallman
d331bcad5b (Feval_buffer): Doc fix. 1997-02-06 09:13:29 +00:00
Erik Naggum
094e8ee4ac (edmacro-parse-keys): Remove redundant test for ?. 1997-02-05 01:33:07 +00:00
Erik Naggum
96c188b08c (file-relative-name): Protect the match-data. 1997-02-05 01:32:44 +00:00