1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

20495 commits

Author SHA1 Message Date
Richard M. Stallman
4bbd5bc314 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Call bytepos_to_charpos.
Wrap in  if (1) ... else.
1998-01-01 02:46:10 +00:00
Richard M. Stallman
4c7b7eabfd (casify_region): Scan in bytes and chars.
(casify_object, casify_region): Declare str, workbuf as unsigned char.
1998-01-01 02:45:12 +00:00
Richard M. Stallman
3fa51c4e52 (marker.o): Depend on charset.h. 1998-01-01 02:44:17 +00:00
Richard M. Stallman
049749e656 (forward_point): Function deleted.
(Fforward_point): Just add.
(Fforward_char): Don't call forward_point, just add.
(Fforward_line): Use scan_newline.
(Fdelete_char): No need for forward_point, just add.
(Fdelete_backward_char): Handle bytes and chars.
(internal_self_insert): Handle bytes and chars.
1998-01-01 02:42:48 +00:00
Richard M. Stallman
ac98710cef (struct position): New field bytepos. 1998-01-01 02:40:05 +00:00
Richard M. Stallman
8458ede666 (command_loop_1): Use PT_BYTE when calling FETCH_BYTE.
Instead of Fforward_point, just add.
1998-01-01 02:39:04 +00:00
Richard M. Stallman
3f236a4066 (Fmake_indirect_buffer): Use set_marker_both.
(set_buffer_internal_1): Likewise.
(set_buffer_temp): Likewise.

(set_buffer_temp): Update BUF_PT_BYTE, BUF_BEGV_BYTE and BUF_ZV_BYTE.
(Fmake_indirect_buffer, set_buffer_internal_1):
Set up the pt, begv and zv markers with both kinds of position.
Set BUF_PT_BYTE, BUF_BEGV_BYTE, BUF_ZV_BYTE.
(Fget_buffer_create): Set BUF_..._BYTE.
1998-01-01 02:37:16 +00:00
Richard M. Stallman
1389ad718c (marker_byte_position): Renamed from marker_position.
(marker_position): New function returns the charpos.
(Fbuffer_has_markers_at): Test the marker's charpos.
(set_marker_restricted, Fset_marker): Set both kinds of position.
Optimize case where POSITION is a marker.
(set_marker_both, set_marker_restricted_both): New functions.
(Fmarker_position): Use the charpos.

(charpos_to_bytepos, bytepos_to_charpos): New functions.
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): New functions.
1998-01-01 02:35:09 +00:00
Richard M. Stallman
12adba3450 (redisplay_internal): Use scan_newline.
(try_window_id): Use scan_newline.
(display_text_line): Use scan_newline.

(pos_tab_indent): Moved from indent,c.  Now static.
Take POS in bytes and chars.  Callers changed.

(redisplay_window): Handle byte and char positions.
(try_window): Don't move W->start if it's already at right place.

(display_count_lines): Several changes in args.
Do the work directly.
(display_scan_buffer): Function deleted.
(decode_mode_spec): Pass new arg.
(message_log_check_duplicate): Take charpos and bytepos args.
(message_dolog): Use markers to update old PT, BEGV, ZV.
Use scan_newline.  Handle positions in bytes and chars.

(try_window): Pass bytepos to and from display_text_line.
(try_window_id): Likewise.  Use byte pos as well as charpos.
(redisplay_internal): Handle bytepos for tlbufpos.

(message): Cast last arg to doprnt.
1998-01-01 02:27:27 +00:00
Richard M. Stallman
b73ea88edf (unshow_buffer): Set PT with TEMP_SET_PT_BOTH.
(Fset_window_buffer): Use set_marker_both.
(Fselect_window, Fscroll_other_window, save_window_save): Likewise.
(Fset_window_configuration): Pass p->mark itself to Fset_marker
and set_marker_restricted_both.
(temp_output_buffer_show): Use set_marker_restricted_both.
(window_scroll): Save and restore both kinds of pointers.

(Fdelete_other_windows): Rely on vmotion to give bytepos.
Use set_marker_both.  Use byte positions.
(Frecenter): Likewise.
(Fmove_to_window_line): Use set_marker_both and Fgoto_char.
1998-01-01 02:07:14 +00:00
Richard M. Stallman
6ae1f27ebf (Fchars_in_string): Update call to CHAR_HEAD_P.
(chars_in_text, str_cmpchar_id, Fcompose_string): Likewise.

(Fchar_boundary_p): Always return 0.
(Fchars_in_region): Just subtract the arguments.
(chars_in_text): New function.
(Ffind_charset_region): Scan in bytepos as well as charpos.
1997-12-31 22:18:06 +00:00
Richard M. Stallman
ec7adf2664 (Finsert_file_contents): Update call to CHAR_HEAD_P.
(Fwrite_region): Use scan_newline.

(restore_point_unwind): Now static.  Use Fgoto_char.
(Funhandled_file_name_directory): Doc fix.
(Finsert_file_contents): Handle bytes vs chars.
(Fwrite_region): Handle bytes vs chars.
(a_write): Take args in bytes; handle annotations labeled in chars.
(e_write): Rename args.
(Funhandled_file_name_directory): Doc fix.
(a_write, e_write): Now static.
1997-12-31 22:16:35 +00:00
Richard M. Stallman
a9c26562b3 (Fminibuffer_complete_word): Handle bytes vs characters
when comparing buffer against string.
(temp_echo_area_glyphs): Save, update, delete text using
byte and char positions.
(read_minibuf): BACKUP_N counts bytes.
1997-12-31 21:56:00 +00:00
Richard M. Stallman
c399b46133 (CHAR_HEAD_P): Take char, not pointer, as arg.
(INC_POS, DEC_POS): Fix because arg is a bufpos.
(BUF_INC_POS, BUF_DEC_POS): New macros.
(INC_BOTH, DEC_BOTH): New macros.
1997-12-31 21:49:31 +00:00
Richard M. Stallman
a50545d958 (doprnt1): Call to CHAR_HEAD_P fixed. 1997-12-31 21:48:28 +00:00
Richard M. Stallman
aa406bac5f (describe_abbrev): Return void.
(write_abbrev): Return void.
(Fexpand_abbrev): Scan in bytepos along with charpos.
(Funexpand_abbrev): Use bytepos to delete the expansion.
1997-12-31 05:05:32 +00:00
Richard M. Stallman
92bb366afa (LIB_MOTIF): Define, if HAVE_LIBINTL.
(LIBX11_SYSTEM): Undo previous change.
1997-12-31 04:44:31 +00:00
Richard M. Stallman
fcf01ad3f0 (abort): New function. 1997-12-30 19:01:13 +00:00
Richard M. Stallman
813dbb2d58 (desktop-enable): New variable.
(after-init-hook): Add a hook to test desktop-enable.
(desktop-save-hook): Doc fix.
1997-12-29 20:58:19 +00:00
Richard M. Stallman
2d60724455 (Fcall_process): Cast new_argv for child_setup. 1997-12-28 19:19:00 +00:00
Richard M. Stallman
88623f1c40 (Fx_rotate_cut_buffers_internal): Doc fix. 1997-12-28 19:06:57 +00:00
Richard M. Stallman
6dd05c14f2 (Fread_command, Fread_variable): Fix previous change. 1997-12-27 08:16:00 +00:00
Richard M. Stallman
96f9054416 (Ftext_properties_at): Doc fix. 1997-12-26 22:51:41 +00:00
Richard M. Stallman
fad1559b93 Declare nonascii_insert_offset. 1997-12-26 20:45:22 +00:00
Richard M. Stallman
add0c45488 (undigestify-rmail-message): If in summary, switch to the Rmail buffer.
(unforward-rmail-message): Simplify using with-current-buffer.
1997-12-26 10:48:47 +00:00
Richard M. Stallman
1eff0ba1b7 (info-lookup-symbol-alist): Handle Emacs Lisp mode.
(info-lookup-make-completions): Catch errors one file at a time.
Use a special temp buffer, not the usual info buffer,
and never display it in a window.
1997-12-26 10:47:20 +00:00
Richard M. Stallman
d2e9bfae62 (HAVE_STRING_H): Add #undef.
[HAVE_STRING_H]: Include string.h.
1997-12-26 10:41:25 +00:00
Richard M. Stallman
dd9cda060f (Vminor_mode_overriding_map_alist): New variable.
(syms_of_keymap): Set up Lisp var.
(current_minor_maps): Use Vminor_mode_overriding_map_alist first,
then Vminor_mode_map_alist.
1997-12-26 10:38:56 +00:00
Richard M. Stallman
857686a6d3 Some comment, doc and bug fixes.
(ps-print-version): New version number (3.05.3) and doc fix.
(ps-output-string-prim, ps-begin-job, ps-control-character)
(ps-plot-region): Bug fix.
(ps-print-control-characters): New custom var.
(ps-string-escape-codes, ps-string-control-codes): New var.
(ps-color-device, ps-font-lock-face-attributes, ps-eval-switch)
(ps-flatten-list, ps-flatten-list-1): New fn.
(ps-setup): Update current setup.
(ps-begin-file): Adjust PostScript header file.
(ps-plot, ps-face-attribute-list): Little programming improvement.
(ps-print-prologue-1): Replace NumberOfZebra by ZebraHeight.
(ps-print-without-faces, ps-print-with-faces): Little reprogramming.
(ps-plot-with-face): Get color only on color screen device.
(ps-build-reference-face-lists): Handle obsolete
font-lock-face-attributes.
(ps-print-ensure-fontified): Little programming setting.
(ps-generate-postscript-with-faces): Adjust initializations, get color
only on color screen device.
(ps-generate): Replace (if A B) by (and A B).
(ps-do-despool): Dynamic evaluation for ps-lpr-switches,
Replace (if A B) by (and A B).
(color-instance-rgb-components, ps-color-values): Replace
pixel-components by color-instance-rgb-components.
(ps-xemacs-face-kind-p): Replace face-font by face-font-instance,
replace x-font-properties by font-instance-properties.
1997-12-25 18:33:52 +00:00
Richard M. Stallman
99783bde12 Customized.
(tags-revert-without-query): New option.
(tags-verify-table): Test tags-revert-without-query.
1997-12-25 01:11:47 +00:00
Richard M. Stallman
177c354919 (Info-mode): Doc fix. 1997-12-22 22:28:11 +00:00
Richard M. Stallman
44c816daa8 (dired-mark-sexp): Skip leading space in defining `uid'. 1997-12-22 22:09:22 +00:00
Richard M. Stallman
8557ea062c (mouse-avoidance-mode): Variable customized to automatically load the package. 1997-12-22 21:50:59 +00:00
Richard M. Stallman
eab0fb0126 (view-register): Show register type file-query. 1997-12-22 21:47:18 +00:00
Richard M. Stallman
5c2010f05d (previous-matching-history-element): Bind
case-fold-search to nil if REGEXP contains an uppercase letter.
(previous-matching-history-element, next-matching-history-element):
Doc fixes.
1997-12-22 21:33:35 +00:00
Dave Love
ac999fb92e (browse-url-path-regexp, browse-url-short-regexp,
browse-url-regexp): Variables deleted.  (They were moved to
thingatpt.el.)
(browse-url-filename-alist): Default now has leading ange-ftp-type
patterns so that the "^/+" pattern doesn't mung such names in
advance.
(browse-url-file-url): Don't do explicit ange-ftp path munging
here.
(browse-url-netscape-program): Doc addition.
1997-12-22 19:26:10 +00:00
Richard M. Stallman
8d7f1de352 (apropos-print): Pass t instead of DO-KEYS
when calling apropos-print-doc.
1997-12-22 07:39:09 +00:00
Richard M. Stallman
f0f68b256f (cc-imenu-objc-function): Use bufsubst-fun as a variable, not as a function. 1997-12-22 07:10:19 +00:00
Richard M. Stallman
9153492c3d Fix mailer-introduced garbling.
(msb--toggle-menu-type): Don't pass arg to menu-bar-update-buffers.
1997-12-22 06:06:54 +00:00
Richard M. Stallman
7612d61abd Fix copyright notice.
(msb--home-dir): Renamed from msb--home-path.
(msb--strip-dir): Renamed from msb--strip-path.
1997-12-22 02:33:25 +00:00
Richard M. Stallman
0eb3b336a8 Doc fixes. Changed append' to nconc'
in a number of places.  Changed the separator in menus
from "---" to "--" to work in Windows 95.
(msb--home-path): New internal variable to cache the value of $HOME.
(msb--strip-path): Now handles MSDOG style of file names.
(msb--init-file-alist): Now expands `buffer-file-name'.
(msb--format-title): New subroutine for `msb--choose-file-menu'.
(msb--choose-file-menu): Use msb--format-title.  Minor simplifications.
1997-12-22 02:26:17 +00:00
Richard M. Stallman
beffc8bb49 (LIBX11_SYSTEM) [HAVE_LIBINTL and MOTIF]: Add -lintl. 1997-12-21 02:44:46 +00:00
Richard M. Stallman
a3b81f96df (HAVE_LIBINTL): Add #undef. 1997-12-21 02:44:20 +00:00
Richard M. Stallman
7b3d6b9c1a (find-file-noselect): Fix previous change. 1997-12-21 02:34:59 +00:00
Richard M. Stallman
6b0f9bdfdd (isearch-mode-map): Don't count above 256
when setting up printing characters.
1997-12-21 02:33:57 +00:00
Richard M. Stallman
3b4490b3d1 (message2_nolog): Fix arg types. 1997-12-21 02:32:45 +00:00
Richard M. Stallman
e5c992983c (sys_signal): Undo previous change. 1997-12-21 02:28:52 +00:00
Richard M. Stallman
bab0036837 (jka-compr-insert-file-contents):
If enable-multibyte-characters is nil, decode as raw-text.
1997-12-21 02:26:48 +00:00
Richard M. Stallman
a59b172a76 (Fexecute_extended_command):
Save message_enable_multibyte and pass it to message2_nolog.
1997-12-21 02:19:17 +00:00
Richard M. Stallman
7da0b0d356 (Fgarbage_collect):
Save message_enable_multibyte and pass it to message2_nolog.
1997-12-21 02:17:50 +00:00