1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00
Commit graph

1160 commits

Author SHA1 Message Date
Richard M. Stallman
56ad32e118 Comment change. 1993-05-06 18:41:14 +00:00
Richard M. Stallman
92381c7cc8 (main): Handle -display like -d. 1993-05-06 17:04:56 +00:00
Richard M. Stallman
6648f23a73 (Fdisplay_buffer): Add space to prompt. 1993-05-04 22:13:52 +00:00
Jim Blandy
d03f79ef75 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL,
CHAR_META): Shift these all up one bit, back to where they were.
1993-05-04 13:02:26 +00:00
Jim Blandy
dfeccd2d13 Implement extra_keyboard_modifiers properly.
* keyboard.c (syms_of_keyboard): Doc fix for
	extra-keyboard-modifiers; use the same modifier bits as we do for
	characters.
	(read_char): Apply all the modifiers in extra_keyboard_modifiers
	to the input characters, so you can get hyper, super, and the rest
	of the gang.
	* xterm.c (x_emacs_to_x_modifiers): New function.
	(x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for
	consistency.  Callers changed.
	(XTread_socket): Apply x_emacs_to_x_modifiers to
	extra_keyboard_modifiers before setting the state member of the
	event; this will get all the modifiers on ASCII characters.

	* xterm.c (x_text_icon): Don't call XSetIconName; it should be
	unnecessary, and perhaps it's killing the icon pixmap.
1993-05-04 02:44:42 +00:00
Jim Blandy
f80dc88865 Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
* s/mach2.h: copied from the Emacs 18.59 distribution.
	Don't define NO_REMAP, define START_FILES as
	`pre-crt0.o' instead.  Define LIB_MATH as `-lm', to override the
	default `-lm -lc' (there is no libc on the NeXT).
	* ymakefile (STARTFILES): Allow config.h to set this value even if
	ORDINARY_LINK is defined.
	* unexnext.c: Fix subdirectories for the machine dependent include
	files for NeXTStep 3.0; #include <mach/mach.h> and
	<mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
	(getsectbyname): Remove prototype for this; the system #include
	files take care of that.
	(malloc_cookie): New variable.
	(unexec_doit): Set malloc_cookie to the result returned by
	malloc_freezedry.
	* emacs.c (main): Declare malloc_cookie to be extern, so that we can
	get the value set when we dumped and pass it to malloc_jumpstart.
	* systime.h: The NeXT has a timezone function.
1993-05-04 02:44:16 +00:00
Jim Blandy
d82222e114 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in
case we need them.
	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
	shift_modifier, ctrl_modifier, meta_modifier): Define these in
	terms of the CHAR_mumble macros, to avoid having the same thing
	defined in two places.

	Make the modifier manipulation functions more robust.  The old way
	caused a bug once, and probably would again.
	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
	shift_modifier, ctrl_modifier, meta_modifier): Shift these all
	down one bit in value, to avoid sign extension problems.
	* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
	* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
	what our table of modifier names can handle.
	(apply_modifiers): Don't abort if you see extra modifier bits,
	just remove them.
1993-05-04 02:39:39 +00:00
Jim Blandy
c2e4f49a68 * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
functions in sysdep.c.
	* sysdep.c (emacs_get_tty, emacs_set_tty): Here they are.
1993-05-04 02:39:05 +00:00
Jim Blandy
7f86bdacd5 * systime.h: Doc fix.
(EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a
	millisecond.  What's three orders of magnitude between friends?
	* dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the
	`milliseconds' argument by 1000 to get microseconds.

	Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
	* s/mach2.h: copied from the Emacs 18.59 distribution.
	Don't define NO_REMAP, define START_FILES as
	`pre-crt0.o' instead.  Define LIB_MATH as `-lm', to override the
	default `-lm -lc' (there is no libc on the NeXT).
	* ymakefile (STARTFILES): Allow config.h to set this value even if
	ORDINARY_LINK is defined.
	* unexnext.c: Fix subdirectories for the machine dependent include
	files for NeXTStep 3.0; #include <mach/mach.h> and
	<mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
	(getsectbyname): Remove prototype for this; the system #include
	files take care of that.
	(malloc_cookie): New variable.
	(unexec_doit): Set malloc_cookie to the result returned by
	malloc_freezedry.
	* emacs.c (main): Declare malloc_cookie to be extern, so that we can
	get the value set when we dumped and pass it to malloc_jumpstart.
	* systime.h: The NeXT has a timezone function.
1993-05-04 02:36:45 +00:00
Jim Blandy
68936329c2 * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
functions in sysdep.c.
	* sysdep.c (emacs_get_tty, emacs_set_tty): Here they are.

	* sysdep.c (emacs_set_tty): Call tcsetattr over and over again
	until it does all of what we ask it to, or returns an error.
1993-05-04 02:36:03 +00:00
Jim Blandy
9a76659df2 * search.c (Freplace_match): Arrange for markers sitting at the
beginning or end of the original text to float to the
	corresponding position in the replacement text.
1993-05-04 02:35:38 +00:00
Jim Blandy
f42be754b2 Arrange for Fy_or_n_p to put off switch-frame events.
* lread.c (read_filtered_char): New function, which contains the
	code which used to be in Fread_char, Fread_event, and
	Fread_char_exclusive; there was a lot of common code.
	(Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms
	of read_filtered_char.
	* lisp.h (read_filtered_char): Declare this extern here.
	* fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay
	switch-frame events.
1993-05-04 02:35:01 +00:00
Jim Blandy
59b4254d59 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in
case we need them.
	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
	shift_modifier, ctrl_modifier, meta_modifier): Define these in
	terms of the CHAR_mumble macros, to avoid having the same thing
	defined in two places.

	Arrange for Fy_or_n_p to put off switch-frame events.
	* lread.c (read_filtered_char): New function, which contains the
	code which used to be in Fread_char, Fread_event, and
	Fread_char_exclusive; there was a lot of common code.
	(Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms
	of read_filtered_char.
	* lisp.h (read_filtered_char): Declare this extern here.
	* fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay
	switch-frame events.

	Make the modifier manipulation functions more robust.  The old way
	caused a bug once, and probably would again.
	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
	shift_modifier, ctrl_modifier, meta_modifier): Shift these all
	down one bit in value, to avoid sign extension problems.
	* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
	* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
	what our table of modifier names can handle.
	(apply_modifiers): Don't abort if you see extra modifier bits,
	just remove them.

	* lisp.h (Qrange_error, Qdomain_error, Qsingularity_error,
	Qoverflow_error, Qunderflow_error): Add extern to these declarations.
1993-05-04 02:34:26 +00:00
Jim Blandy
cd8520b9d5 * keymap.c (Fdefine_prefix_command): Doc fix. 1993-05-04 02:33:19 +00:00
Jim Blandy
806451194b Implement extra_keyboard_modifiers properly.
* keyboard.c (syms_of_keyboard): Doc fix for
	extra-keyboard-modifiers; use the same modifier bits as we do for
	characters.
	(read_char): Apply all the modifiers in extra_keyboard_modifiers
	to the input characters, so you can get hyper, super, and the rest
	of the gang.
	* xterm.c (x_emacs_to_x_modifiers): New function.
	(x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for
	consistency.  Callers changed.
	(XTread_socket): Apply x_emacs_to_x_modifiers to
	extra_keyboard_modifiers before setting the state member of the
	event; this will get all the modifiers on ASCII characters.

	* keyboard.c (kbd_buffer_get_event): Don't generate switch-frame
	events if they'd only switch to the frame already selected.  This
	avoids lots of extra switch-frame events when using a separate
	minibuffer.

	* keyboard.c (Fcurrent_input_mode): New function.

	* keyboard.c (read_key_sequence): Let the `modifiers' variable in
	the code which deals with KEY being unbound be an int, not a
	Lisp_Object.

	Make the modifier manipulation functions more robust.  The old way
	caused a bug once, and probably would again.
	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
	shift_modifier, ctrl_modifier, meta_modifier): Shift these all
	down one bit in value, to avoid sign extension problems.
	* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
	* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
	what our table of modifier names can handle.
	(apply_modifiers): Don't abort if you see extra modifier bits,
	just remove them.
1993-05-04 02:32:22 +00:00
Jim Blandy
9083124bb7 * fileio.c (Fmake_symbolic_link): If a file already exists under
the link's filename, delete the file which the link
	would replace, not the file the link would point at.
1993-05-04 02:29:57 +00:00
Jim Blandy
4b16380868 * emacs.c (SEPCHAR): Instead of defining this to be ',' on VMS and
':' elsewhere, just have it default to ':' if not #defined, and
	#define it to be ',' in s/vms.h; OS/2 will need it to be ';'.
	* s/vms.h (SEPCHAR): #define this to be ','.
	* s/template.h (SEPCHAR): Mention this.

	Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
	* s/mach2.h: copied from the Emacs 18.59 distribution.
	Don't define NO_REMAP, define START_FILES as
	`pre-crt0.o' instead.  Define LIB_MATH as `-lm', to override the
	default `-lm -lc' (there is no libc on the NeXT).
	* ymakefile (STARTFILES): Allow config.h to set this value even if
	ORDINARY_LINK is defined.
	* unexnext.c: Fix subdirectories for the machine dependent include
	files for NeXTStep 3.0; #include <mach/mach.h> and
	<mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
	(getsectbyname): Remove prototype for this; the system #include
	files take care of that.
	(malloc_cookie): New variable.
	(unexec_doit): Set malloc_cookie to the result returned by
	malloc_freezedry.
	* emacs.c (main): Declare malloc_cookie to be extern, so that we can
	get the value set when we dumped and pass it to malloc_jumpstart.
	* systime.h: The NeXT has a timezone function.
1993-05-04 02:29:06 +00:00
Jim Blandy
b07646f519 * systime.h: Doc fix.
(EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a
	millisecond.  What's three orders of magnitude between friends?
	* dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the
	`milliseconds' argument by 1000 to get microseconds.

	* dispnew.c (Fsleep_for, Fsit_for): Allow SECONDS to be a
	floating point value.

	* dispnew.c (getenv): Extern declaration deleted; this is done in
	config.h.
1993-05-04 02:28:10 +00:00
Jim Blandy
e3fa7dfc18 * data.c (Ffset): Refuse to set the function value of t or nil. 1993-05-04 02:26:53 +00:00
Jim Blandy
8b0c35d952 * config.h.in (getenv): Don't test THIS_IS_YMAKEFILE to see if we
should exclude the getenv declaration; instead, test NOT_C_CODE.
	Per suggestion from Francesco Potorti`.
	* ymakefile (NOT_C_CODE): Define this; it's true, and useful.

	* config.h.in (volatile): Don't define this to be the empty string
	if some file has #defined HAVE_VOLATILE.
1993-05-04 02:24:42 +00:00
Jim Blandy
6158b3b00b * buffer.c (syms_of_buffer): Doc fix for buffer-display-table.
* buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFER
	arguments.
	(recenter_overlay_lists): New argument BUF, to use instead of the
	current buffer.
	(Foverlay_recenter): Pass the appropriate arguments to
	recenter_overlay_lists.

	* buffer.c (Fdelete_overlay): Don't assume that overlay is in the
	current buffer.  Don't forget to declare the argument a Lisp_Object.
1993-05-04 02:23:12 +00:00
Jim Blandy
d620fb0c44 * emacs.c (SEPCHAR): Instead of defining this to be ',' on VMS and
':' elsewhere, just have it default to ':' if not #defined, and
	#define it to be ',' in s/vms.h; OS/2 will need it to be ';'.
	* s/vms.h (SEPCHAR): #define this to be ','.
	* s/template.h (SEPCHAR): Mention this.

	* s/vms.h (xfree): #define this to emacs_xfree, to avoid case
	conflict with XFree; on VMS, external symbols are case-insensitive.
1993-05-04 00:28:07 +00:00
Jim Blandy
4e4726bc25 * m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
	configure script.
	* s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
	derived by configure script.

	* s/usg5-4.h (HAVE_GETTIMEOFDAY): Deleted; ../configure figures
	that out now.
1993-05-04 00:27:23 +00:00
Jim Blandy
d4198db9a7 * emacs.c (SEPCHAR): Instead of defining this to be ',' on VMS and
':' elsewhere, just have it default to ':' if not #defined, and
	#define it to be ',' in s/vms.h; OS/2 will need it to be ';'.
	* s/vms.h (SEPCHAR): #define this to be ','.
	* s/template.h (SEPCHAR): Mention this.
1993-05-04 00:26:43 +00:00
Jim Blandy
0efd16a9f7 * m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
	configure script.
	* s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
	derived by configure script.
1993-05-04 00:26:07 +00:00
Jim Blandy
c1be1b3079 Initial revision 1993-05-01 21:53:52 +00:00
Richard M. Stallman
7df3061492 (Fsuspend_emacs): Doc fix. 1993-05-01 13:20:55 +00:00
Jim Blandy
b0bef8c52f *** empty log message *** 1993-04-30 16:42:24 +00:00
Richard M. Stallman
e5f920d7e9 (Fthis_command_keys): Doc fix. 1993-04-29 16:49:24 +00:00
Richard M. Stallman
68a752206e (wait_reading_process_input): Move the status_notify
call before the set_waiting_for_input call.
1993-04-29 15:57:17 +00:00
Richard M. Stallman
eabf01d460 (Fexpand_file_name): Undo last change--too risky for now. 1993-04-29 13:17:56 +00:00
Richard M. Stallman
d9bcdb34a0 (Fdefine_function): New function (same code as Fdefalias). 1993-04-29 13:12:37 +00:00
Richard M. Stallman
c5e3de70d8 (LOADHIST_ATTACH): New macro.
(Vcurrent_load_list, Vload_history): Vars declared.
1993-04-29 02:22:48 +00:00
Eric S. Raymond
5739ce6baf (do_autoload): Fixed the bug in the autoload-saving code. 1993-04-28 17:08:18 +00:00
Eric S. Raymond
ac669fa2a9 (un_autoload): Don't try to save old autoload forms when we load something
in.  Something about the code now conditioned out by UNLOAD was screwing
up ordinary autoloads, notably of picture.el.  When I figure out what, I'll
fix and re-enable this code.
1993-04-27 21:59:59 +00:00
Roland McGrath
f1cc678fdc (Fexpand_file_name): Don't remove trailing / from NEWDIR if just "/". 1993-04-26 21:54:00 +00:00
Eric S. Raymond
57ef1664fe (read_pending_input): Fix the garbaged-modifiers bug under System Vs previous
to r4.
1993-04-26 05:15:13 +00:00
Eric S. Raymond
270967b219 (Fset-window-buffer): Set horizontal-scrolling on a window to zero when
we connect it to a new buffer.
1993-04-25 06:15:18 +00:00
Eric S. Raymond
a97c374aa7 (Qmode-line-format): Describe %l in the doc string. 1993-04-25 06:14:25 +00:00
Eric S. Raymond
80df38a283 (Fdefine_function): Changed name back to Fdefalias, so we get things
in a known-good state.
1993-04-23 03:40:03 +00:00
Eric S. Raymond
e12f351912 (BUF_NARROWED, NARROWED): New macros to test whether a region
restriction has narrowed the buffer.
1993-04-23 03:06:10 +00:00
Richard M. Stallman
8872923579 Comment fixes. 1993-04-17 06:45:29 +00:00
Richard M. Stallman
fc08c36736 (Fdefine_function): New function. 1993-04-17 01:29:48 +00:00
Richard M. Stallman
2a49b6e519 (defun, defmacro, defvar, defconst):
Attach symbol argument to the list of globals for the input source.
(do_autoload): Save the old autoloads, in case we ever unload.
1993-04-17 01:28:10 +00:00
Richard M. Stallman
68732608c8 (provide, require): Put appropriately-marked
conses in the current-globals list.
1993-04-17 01:27:53 +00:00
Richard M. Stallman
ae321d283e (readevalloop): New argument is the source file name (or nil if none).
All calls changed.  Do the two-step
necessary to call build_load_history with the correct current-globals
list for the current recursion.
(build_load_history): New function.
(eval_region, eval_buffer): Call readevalloop with new arg.
(load_history): New variable.
1993-04-17 01:27:37 +00:00
Richard M. Stallman
3dbae1e48e Don't include Xmu/Drawing.h. 1993-04-15 21:40:01 +00:00
Richard M. Stallman
c4f14ccbdc (message, message1): If noninteractive and
cursor_in_echo_area, don't print a newline at end of message.
1993-04-13 05:54:19 +00:00
Richard M. Stallman
09c9587416 (Fy_or_n_p): Echo the answer just once, at exit. 1993-04-13 05:54:00 +00:00
Jim Blandy
55bd4cbcb5 * Makefile.in (xmakefile): Recognize the -O option with a numeric
optimization level.

	* ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
	higher, use -O99 instead of plain -O.
1993-04-10 08:31:28 +00:00