1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

3849 commits

Author SHA1 Message Date
Jim Blandy
7b00de84fd Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.

	* xfaces.c (face_vector, nfaces, nfaces_allocated): Make these
	static.
1993-06-22 07:25:42 +00:00
Jim Blandy
a081bd3724 Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.

	* xfns.c (Fx_open_connection): Remember to block input while
	calling x_load_resources.
	* xrdb.c: Undo change of June 19th; it was a BLOCK_INPUT problem,
	not a server-specific bug.
1993-06-22 07:25:11 +00:00
Jim Blandy
85f26be98d * xdisp.c (redisplay_window): Remember to compute end relative to
the start of the visible region, too.
1993-06-22 06:59:07 +00:00
Richard M. Stallman
e45fce0359 (rmail-summary-mode-map): Bind summary sort commands.
(rmail-summary-sort-...): Moved from rmailsort.el.
(rmail-sort-from-summary): Likewise.  Require rmailsort.
1993-06-22 05:55:59 +00:00
Richard M. Stallman
8b1d5b3126 Don't touch rmail-summary-mode-map.
Don't touch rmail-mode-map.  Don't require rmail or sort.
(rmail-summary-sort-...): Moved to rmailsum.el.
(rmail-sort-from-summary): Likewise.
1993-06-22 05:55:41 +00:00
Richard M. Stallman
3bf526cfc6 Add autoloads for rmailsort commands.
(rmail-mode-map): Add bindings for those commands.
1993-06-22 05:55:22 +00:00
Jim Blandy
4348b379b1 * Makefile.in (ctags): Depend on etags, so that parallel makes
don't write etags.o files on top of each other.
1993-06-22 03:58:05 +00:00
Jim Blandy
aead2f9fa6 * compile.el (compile-file-of-error): Remember that
compilation-error-list stores file names as strings, not as (DIR .
	FILE) pairs.
1993-06-22 03:54:25 +00:00
Jim Blandy
929cc9de2d * diff.el (diff-parse-differences): Preserve the match data
across the call to find-file-noselect.
1993-06-22 03:50:08 +00:00
Jim Blandy
fdce0b3948 * xrdb.c (get_user_db): Remember to free the screen-local resource
string after we've merged its data into db.
1993-06-22 03:44:28 +00:00
Jim Blandy
3e03d7c74e * cal-dst.el: New file.
(calendar-/, calendar-%, calendar-absolute-from-time,
        calendar-time-from-absolute, calendar-next-time-zone-transition,
        calendar-time-zone-daylight-rules): New functions.
        (calendar-current-time-zone): Moved from calendar.el and rewritten.
        (calendar-current-time-zone-cache): New variable.
        (calendar-current-time-zone, calendar-time-zone,
        calendar-daylight-time-offset, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name,
        calendar-daylight-savings-starts, calendar-daylight-savings-ends,
        calendar-daylight-savings-switchover-time): Moved from calendar.el.
1993-06-22 03:25:13 +00:00
Jim Blandy
80e48f9fa8 * lunar.el (lunar-phase): Use time conversion from solar.el 1993-06-22 03:24:44 +00:00
Jim Blandy
8ec105a066 * holidays.el (calendar-holiday-function-fixed,
calendar-holiday-function-float, calendar-holiday-function-julian,
        calendar-holiday-function-islamic,
        calendar-holiday-function-hebrew, calendar-holiday-function-sexp,
        calendar-holiday-function-advent,
        calendar-holiday-function-easter-etc,
        calendar-holiday-function-greek-orthodox-easter,
        calendar-holiday-function-rosh-hashanah-etc,
        calendar-holiday-function-hanukkah,
        calendar-holiday-function-passover-etc,
        calendar-holiday-function-tisha-b-av-etc): Renamed without words
        "calendar" and "function"; changed argument from a list of values to
        individual values.  Fixed doc strings.
        (calendar-holiday-function-if): Removed.
        (calendar-holiday-solar-equinoxes-solstices): Renamed
        solar-equinoxes-solstices.
        (calendar-holiday-list): Rewrote to accomodate the name changes
        above and the unquoting of calendar-holidays.
        (calendar-cursor-holidays):  Change screen-width to frame-width.
        (holiday-sexp): Rewritten.
1993-06-22 03:24:23 +00:00
Jim Blandy
c6b6c929dc * cal-mayan.el (calendar-mayan-days-before-absolute-zero,
calendar-mayan-haab-difference, calendar-mayan-tzolkin-difference,
        calendar-mayan-tzolkin-haab-on-or-before,
        calendar-previous-calendar-round-date,
        calendar-absolute-from-mayan-long-count,
        calendar-print-mayan-date): Fix doc strings.
1993-06-22 03:23:59 +00:00
Jim Blandy
44e9df9abc * diary-ins.el (insert-cyclic-diary-entry): Fix date form. 1993-06-22 03:23:38 +00:00
Jim Blandy
1bd410e56e * diary.el (list-sexp-diary-entries,
hebrew-calendar-year-Saturday-incomplete-Sunday,
        hebrew-calendar-year-Monday-incomplete-Tuesday,
        hebrew-calendar-year-Tuesday-regular-Thursday,
        hebrew-calendar-year-Thursday-complete-Sunday,
        hebrew-calendar-year-Saturday-complete-Thursday,
        hebrew-calendar-year-Monday-complete-Saturday,
        hebrew-calendar-year-Thursday-incomplete-Sunday): Fix doc strings.
        (diary-sexp-entry): Use calendar-sexp-debug to turn off error catching.
1993-06-22 03:23:14 +00:00
Jim Blandy
a92ade89ed * solar.el (calendar-holiday-solar-equinoxes-solstices): Renamed
solar-equinoxes-solstices.
        (calendar-time-display-form, calendar-latitude,
        calendar-longitude): Moved from calendar.el.
        (calendar-time-zone, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name,
        calendar-daylight-savings-starts, calendar-daylight-savings-ends):
        Take default values from calendar-current-time-zone, instead of
        being overwritten in open code if they were set to nil.
        (solar-time-string): Subtract calendar-daylight-time-offset when
        computing dst-ends.  Avoid rounding errors when rounding time to
        the nearest minute.
1993-06-22 03:22:40 +00:00
Jim Blandy
354d06443e * calendar.el (calendar-version): Update to 5.1. Fixed a variety
of spelling error in comments and doc strings.
        (calendar-sexp-debug): New variable to turn off error catching.
	(calendar-absolute-from-gregorian): Removed unused vars month, day.
        (view-calendar-holidays-initially, all-hebrew-calendar-holidays,
        all-christian-calendar-holidays, all-christian-islamic-holidays,
        diary-nonmarking-symbol, hebrew-diary-entry-symbol,
        islamic-diary-entry-symbol, diary-include-string,
        abbreviated-calendar-year, european-calendar-style,
        european-calendar-display-form, american-calendar-display-form,
        calendar-date-display-form, print-diary-entries-hook,
        list-diary-entries-hook, nongregorian-diary-listing-hook,
        nongregorian-diary-marking-hook, diary-list-include-blanks,
        holidays-in-diary-buffer, general-holidays,
        increment-calendar-month, calendar-sum, calendar-string-spread,
        calendar-absolute-from-iso, calendar-print-iso-date,
        hebrew-calendar-elapsed-days, list-yahrzeit-dates,
        calendar-print-astro-day-number): Fix doc strings.
        (calendar-nth-named-day): Rewritten to include optional day of month.
        (general-holidays, calendar-holidays, hebrew-holidays,
        christian-holidays, islamic-holidays,
        solar-holidays): Rewritten to include require of cal-dst.el and to
        show the time of the change to/from daylight savings time.
        (calendar-current-time-zone, calendar-time-zone,
        calendar-daylight-time-offset, calendar-standard-time-zone-name,
        calendar-daylight-time-zone-name, calendar-daylight-savings-starts,
        calendar-daylight-savings-ends,
        calendar-daylight-savings-switchover-time): Moved to cal-dst.el.
        (calendar-location-name, calendar-time-display-form, calendar-latitude,
        calendar-longitude): Moved to solar.el.
        (calendar-holidays): Unquote it!
1993-06-22 03:22:12 +00:00
Richard M. Stallman
aac180a7b1 (rmail-mode): Move to the last message. 1993-06-22 02:51:26 +00:00
Richard M. Stallman
5201dddabb (rmail-mode-map): Add local menu bar bindings.
(rmail-search-backward): New command.
1993-06-22 02:25:20 +00:00
Richard M. Stallman
e7a00c2598 (rmail-summary-mode-map): Add local menu bar bindings.
(rmail-summary-search-backward): New command.
(rmail-summary-search): Don't use save-excursion.
1993-06-22 02:25:05 +00:00
Jim Blandy
fbcd35bd72 * keyboard.c (make_lispy_event): Added detection of double-click
and triple-click events.
	(parse_modifiers_uncached, apply_modifiers_uncached): Same.
	(read_key_sequence): Coerce double-clicks to clicks, and triple-clicks
	to double-clicks or clicks, by analogy with drag events.
	(double_click_time): Added variable.
	* termhooks.h: Added multi-click event modifier bits.
1993-06-22 02:06:54 +00:00
Jim Blandy
69b95560cd * subr.el (event-end): Modified to account for multi-click events. 1993-06-22 02:02:00 +00:00
Richard M. Stallman
299fdd8d65 (mail-mode-map): Add local menu bar bindings. 1993-06-21 20:08:39 +00:00
Richard M. Stallman
05d5b93e40 (Fremove_text_properties, Fadd_text_properties):
Really do next_interval when skipping the first interval.
1993-06-21 19:37:49 +00:00
Richard M. Stallman
0f99112d11 *** empty log message *** 1993-06-21 06:59:02 +00:00
Richard M. Stallman
bab8cd704a Initial revision 1993-06-21 06:45:33 +00:00
Richard M. Stallman
022c78a368 entered into RCS 1993-06-21 05:06:06 +00:00
Richard M. Stallman
9565745ac3 Initial revision 1993-06-21 05:05:59 +00:00
Jim Blandy
0e93321957 * add-log.el (add-log-current-defun): To find the name of the
function being defined in emacs-lisp-mode, lisp-mode, and
	scheme-mode, skip an opening paren and an s-expression, instead of
	just one word.  This allows us to properly recognize things like
	define-key and define-macro.
1993-06-21 00:51:36 +00:00
Jim Blandy
919592c00e * replace.el (query-replace-map): Make return exit query-replace,
just like escape.
1993-06-21 00:45:17 +00:00
Jim Blandy
7d385b0569 * alloc.c (Fgarbage_collect): If the minibuffer is active, don't
display the "...done" message; allow the minibuffer to show again.
1993-06-21 00:25:57 +00:00
Richard M. Stallman
41a3409651 (mh-yank-cur-msg): Test mark-active. 1993-06-20 22:45:13 +00:00
Jim Blandy
b38f9ff319 * config.h.in (HAVE_LONG_FILE_NAMES): Add an #undef, for autoconf
to chew on.  Re-arrange macros to reflect the ordering of the
	corresponding macros in configure.in, to facilitate this kind of
	checking.
1993-06-20 20:18:32 +00:00
Richard M. Stallman
ed8d30ae81 Translate F11 (ESC [ 23 ~) to ESC. 1993-06-20 08:49:42 +00:00
Richard M. Stallman
7c92db56e0 (verify_interval_modification): Don't just test
Qread_only prop; use INTERVAL_WRITABLE_P.
1993-06-20 08:48:58 +00:00
Richard M. Stallman
af4d5234ee Comment change. 1993-06-20 08:48:12 +00:00
Jim Blandy
9f2ccd7bc1 * puresize.h (PURESIZE): Up this to 20500 for MULTI_FRAME Emaces,
and 190000 for non-MULTI_FRAME Emaces.
1993-06-19 22:58:35 +00:00
Jim Blandy
841a51ee64 Sat Jun 19 17:47:40 1993 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* info.el (Info-insert-dir): Remove the call to recursive-edit.
1993-06-19 21:48:16 +00:00
Jim Blandy
254a1b6640 * xfaces.c (recompute_basic_faces): This shouldn't be declared static. 1993-06-19 21:28:56 +00:00
Jim Blandy
19c7afdf57 * sysdep.c (rename): Make arguments const. autoconf #defines
const away on systems which don't have it; any system with
	prototypes will declare the arguments const (the ones to which I
	have access do); and systems without prototypes won't notice.
1993-06-19 21:07:02 +00:00
Jim Blandy
a1b4b084b1 * minibuf.c (Fread_minibuffer): Add missing semicolon after
CHECK_STRING macro.
1993-06-19 21:06:18 +00:00
Jim Blandy
39b62b3bf3 * Makefile.in (top_distclean): Use -f switch when cleaning out
lock dir; it might be empty.
1993-06-19 21:05:21 +00:00
Jim Blandy
64a0721980 * xterm.c (XTread_socket): Never treat a modifier key as a
non_ascii_keystroke.
1993-06-19 21:01:38 +00:00
Richard M. Stallman
8f53e1ee6e (add_node): Move var last_node to file scope. 1993-06-19 20:35:26 +00:00
Jim Blandy
d0068e2530 * emacs.c (Fkill_emacs): Pass third argument to shut_down_emacs.
* lisp.h (shut_down_emacs): Doc fix.
1993-06-19 20:26:11 +00:00
Richard M. Stallman
c142ab2d38 (Info-insert-dir): Record file attributes of files used.
Recompute the dir if they change.
1993-06-19 20:18:05 +00:00
Richard M. Stallman
3be6243a7d (insert-file): Report error if file is directory. 1993-06-19 19:07:19 +00:00
Jim Blandy
fc25d15df0 * frame.c (Fmake_frame_visible): Make this interactively callable;
frames can accept input while iconified, so it makes sense to put
	this on a key.
1993-06-19 01:47:40 +00:00
Jim Blandy
733155db8a * man.el (Man-switches): New variable.
(Man-build-man-command): Use it to build the man command.
	(Man-mode): Mention it in documentation.
1993-06-19 01:44:52 +00:00