1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-18 14:11:38 -08:00
Commit graph

8356 commits

Author SHA1 Message Date
Jim Blandy
fd2777e08f Use the term scroll bar', instead of scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

        Don't generate switch-frame events by checking Vlast_event_frame;
	use a separate variable for that bookkeeping.  In order to
	generate them properly, we may need to fiddle with it.
	* keyboard.c (internal_last_event_frame): New variable.
	(command_loop_1): Check internal_last_event_frame, not
	Vlast_event_frame.
	(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
	internal_last_event_frame.
	(kbd_buffer_get_event): Check internal_last_event_frame to decide
	whether to generate a switch-frame event.  Set Vlast_event_frame
	after each event.
	(init_keyboard): Initialize both Vlast_event_frame and
	internal_last_event_frame.
	* keyboard.h (internal_last_event_frame): Add extern declaration
	for this.
	* frame.c (Vlast_event_frame): Remove external declaration for
	this.
	(Fselect_frame): Set internal_last_event_frame to Qnil to force a
	switch-frame event, not Vlast_event_frame; the latter is supposed
	to convey information to the user.
1993-03-02 08:14:57 +00:00
Jim Blandy
3c37094348 * keyboard.c (kbd_buffer_get_event): Protect assignment to
Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.

	Use the term `scroll bar', instead of `scrollbar'.
	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

        Don't generate switch-frame events by checking Vlast_event_frame;
	use a separate variable for that bookkeeping.  In order to
	generate them properly, we may need to fiddle with it.
	* keyboard.c (internal_last_event_frame): New variable.
	(command_loop_1): Check internal_last_event_frame, not
	Vlast_event_frame.
	(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
	internal_last_event_frame.
	(kbd_buffer_get_event): Check internal_last_event_frame to decide
	whether to generate a switch-frame event.  Set Vlast_event_frame
	after each event.
	(init_keyboard): Initialize both Vlast_event_frame and
	internal_last_event_frame.
	* keyboard.h (internal_last_event_frame): Add extern declaration
	for this.
	* frame.c (Vlast_event_frame): Remove external declaration for
	this.
	(Fselect_frame): Set internal_last_event_frame to Qnil to force a
	switch-frame event, not Vlast_event_frame; the latter is supposed
	to convey information to the user.

	* keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
1993-03-02 08:14:15 +00:00
Jim Blandy
0a3e4d653c * data.c (Fstring_to_number): Declare p to be an unsigned char, to
match the data field of strings.

	* data.c (Fstring_to_number): Just skip tabs and spaces; don't use
	the <ctype.h> macros.  The <ctype.h> stuff apparently varies from
	locale to locale more than we'd like.  Don't include <ctype.h>.
1993-03-02 08:11:01 +00:00
Jim Blandy
c39e6cc261 * cmds.c (Fnewline): Doc fix. 1993-03-02 08:10:24 +00:00
Jim Blandy
bec44fd6f6 * buffer.c (buffer-undo-list): Doc fix.
* buffer.c (syms_of_buffer): Add the extra argument to the
	commented-out DEFVAR_PER_BUFFER for `mode-line-format', so
	make-docfile will find the docstring properly.
1993-03-02 08:09:42 +00:00
Jim Blandy
0a68e87bbd * term/x-win.el (x-switch-definitons): Use the proper names for
the scroll bar parameters.

	Use the term `scroll bar', instead of `scrollbar'.
	* term/x-win.el, frame.el, mouse.el: Terminology changed.
	* scrollbar.el: Renamed to scroll-bar.el.
1993-03-02 07:35:52 +00:00
Jim Blandy
b6341cd1d2 * timer.el (run-at-time): Doc fix. 1993-03-02 07:33:41 +00:00
Jim Blandy
1537a263af * simple.el (kill-region): If the buffer is read-only, call
`barf-if-buffer-read-only' instead of just `ding', to get the
	appropriate error condition and message.

	* simple.el (insert-buffer): Make sure this returns nil.

	* simple.el (quoted-insert): Use insert-char, instead of writing
	out the loop.
1993-03-02 07:33:17 +00:00
Jim Blandy
bf3c8a7000 Use the term scroll bar', instead of scrollbar'.
* term/x-win.el, frame.el, mouse.el: Terminology changed.
	* scrollbar.el: Renamed to scroll-bar.el.
1993-03-02 07:29:47 +00:00
Jim Blandy
5ba2dc3fd3 * mouse.el (mouse-split-window-vertically): If the user clicks too
close to the top or bottom of a window, split at the closest
	reasonable line.  Give a helpful error message if the window is
	too small to be split anywhere.
	(mouse-split-window-horizontally): Similar changes.
1993-03-02 07:29:05 +00:00
Jim Blandy
44c327f959 * info.el (Info-directory-list): Doc fix; it is set according to
INFOPATH, not INFODIR.
	(Info-find-node): Don't try to set the info buffer's directory
	according to Info-directory; that variable doesn't exist any more.
	Instead, let Info-insert-dir set the current directory.
	(Info-insert-dir): Properly check for upper- and lower-case forms
	of "dir", with and without ".info" extension.  Set the buffer's
	default-directory to the directory containing the first dir file
	we find, and cache it in Info-dir-contents-directory.
	(Info-dir-contents-directory): New variable, to cache the
	directory we decided to use as the merged directory's
	default-directory.
1993-03-02 07:27:17 +00:00
Jim Blandy
b9a4b5011e * hexl.el (hexl-mode-map): When initializing, remember that the
argument to key-binding is a key sequence, not a single key.
1993-03-02 07:26:43 +00:00
Jim Blandy
0ca90494a9 * frame.el (new-frame): Doc fix.
Use the term `scroll bar', instead of `scrollbar'.
	* term/x-win.el, frame.el, mouse.el: Terminology changed.
	* scrollbar.el: Renamed to scroll-bar.el.
1993-03-02 07:25:44 +00:00
Jim Blandy
4969329862 * etags.el (find-tag-other-window): If another window is already
displaying the tag's buffer, explicitly set that window's point to
	the tag's position.
1993-03-02 07:22:33 +00:00
Jim Blandy
6798a38571 * autoload.el (generate-file-autoloads): Add another
save-excursion so that point is before the generated autoloads
	after we scan the file.
1993-03-02 07:21:44 +00:00
Jim Blandy
eaa974e13b These changes were actually made by Richard; I stole his RCS lock.
* frame.el (initial-frame-alist, minibuffer-frame-alist,
	pop-up-frame-alist, new-frame): Doc fixes.

	* frame.el (set-pointer-color): Renamed to set-mouse-color.

	* frame.el (set-border-color): New function.
1993-03-02 07:06:47 +00:00
Jim Blandy
dc14eed224 These are in preparation for a more thorough renaming to occur soon.
* scroll-bar.el: Provide `scroll-bar', not `scrollbar'.
	* term/x-win.el: Require `scroll-bar', not `scrollbar'.
1993-03-02 02:11:18 +00:00
Jim Blandy
b16795eb99 * term/x-win.el: Require scroll-bar', not scrollbar'. 1993-03-02 02:03:41 +00:00
Richard M. Stallman
7ea13762ef (Info-insert-dir): Make menu items in Top node
pointing each of the other nodes.

(Info-insert-dir): New function.
(Info-find-node): Use Info-insert-dir to visit dir file.
1993-03-01 09:25:44 +00:00
Richard M. Stallman
a994e16134 Don't include dispextern.h more than once.
(INTERVAL_VISIBLE_P): NILP test was backwards.
1993-03-01 09:13:26 +00:00
Richard M. Stallman
a7b19b15b3 (syms_of_cmds): Typo in last change. 1993-03-01 09:02:07 +00:00
Richard M. Stallman
da9319d540 (record_property_change): Typo in last change.
(Fprimitive_undo): Handle property-change undo entry.
(record_property_change): New function.
1993-03-01 09:01:13 +00:00
Richard M. Stallman
7651e1f53f (print--string case):
Any non-null interval means print intervals.
Get rid of var obj1; just use obj.

(print): Never declare OBJ arg as `register'.
Special handling for strings with intervals.
(print_intervals): New function.
1993-03-01 08:59:36 +00:00
Richard M. Stallman
748ef62fff (read1--strings with properties case):
Detect end of list, and invalid syntax, using recursive read1 calls.

(read1): Handle reading strings with properties.
1993-03-01 08:58:52 +00:00
Richard M. Stallman
d4b530ad2d (Fadd_text_properties, Fremove_text_properties):
Add len>0 as condition for main loop.
Abort if reach a null interval.
(Fset_text_properties): Abort if reach a null interval.
(Ftext_properties_at, Fget_text_property):
Return nil if POS is end of OBJECT.
(add_properties): Use NILP to test result of Fequal.
No longer inline.
(remove_properties): No longer inline.
(set_properties): Total rewrite as function.
(validate_interval_range): Don't alter *begin at end of buffer.
But do search for a position just before the end.
Return null for an empty string.

(validate_interval_range): Allow 0 as position in string.
Add 1 to specified string positions.
(Fprevious_single_property_change): Subtract 1 if object is string.
(Fnext_single_property_change): Likewise.
(Fprevious_property_change, Fnext_property_change): Likewise.

(remove_properties): Call modify_buffer.
(add_properties): Likewise.

(Fadd_text_properties): Pass new arg to add_properties.
(Fremove_text_properties): Likewise.
(add_properties, remove_properties): New arg OBJECT.  Record undo info.
(Fput_text_property): New function.
1993-03-01 08:57:31 +00:00
Richard M. Stallman
323a7ad4fd (intervals_equal): Handle one arg null and other not.
(set_point): Considerable rewrite.  Handle intervals both
before and after the old and new point values.
Redo handling of invisible intervals, and of motion hooks.
(textget): New function.

(graft_intervals_into_buffer):
create_root_interval needs Lisp object arg.
Set tree to new root interval.
Don't test TREE_LENGTH if buffer has no intervals.
Rearrange code to copy properties so that it really
does merge the inserted ones into the inherited ones.
(traverse_intervals): Pass `arg' on recursive calls.
(split_interval_left): Use new_length as basis for length of new.

(traverse_intervals): New arg ARG.
1993-03-01 08:56:22 +00:00
Richard M. Stallman
16032db687 (del_range): Update point before offset_intervals. 1993-03-01 08:55:35 +00:00
Richard M. Stallman
75cf385a42 (emacs, temacs): Add @true to prevent Make confusion. 1993-02-28 22:29:46 +00:00
Richard M. Stallman
1f532861cb Error if company name is more than one word.
If $os is `sunos...', don't change it to manufacturer's name.
1993-02-27 21:56:28 +00:00
Richard M. Stallman
1c07d0a634 (syms_of_keyboard): Doc fix. 1993-02-26 21:09:25 +00:00
Richard M. Stallman
f1f2d09afd (walk-windows): Doc fix. 1993-02-26 06:28:04 +00:00
Richard M. Stallman
4a93c90596 (traverse_intervals): New arg ARG. 1993-02-25 20:24:43 +00:00
Richard M. Stallman
d393c06819 (mark_interval): Add ignored arg.
(mark_interval_tree): Pass new arg to traverse_intervals.
1993-02-25 20:24:25 +00:00
Richard M. Stallman
ec367ad6e6 (add-change-log-entry): Find end of first paragraph from after the header line. 1993-02-25 20:23:59 +00:00
Richard M. Stallman
a8a6776b57 (point-to-register): Make arg ARG optional.
(window-configuration-to-register): Likewise.
(frame-configuration-to-register): Likewise.
1993-02-25 06:39:57 +00:00
Jim Blandy
fe48f821ca * term/x-win.el (scroll-bar-mode, scroll-bar-mode): Move these
functions to scrolbar.el.
	* scrollbar.el (scroll-bar-mode, scroll-bar-mode): Here they are.
	Make scroll-bar-mode set the {vertical,horizontal}-scrollbars
	parameters in default-frame-alist, and modify all extant screens
	using the correct parameter names.
1993-02-25 00:38:55 +00:00
Roland McGrath
c922bc5514 (Ferase_buffer): Added interactive spec. 1993-02-24 23:37:46 +00:00
Richard M. Stallman
483c1fd3e2 (syms_of_buffer): Doc fix. 1993-02-24 23:20:51 +00:00
Richard M. Stallman
b26c217c09 (vc-find-file-hook): Discard vc status of file
if we will actually have to create the buffer.
1993-02-24 18:07:12 +00:00
Richard M. Stallman
09dd7e7e41 Formerly PROBLEMS.~3~ 1993-02-24 18:02:05 +00:00
Richard M. Stallman
9ea7cec1f3 Formerly PROBLEMS.~2~ 1993-02-24 17:56:09 +00:00
Richard M. Stallman
e686c647fd (syms_of_cmds): New var `overwrite-binary-mode'.
(internal_self_insert): Handle that var.
1993-02-24 08:59:25 +00:00
Richard M. Stallman
e453528878 (read_avail_input): Args to `kill' were backwards. 1993-02-23 18:49:33 +00:00
Jim Blandy
39d6eb8e8a Fix the fix. 1993-02-23 14:23:06 +00:00
Jim Blandy
8090eb098e * emacs.c (fatal_error_signal): Unblock the signal before we try
to deliver it to ourselves. #include "syssignal.h" to get the
	right definitions.
1993-02-23 14:18:00 +00:00
Jim Blandy
2471a2815b * abbrev.c (Fexpand_abbrev): Only copy the text we're going to
expand - from wordstart to wordend, not from wordstart to point -
	into the buffer.  There might be non-word text between wordend and
	point.
1993-02-23 14:17:11 +00:00
Jim Blandy
8dd926cab5 * .gdbinit (xprocess): New command. 1993-02-23 14:14:19 +00:00
Jim Blandy
5e808bc0d3 * make-dist: Only copy gmalloc.c if we couldn't link it.
Don't try to copy man/{README,Makefile} unless they actually exist.
1993-02-23 14:13:27 +00:00
Jim Blandy
1de6a9711d Removed assigment to foo in byte-compile-lambda. 1993-02-23 13:21:13 +00:00
Jim Blandy
ab8478d1f1 * Makefile.in (lisppath): Don't include externallispdir in this.
We're not sure whether we're even going to distribute the
	directory yet.
1993-02-23 11:55:05 +00:00