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.
Jim Blandy [Thu, 17 Jun 1993 04:59:35 +0000 (04:59 +0000)]
* keyboard.c (read_key_sequence): If we add events to a key
sequence that didn't come from the input stream (e.g. `mode-line'
prefixing a mouse click, or an expansion from function-key-map),
and end up with a sequence that runs off the end of the current
maps, return the entire key sequence, not just the initial portion
which was bound or unbound.
Jim Blandy [Thu, 17 Jun 1993 04:59:01 +0000 (04:59 +0000)]
* config.h.in (HAVE_CLOSEDIR): Add an #undef for autoconf to
change.
* sysdep.c (closedir): Only define this if autoconf can't find
HAVE_CLOSEDIR. If we're running under solaris (defined (sun) &&
defined (USG5_4)), then don't free the buffer separately.
Jim Blandy [Thu, 17 Jun 1993 04:58:27 +0000 (04:58 +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.
* config.h.in (HAVE_CLOSEDIR): Add an #undef for autoconf to
change.
* sysdep.c (closedir): Only define this if autoconf can't find
HAVE_CLOSEDIR. If we're running under solaris (defined (sun) &&
defined (USG5_4)), then don't free the buffer separately.
Jim Blandy [Thu, 17 Jun 1993 02:59:54 +0000 (02:59 +0000)]
* lisp.h (CHECK_LIST, CHECK_STRING, CHECK_CONS, CHECK_SYMBOL,
CHECK_VECTOR, CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW,
CHECK_PROCESS, CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER,
CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT,
CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY): Wrap a do
... while (0) around these compound statements to make them
syntactically equivalent to a single statement.
Jim Blandy [Thu, 17 Jun 1993 02:55:11 +0000 (02:55 +0000)]
* configure.in (CPP): Autoconf sets this to a shell variable
reference, which doesn't work when it's edited into a makefile.
Expand that variable reference.
Jim Blandy [Thu, 17 Jun 1993 02:54:43 +0000 (02:54 +0000)]
* Makefile.in (src/Makefile): Don't bother exiting single quotes
and entering double quotes to get the values of LD_SWITCH_X_SITE
and the other make variables; make substitutes them in anyway.
Jim Blandy [Thu, 17 Jun 1993 00:39:37 +0000 (00:39 +0000)]
Don't let the 'B' interactive spec default to buffers viewed in
any visible frame.
* buffer.c (Fother_buffer): Pass Qvisible as the second argument
to Fget_buffer_window.
* window.c (Qvisible): New symbol.
(window_loop): In GET_BUFFER_WINDOW case, if frames is Qvisible,
ignore non-visible frames.
(Fget_buffer_window): Expand doc string to mention that Qvisible
is an interesting value for FRAME argument.
(syms_of_window): Init and staticpro Qvisible.
* lisp.h (Qvisible): New declaration.
Jim Blandy [Wed, 16 Jun 1993 23:49:07 +0000 (23:49 +0000)]
Bring mumbleclean targets into conformance with GNU coding standards.
* Makefile.in (distclean): Call clean to do most of the work.
Delete aixcc.c and TAGS.
(realclean): Just call distclean.
Jim Blandy [Wed, 16 Jun 1993 23:46:17 +0000 (23:46 +0000)]
* Makefile.in (CPP): New variable.
(src/Makefile): Edit CPP into src/Makefile.
Bring mumbleclean targets into conformance with GNU coding standards.
* Makefile.in (mostlyclean, clean): Separate these two; just have
them pass the request to the subdirectory makefiles.
(distclean): Pass the request down, and then get rid of the
files configure built, and get rid of the Makefiles.
(realclean): Pass the request down, and then do the same things
distclean does.
(uninstall, info, dvi): New targets.
Jim Blandy [Wed, 16 Jun 1993 23:12:21 +0000 (23:12 +0000)]
*solar.el (solar-setup, solar-ephemeris-time, sunrise-sunset): Change
Universal Time (UT) to Coordinated Universal Time (UTC).
(solar-time-string): Use calendar-daylight-time-offset instead of
1 hr, and use calendar-daylight-savings-switchover-time instead of
midnight. Add an optional parameter to allow forcing the use of
standard or daylight savings time. Fix code so it works in
southern hemisphere (start of dst precedes end of dst in a
calendar year) and when dst either starts or ends in a calendar
year, but not both.
Jim Blandy [Wed, 16 Jun 1993 23:10:55 +0000 (23:10 +0000)]
* calendar.el (calendar-current-time-zone): Change variable names
to make them more readable.
(calendar-time-zone, calendar-standard-time-zone-name,
calendar-daylight-time-zone-name, calendar-daylight-savings-ends,
calendar-daylight-savings-starts): Don't autload them.
* calendar.el (calendar-holidays): Quote it to delay evaluation
until it's needed.
Roland McGrath [Wed, 16 Jun 1993 23:06:58 +0000 (23:06 +0000)]
(make-autoload): Use memq once instead eq twice.
(generate-file-autoloads): For non-autoloads, copy the defn textually
rather than printing it after reading.