Richard M. Stallman [Fri, 25 Jun 1993 06:41:54 +0000 (06:41 +0000)]
Set up autoloads for files `makeinfo' and `texnfo-upd'.
(texinfo-delete-from-print-queue-command): New var.
(texinfo-tex-trailer): New var.
(texinfo-tex-region): Use that.
(texinfo-tex-buffer): Rewritten; use the actual source file.
Binding is now C-c C-t C-b.
(texinfo-texindex): Turned back on.
(texinfo-quit-job): New command, with binding.
(texinfo-delete-from-print-queue): Likewise.
(texinfo-show-structure): Indent each line according to depth.
Require texnfo-upd.
(texinfo-section-types-regexp): Var deleted.
(texinfo-insert-@-with-arg): New function.
(texinfo-insert-@var, etc.): Use that.
(texinfo-insert-@end): New command, now on C-c C-c e.
(texinfo-insert-@end-example): Deleted.
(texinfo-insert-@table): New command, on C-c C-c t.
(texinfo-start-menu-description): New command, on C-c C-c C-d.
(texinfo-mode): No longer set tex-trailer.
Make the @node for the top node start a page.
Use shorter values for tex-end-of-header and tex-start-of-header.
(texinfo-mode-map): Add bindings for makeinfo-buffer, etc.
Delete bindings for texinfo-format-buffer/region.
(texinfo-define-common-keys): New function.
Jim Blandy [Tue, 22 Jun 1993 08:17:36 +0000 (08:17 +0000)]
* keyboard.c (menu_bar_items, read_key_sequence): Use
current_global_map, not global_map; the latter is only meant to be
used for initial_define_key.
* commands.h: Doc fix.
Jim Blandy [Tue, 22 Jun 1993 08:17:26 +0000 (08:17 +0000)]
* keyboard.c (menu_bar_items, read_key_sequence): Use
current_global_map, not global_map; the latter is only meant to be
used for initial_define_key.
* commands.h: Doc fix.
Jim Blandy [Tue, 22 Jun 1993 07:39:26 +0000 (07:39 +0000)]
* buffer.c (list_buffers_1): Make desired_point a lisp object; set
it to nil, unless we find the current buffer.
(Flist_buffers): Don't try to set point in the buffer list unless
list_buffers_1 actually returns an integer. Don't use a full
save_excursion; just save and restore the buffer.
Jim Blandy [Tue, 22 Jun 1993 07:26:44 +0000 (07:26 +0000)]
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.
Jim Blandy [Tue, 22 Jun 1993 07:25:42 +0000 (07:25 +0000)]
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.
Jim Blandy [Tue, 22 Jun 1993 07:25:11 +0000 (07:25 +0000)]
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.
Jim Blandy [Tue, 22 Jun 1993 03:25:13 +0000 (03:25 +0000)]
* 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.
Jim Blandy [Tue, 22 Jun 1993 03:24:23 +0000 (03:24 +0000)]
* 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.
Jim Blandy [Tue, 22 Jun 1993 03:22:40 +0000 (03:22 +0000)]
* 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.
Jim Blandy [Tue, 22 Jun 1993 03:22:12 +0000 (03:22 +0000)]
* 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!
Jim Blandy [Tue, 22 Jun 1993 02:06:54 +0000 (02:06 +0000)]
* 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.
Jim Blandy [Mon, 21 Jun 1993 00:51:36 +0000 (00:51 +0000)]
* 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.
Jim Blandy [Sun, 20 Jun 1993 20:18:32 +0000 (20:18 +0000)]
* 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.
Jim Blandy [Sat, 19 Jun 1993 21:07:02 +0000 (21:07 +0000)]
* 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.
Jim Blandy [Fri, 18 Jun 1993 23:33:20 +0000 (23:33 +0000)]
Changes for Irix 4.0, tested this time:
* s/irix4-0.h: Get rid of our fake definitions for setpgrp and
getpgrp.
* callproc.c (Fcall_process): Go ahead and use the USG calling
convention for setpgrp.
* ymakefile (pre-crt0.o): Add rule for this. Perhaps it will help
separate-source-directory compilation.
* emacs.c (shut_down_emacs): Some USG systems #define
EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems.
* sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and
non-USG.
* process.c [IRIX] (create_process): Don't put child in process
group zero before opening the tty; Irix is like USG in this
regard.
Richard M. Stallman [Fri, 18 Jun 1993 17:59:02 +0000 (17:59 +0000)]
(mouse-secondary-save-then-kill): Don't switch windows.
Just set-buffer, and put save-excursion around it.
(mouse-set-secondary, mouse-start-secondary): Likewise.
(mouse-drag-secondary): Switch windows and move point just temporarily.
Jim Blandy [Fri, 18 Jun 1993 16:33:12 +0000 (16:33 +0000)]
* xfns.c: Always #include "bitmaps/gray.xbm"; the bitmaps seem to
be missing on some systems, and there's no point in having
configure check; it should work fine to always use our copy.
Jim Blandy [Thu, 17 Jun 1993 23:25:37 +0000 (23:25 +0000)]
* m/iris4d.h (LIB_STANDARD): Do *not* include -lbsd. We are
now calling the BSD[sg]etpgrp functions directly, so this library
is not needed; it just provides the BSD[sg]etpgrp functions under
the [sg]etpgrp names.
* callproc.c [IRIX] (child_setup): Don't call setpgrp this time.
It's already been called up in Fcall_process, and create_process.
Jim Blandy [Thu, 17 Jun 1993 22:59:49 +0000 (22:59 +0000)]
* faces.el (make-face-bold, make-face-italic,
make-face-bold-italic, make-face-unbold, make-face-unitalic):
Always pass the frame parameter to internal-try-face-font; we only
want to set the face for this frame.
Jim Blandy [Thu, 17 Jun 1993 22:03:06 +0000 (22:03 +0000)]
* callproc.c (Fcall_process, child_setup): If IRIX is #defined,
call setpgrp with arguments, even if USG is #defined.
* process.c [IRIX] (create_process): Don't call setpgrp before
opening the pty. Call it after doing the TIOCNOTTY ioctl.
Jim Blandy [Thu, 17 Jun 1993 21:23:29 +0000 (21:23 +0000)]
* keyboard.c (read_key_sequence): Don't confuse mock input with
function-key-map expansion, and continue reading mock events when
the current sequence is unbound.
* keyboard.c (read_key_sequence): After providing a prefix symbol
for a mouse event, modify the mouse event to indicate that that
won't need to be done again, by putting the event's position
symbol in a list.
* keyboard.c (read_key_sequence): When returning mock input which
has run off the end of the current maps, make sure the events get
echoed, and make it into this-command-keys.
* keyboard.c (read_key_sequence): When re-reading a previously
read mouse click which requires a prefix symbol, make sure to set
last_real_key_start appropriately, so we can properly drop
button-down events.
Richard M. Stallman [Thu, 17 Jun 1993 18:17:32 +0000 (18:17 +0000)]
(mouse-start-secondary): New function.
(mouse-set-secondary, mouse-drag-secondary): New functions.
(mouse-kill-secondary, mouse-secondary-save-then-kill): New functions.
Richard M. Stallman [Thu, 17 Jun 1993 05:08:23 +0000 (05:08 +0000)]
(vc-rename-file): Remove periods from error messages.
(vc-backend-logentry-check, vc-revert-buffer): Likewise.
(vc-retrieve-snapshot, vc-create-snapshot): Likewise.
(vc-diff, vc-finish-logentry, vc-steal-lock): Likewise.
(vc-register, vc-next-action-on-file, vc-registration-error): Likewise.
(vc-cancel-version): Add space to end of question.
Jim Blandy [Thu, 17 Jun 1993 05:06:36 +0000 (05:06 +0000)]
Don't let the 'B' interactive spec default to buffers viewed in
any visible frame.
* buffer.c (Fother_buffer): Pass Qt as the second argument
to Fget_buffer_window.
* window.c (window_loop): In GET_BUFFER_WINDOW case, ignore
non-visible frames.
(Fget_buffer_window): Change doc string to mention that passing Qt
for the FRAME argument returns windows on visible frames only.
(Qvisible): Removed.
Jim Blandy [Thu, 17 Jun 1993 05:05:53 +0000 (05:05 +0000)]
Don't let the 'B' interactive spec default to buffers viewed in
any visible frame.
* buffer.c (Fother_buffer): Pass Qt as the second argument
to Fget_buffer_window.
* window.c (window_loop): In GET_BUFFER_WINDOW case, ignore
non-visible frames.
(Fget_buffer_window): Change doc string to mention that passing Qt
for the FRAME argument returns windows on visible frames only.
Jim Blandy [Thu, 17 Jun 1993 05:04:57 +0000 (05:04 +0000)]
Changes for correct pgrp behavior; approach suggested by Bob
Glickstein <bobg@zindigo.z-code.com>:
* m/iris4d.h (LIB_STANDARD): Do list -lbsd here.
* s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp
and BSDsetpgrp.
(GETPGRP_NO_ARG): Don't #define this.
* emacs.c (main): Don't test GETPGRP_NO_ARG.
* sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG.