bpt/emacs.git
31 years ago* xfns.c: Make resource manager work correctly even when
Jim Blandy [Thu, 27 May 1993 05:09:02 +0000 (05:09 +0000)]
* xfns.c: Make resource manager work correctly even when
Vinvocation_name has periods and asterisks in it.
(Vxrdb_name): New variable.
(Fx_get_resource): Use it instead of Vinvocation_name.
(Fx_open_connection): Initialize it to a copy of Vinvocation_name,
with the dots and stars replaced by hyphens.
(syms_of_xfns): staticpro it here.

* xfns.c (Fx_get_resource): Use the proper format string when the
attribute has been specified.

31 years agoComment out handling of shell-send-input.
Richard M. Stallman [Thu, 27 May 1993 05:01:09 +0000 (05:01 +0000)]
Comment out handling of shell-send-input.
Delete the "local thinking machines" definitions at the end
since they caused compilation failure.

31 years ago(cl-member): Renamed from member.
Richard M. Stallman [Thu, 27 May 1993 04:45:55 +0000 (04:45 +0000)]
(cl-member): Renamed from member.

31 years ago(display-time-day-and-date): Use defvar, not defconst.
Richard M. Stallman [Thu, 27 May 1993 04:04:28 +0000 (04:04 +0000)]
(display-time-day-and-date): Use defvar, not defconst.

31 years ago(x_get_local_selection): If no conversion function
Richard M. Stallman [Thu, 27 May 1993 04:01:13 +0000 (04:01 +0000)]
(x_get_local_selection): If no conversion function
exists for the requested type, just return nil.

31 years ago(display_text_line): Don't call compute_char_face for a non-X frame.
Richard M. Stallman [Thu, 27 May 1993 03:56:12 +0000 (03:56 +0000)]
(display_text_line): Don't call compute_char_face for a non-X frame.

31 years ago(window_loop, case GET_LRU_WINDOW): Get frame's width properly.
Richard M. Stallman [Thu, 27 May 1993 03:46:21 +0000 (03:46 +0000)]
(window_loop, case GET_LRU_WINDOW): Get frame's width properly.

31 years ago* isearch.el (isearch-forward): Remove the claim that
Jim Blandy [Thu, 27 May 1993 03:33:12 +0000 (03:33 +0000)]
* isearch.el (isearch-forward): Remove the claim that
isearch-whitespace-chars matches any string of whitespace.

31 years ago* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy [Thu, 27 May 1993 03:05:02 +0000 (03:05 +0000)]
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.

31 years ago* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
Jim Blandy [Thu, 27 May 1993 03:02:21 +0000 (03:02 +0000)]
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
(LD_SWITCH_SYSTEM): Delete the -L option, leave just -R.

31 years ago* Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
Jim Blandy [Thu, 27 May 1993 02:54:03 +0000 (02:54 +0000)]
* Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
(getopt.o, getopt1.c): Use ${srcdir} as appropriate.

31 years ago* Makefile.in (install): Do install the programs listed in
Jim Blandy [Thu, 27 May 1993 02:46:57 +0000 (02:46 +0000)]
* Makefile.in (install): Do install the programs listed in
INSTALLABLE_SCRIPTS.  Make the renaming loop use INSTALLABLES and
INSTALLABLE_SCRIPTS, instead of writing the programs out.

31 years ago* Makefile.in (${SUBDIR}): Pass the value of the make variable to
Jim Blandy [Thu, 27 May 1993 02:27:22 +0000 (02:27 +0000)]
* Makefile.in (${SUBDIR}): Pass the value of the make variable to
subdirectory makes.

31 years ago* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy [Thu, 27 May 1993 02:12:20 +0000 (02:12 +0000)]
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
we have those structures, but *don't* define them if we have
TERMIOS, whose functions take care of those parameters; that
screws up AIX.
(struct emacs_tty): Test those symbols, instead of the ioctl
commands.
* sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars,
init_sys_modes): Same.

31 years ago* s/aix3-2.h (C_SWITCH_SYSTEM): Don't define this to be "-ma" if
Jim Blandy [Thu, 27 May 1993 02:08:14 +0000 (02:08 +0000)]
* s/aix3-2.h (C_SWITCH_SYSTEM): Don't define this to be "-ma" if
we're using GCC - that's an XLC switch.

* s/aix3-2.h (LIBS_SYSTEM): Put -LIM -Liconv here.

31 years agoDon't forget to remove temporary files.
Jim Blandy [Thu, 27 May 1993 01:12:16 +0000 (01:12 +0000)]
Don't forget to remove temporary files.

31 years ago(HAVE_TCATTR): Defined.
Richard M. Stallman [Thu, 27 May 1993 00:21:21 +0000 (00:21 +0000)]
(HAVE_TCATTR): Defined.

31 years ago(listify-key-sequence): Avoid the constant ?\M-\200.
Richard M. Stallman [Thu, 27 May 1993 00:06:08 +0000 (00:06 +0000)]
(listify-key-sequence): Avoid the constant ?\M-\200.

31 years ago* config.h.in (HAVE_RENAME): Include an #undef for this, so
Jim Blandy [Wed, 26 May 1993 23:53:41 +0000 (23:53 +0000)]
* config.h.in (HAVE_RENAME): Include an #undef for this, so
configure will have something to edit.

31 years ago(find-file-noselect): Expand buffer-file-truename
Richard M. Stallman [Wed, 26 May 1993 23:19:07 +0000 (23:19 +0000)]
(find-file-noselect): Expand buffer-file-truename
before copying it to anything else.

31 years ago[HAVE_SOCKETS]: Include socket.h, netdb.h.
Richard M. Stallman [Wed, 26 May 1993 23:14:00 +0000 (23:14 +0000)]
[HAVE_SOCKETS]: Include socket.h, netdb.h.
(get_system_name) [HAVE_SOCKETS]: Use gethostbyname.

31 years ago* s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM,
Jim Blandy [Wed, 26 May 1993 23:08:55 +0000 (23:08 +0000)]
* s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM,
LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the
search paths in these lists; they shouldn't do any harm if they
don't have X11R5.

31 years ago(dired-other-frame): New function, with binding.
Richard M. Stallman [Wed, 26 May 1993 22:52:13 +0000 (22:52 +0000)]
(dired-other-frame): New function, with binding.

31 years agoMake C-x ` binding just once.
Richard M. Stallman [Wed, 26 May 1993 22:36:32 +0000 (22:36 +0000)]
Make C-x ` binding just once.

31 years agoReport .elc bogosities more clearly.
Jim Blandy [Wed, 26 May 1993 22:22:58 +0000 (22:22 +0000)]
Report .elc bogosities more clearly.

31 years ago(finder-by-keyword): Autoload from `finder', not `finder.el'.
Richard M. Stallman [Wed, 26 May 1993 22:19:06 +0000 (22:19 +0000)]
(finder-by-keyword): Autoload from `finder', not `finder.el'.

31 years ago* make-dist: Check for .elc files with no corresponding .el file.
Jim Blandy [Wed, 26 May 1993 22:19:04 +0000 (22:19 +0000)]
* make-dist: Check for .elc files with no corresponding .el file.

* make-dist: Check for .elc files with no corresponding .el file.

31 years ago(nroff-mode): Don't leave nroff-electric-mode void.
Richard M. Stallman [Wed, 26 May 1993 22:17:29 +0000 (22:17 +0000)]
(nroff-mode): Don't leave nroff-electric-mode void.

31 years ago(magic_searchpath_decoder): Fix typos.
Richard M. Stallman [Wed, 26 May 1993 22:12:18 +0000 (22:12 +0000)]
(magic_searchpath_decoder): Fix typos.

31 years ago(Fx_rebind_key, Fx_rebind_keys): X10 definitions deleted.
Richard M. Stallman [Wed, 26 May 1993 21:51:07 +0000 (21:51 +0000)]
(Fx_rebind_key, Fx_rebind_keys): X10 definitions deleted.
(syms_of_xfns): Install them only if X11.

31 years ago* Makefile.in (mkdir): Make all the directories in locallisppath.
Jim Blandy [Wed, 26 May 1993 21:50:00 +0000 (21:50 +0000)]
* Makefile.in (mkdir): Make all the directories in locallisppath.

31 years ago* config.guess: New file.
Jim Blandy [Wed, 26 May 1993 21:34:10 +0000 (21:34 +0000)]
* config.guess: New file.
* configure.in: Use it, tentatively.

31 years ago(byte-optimize-divide): Don't optimize to less than two arguments.
Richard M. Stallman [Wed, 26 May 1993 21:31:36 +0000 (21:31 +0000)]
(byte-optimize-divide): Don't optimize to less than two arguments.

31 years ago(hexlify-command, dehexlify-command): Use exec-directory.
Richard M. Stallman [Wed, 26 May 1993 21:17:31 +0000 (21:17 +0000)]
(hexlify-command, dehexlify-command): Use exec-directory.

31 years ago(r_alloc_sbrk): Declare already_available as long, not SIZE.
Richard M. Stallman [Wed, 26 May 1993 20:38:52 +0000 (20:38 +0000)]
(r_alloc_sbrk): Declare already_available as long, not SIZE.

31 years ago(x_wm_set_size_hint): Don't set hints for max size.
Richard M. Stallman [Wed, 26 May 1993 20:34:20 +0000 (20:34 +0000)]
(x_wm_set_size_hint): Don't set hints for max size.

31 years ago(x_set_cursor_type): If arg not recognized, use box cursor.
Richard M. Stallman [Wed, 26 May 1993 20:33:32 +0000 (20:33 +0000)]
(x_set_cursor_type): If arg not recognized, use box cursor.

31 years agoNew version from Umeda. Needs detailed entry.
Richard M. Stallman [Wed, 26 May 1993 20:28:11 +0000 (20:28 +0000)]
New version from Umeda.  Needs detailed entry.

31 years ago(gnus-local-organization): Renamed from ...-your-...
Richard M. Stallman [Wed, 26 May 1993 20:26:43 +0000 (20:26 +0000)]
(gnus-local-organization): Renamed from ...-your-...
(gnus-local-domain): Likewise.

31 years ago(LD_SWITCH_SYSTEM) [__GNUC__]: Pass -a archive to ld.
Richard M. Stallman [Wed, 26 May 1993 20:03:16 +0000 (20:03 +0000)]
(LD_SWITCH_SYSTEM) [__GNUC__]: Pass -a archive to ld.

31 years ago* faces.el (x-resolve-font-name): If PATTERN is nil, return the
Jim Blandy [Wed, 26 May 1993 19:42:36 +0000 (19:42 +0000)]
* faces.el (x-resolve-font-name): If PATTERN is nil, return the
frame's face.
(set-face-font): Only use x-resolve-font-name if FONT is a string.
Copying a faces shouldn't resolve the font.

31 years ago(scroll-bar-mode): Make default value t.
Richard M. Stallman [Wed, 26 May 1993 19:27:06 +0000 (19:27 +0000)]
(scroll-bar-mode): Make default value t.

31 years ago(make-help-screen): Handle mouse events.
Richard M. Stallman [Wed, 26 May 1993 19:12:18 +0000 (19:12 +0000)]
(make-help-screen): Handle mouse events.
Be smart about window configurations--when and whether to restore.

31 years ago(Info-follow-nearest-node): Omit 4th arg to Info-get-token.
Richard M. Stallman [Wed, 26 May 1993 18:57:54 +0000 (18:57 +0000)]
(Info-follow-nearest-node): Omit 4th arg to Info-get-token.

31 years ago(rand, srand): Definitions deleted.
Richard M. Stallman [Wed, 26 May 1993 18:38:33 +0000 (18:38 +0000)]
(rand, srand): Definitions deleted.

31 years ago(LD_SWITCH_SYSTEM) [__GNUC__]: Add -static.
Richard M. Stallman [Wed, 26 May 1993 18:38:11 +0000 (18:38 +0000)]
(LD_SWITCH_SYSTEM) [__GNUC__]: Add -static.
(HAVE_RANDOM): Defined.

31 years ago* configure.in (hppa-hp-hpux): Use uname -r instead of uname -m;
Jim Blandy [Wed, 26 May 1993 18:32:19 +0000 (18:32 +0000)]
* configure.in (hppa-hp-hpux): Use uname -r instead of uname -m;
the former gives you the operating system rev directly.  Use
s/hpux.h if we don't recognize what we got.

31 years ago* Makefile.in (do-install): Don't remove a destination directory
Jim Blandy [Wed, 26 May 1993 18:27:58 +0000 (18:27 +0000)]
* Makefile.in (do-install): Don't remove a destination directory
if it's the same as the source.  If ${srcdir}/info == ${infodir},
don't try to copy the info files.

* Makefile.in (COPYDIR, COPYDESTS): Don't mention etc twice; this
doesn't work if you're not using a separate source directory.
(do-install): Copy the build tree's etc directory only after
making sure it's not also the source tree's etc directory.

31 years ago(auto-mode-alist): Recognize .sgm, .sgml, .dtd.
Richard M. Stallman [Wed, 26 May 1993 18:21:26 +0000 (18:21 +0000)]
(auto-mode-alist): Recognize .sgm, .sgml, .dtd.

31 years ago(sgml-validate): compile1 renamed to compile-internal.
Richard M. Stallman [Wed, 26 May 1993 18:20:35 +0000 (18:20 +0000)]
(sgml-validate): compile1 renamed to compile-internal.
(sgml-mode): Add autoload cookie.

31 years ago(auto-mode-alist): Treat .H and .hh as C++ files.
Richard M. Stallman [Wed, 26 May 1993 18:12:00 +0000 (18:12 +0000)]
(auto-mode-alist): Treat .H and .hh as C++ files.

31 years ago(mouse-set-mark): Activate the mark.
Richard M. Stallman [Wed, 26 May 1993 18:09:52 +0000 (18:09 +0000)]
(mouse-set-mark): Activate the mark.
Don't bounce the cursor if Transient Mark mode.
(mouse-save-then-kill): Pass explicit args to kill-ring-save.
(mouse-kill-ring-save): Likewise.

31 years ago(mail-strip-quoted-names): Catch errors from forward-sexp.
Richard M. Stallman [Wed, 26 May 1993 18:00:55 +0000 (18:00 +0000)]
(mail-strip-quoted-names): Catch errors from forward-sexp.

31 years ago(make_lispy_event): Fix off-by-1 error with hpos in menu bar.
Richard M. Stallman [Wed, 26 May 1993 17:58:22 +0000 (17:58 +0000)]
(make_lispy_event): Fix off-by-1 error with hpos in menu bar.

31 years ago(Fcurrent_input_mode): Fix the call to Flist.
Richard M. Stallman [Wed, 26 May 1993 17:50:23 +0000 (17:50 +0000)]
(Fcurrent_input_mode): Fix the call to Flist.

31 years agoHandle sunos4.1.3 specially.
Richard M. Stallman [Wed, 26 May 1993 17:43:22 +0000 (17:43 +0000)]
Handle sunos4.1.3 specially.

31 years agoInitial revision
Richard M. Stallman [Wed, 26 May 1993 17:41:48 +0000 (17:41 +0000)]
Initial revision

31 years ago(comint-filter): Restore buffer-read-only in proper buffer.
Richard M. Stallman [Wed, 26 May 1993 17:03:51 +0000 (17:03 +0000)]
(comint-filter): Restore buffer-read-only in proper buffer.

31 years agoProvide `ispell'.
Richard M. Stallman [Wed, 26 May 1993 16:56:03 +0000 (16:56 +0000)]
Provide `ispell'.

31 years ago(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman [Wed, 26 May 1993 07:52:24 +0000 (07:52 +0000)]
(SIGNALS_VIA_CHARACTERS): Defined.

31 years ago* paths.el (Info-default-directory-list): Add
Jim Blandy [Wed, 26 May 1993 06:50:24 +0000 (06:50 +0000)]
* paths.el (Info-default-directory-list): Add
configure-info-directory to this list.

31 years ago(POINTER): Always use char *.
Richard M. Stallman [Wed, 26 May 1993 03:49:40 +0000 (03:49 +0000)]
(POINTER): Always use char *.

31 years ago(x_figure_window_size): Make the default frame coords (0,0).
Richard M. Stallman [Wed, 26 May 1993 03:16:57 +0000 (03:16 +0000)]
(x_figure_window_size): Make the default frame coords (0,0).

31 years ago(LIBS_MACHINE): Add -lIM and -liconv.
Richard M. Stallman [Wed, 26 May 1993 03:13:32 +0000 (03:13 +0000)]
(LIBS_MACHINE): Add -lIM and -liconv.
(HAVE_GETTIMEOFDAY): Deleted.

31 years ago(wait_for_termination) [LINUX]: Use the UNIPLUS alternative.
Richard M. Stallman [Tue, 25 May 1993 23:23:53 +0000 (23:23 +0000)]
(wait_for_termination) [LINUX]: Use the UNIPLUS alternative.

31 years ago(wait_for_termination): Don't use the BSD alternative for LINUX.
Richard M. Stallman [Tue, 25 May 1993 23:22:08 +0000 (23:22 +0000)]
(wait_for_termination): Don't use the BSD alternative for LINUX.

31 years ago(swallow_events): New function.
Richard M. Stallman [Tue, 25 May 1993 23:19:45 +0000 (23:19 +0000)]
(swallow_events): New function.

31 years ago(wait_reading_process_input): Call swallow_events.
Richard M. Stallman [Tue, 25 May 1993 23:19:07 +0000 (23:19 +0000)]
(wait_reading_process_input): Call swallow_events.

31 years ago(dired-unmark-all-files): Read arg as a string.
Richard M. Stallman [Tue, 25 May 1993 22:59:26 +0000 (22:59 +0000)]
(dired-unmark-all-files): Read arg as a string.

31 years ago(read_char): If kbd_buffer_get_event returns nil, redisplay and retry.
Richard M. Stallman [Tue, 25 May 1993 22:21:11 +0000 (22:21 +0000)]
(read_char): If kbd_buffer_get_event returns nil, redisplay and retry.
(kbd_buffer_get_event): If event is handled here, return nil.

31 years ago(rmail-summary-mark-deleted): Check for end of buffer.
Richard M. Stallman [Tue, 25 May 1993 21:20:08 +0000 (21:20 +0000)]
(rmail-summary-mark-deleted): Check for end of buffer.
Pass t as NOWARN when calling rmail-summary-goto-msg.

31 years agoInclude ../src/config.h.
Richard M. Stallman [Tue, 25 May 1993 21:03:28 +0000 (21:03 +0000)]
Include ../src/config.h.

31 years ago(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman [Tue, 25 May 1993 21:01:14 +0000 (21:01 +0000)]
(C_ALLOCA, alloca): Definitions deleted.
[!NOT_C_CODE]: Include alloca.h.
(NEED_SIOCTL): #undef this.

31 years ago(C_SWITCH_X_SYSTEM, LD_SWITCH_SYSTEM): Put in #if 0.
Richard M. Stallman [Tue, 25 May 1993 20:52:11 +0000 (20:52 +0000)]
(C_SWITCH_X_SYSTEM, LD_SWITCH_SYSTEM): Put in #if 0.

31 years ago(PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF): Use pty_name, not ptyname.
Richard M. Stallman [Tue, 25 May 1993 20:48:15 +0000 (20:48 +0000)]
(PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF): Use pty_name, not ptyname.

31 years ago(Fforward_comment): Arg is a Lisp_Object.
Richard M. Stallman [Tue, 25 May 1993 20:46:16 +0000 (20:46 +0000)]
(Fforward_comment): Arg is a Lisp_Object.
Convert it to an int.

31 years ago(logb): Don't declare if hpux.
Richard M. Stallman [Tue, 25 May 1993 20:41:49 +0000 (20:41 +0000)]
(logb): Don't declare if hpux.

31 years ago(install): Don't handle INSTALLABLE_SCRIPTS
Richard M. Stallman [Tue, 25 May 1993 20:11:39 +0000 (20:11 +0000)]
(install): Don't handle INSTALLABLE_SCRIPTS
in first loop.  Delete files from bindir before installing new ones.
(ALL_CFLAGS): Use ${srcdir} to find .../src dir.

31 years ago(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman [Tue, 25 May 1993 20:05:02 +0000 (20:05 +0000)]
(HAVE_GETTIMEOFDAY): Deleted.

31 years agoAt the end, use `set --', not `set -'.
Richard M. Stallman [Tue, 25 May 1993 20:02:12 +0000 (20:02 +0000)]
At the end, use `set --', not `set -'.
Delete spurious `.h' in hpux alternatives.

31 years ago(INSTALL): Add definition.
Richard M. Stallman [Tue, 25 May 1993 20:00:53 +0000 (20:00 +0000)]
(INSTALL): Add definition.

31 years ago(dired-compress-file): Test the return value
Richard M. Stallman [Tue, 25 May 1993 19:05:13 +0000 (19:05 +0000)]
(dired-compress-file): Test the return value
of dired-check-process properly.
Fix use of nonexistent var `name'.

31 years ago(dired-compress-file): Test the return value of dired-check-process properly.
Richard M. Stallman [Tue, 25 May 1993 19:02:08 +0000 (19:02 +0000)]
(dired-compress-file): Test the return value of dired-check-process properly.

31 years ago(Fforward_comment): Fix last change.
Richard M. Stallman [Tue, 25 May 1993 18:49:54 +0000 (18:49 +0000)]
(Fforward_comment): Fix last change.

31 years ago(Fforward_comment): Always set point.
Richard M. Stallman [Tue, 25 May 1993 18:45:25 +0000 (18:45 +0000)]
(Fforward_comment): Always set point.

31 years agoFix another message.
Richard M. Stallman [Tue, 25 May 1993 18:07:11 +0000 (18:07 +0000)]
Fix another message.

31 years ago(Info-edit, Info-last-search, Info-enable-edit):
Richard M. Stallman [Tue, 25 May 1993 17:17:50 +0000 (17:17 +0000)]
(Info-edit, Info-last-search, Info-enable-edit):
Correct case in `Info-mode-map'.

31 years ago(rmail-bury): Fix call to set-window-buffer.
Richard M. Stallman [Tue, 25 May 1993 16:56:15 +0000 (16:56 +0000)]
(rmail-bury): Fix call to set-window-buffer.

31 years agoFix some messages. Support -with-gnu-cc.
Richard M. Stallman [Tue, 25 May 1993 16:47:29 +0000 (16:47 +0000)]
Fix some messages.  Support -with-gnu-cc.

31 years agoPass x-command-line-resources to x-open-connection.
Richard M. Stallman [Tue, 25 May 1993 16:21:12 +0000 (16:21 +0000)]
Pass x-command-line-resources to x-open-connection.
(x-command-line-resources): New variable.
(x-handle-rn-switch): New function.
(command-switch-alist): Add -rn.

31 years ago(Fx_open_connection): Set xrm_option correctly.
Richard M. Stallman [Tue, 25 May 1993 15:36:47 +0000 (15:36 +0000)]
(Fx_open_connection): Set xrm_option correctly.

31 years ago* Makefile.in (srcdir): Remove comment saying this doesn't work.
Jim Blandy [Tue, 25 May 1993 14:15:52 +0000 (14:15 +0000)]
* Makefile.in (srcdir): Remove comment saying this doesn't work.

31 years ago* configure.in: When looking for source in the same directory as
Jim Blandy [Tue, 25 May 1993 14:15:30 +0000 (14:15 +0000)]
* configure.in: When looking for source in the same directory as
the configure script, make the path thus discovered absolute.
If the user specifies the `--srcdir' switch, make that directory
absolute too.

31 years ago* xterm.h: New section for declarations for xfaces.c.
Jim Blandy [Tue, 25 May 1993 14:04:41 +0000 (14:04 +0000)]
* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.

31 years agoArrange for font names to get fully resolved - no wildcards.
Jim Blandy [Tue, 25 May 1993 14:04:12 +0000 (14:04 +0000)]
Arrange for font names to get fully resolved - no wildcards.
* xfns.c (x_set_frame_parameters): Store the value in the frame
parameter alist before we call the setter function, so the setter
function can touch up the value if it chooses.
(x_set_foreground_color, x_set_background_color): Call
recompute_basic_faces, so their GC's will reflect the changes.
(x_new_font): Add extern declaration - this returns a Lisp_Object
now, the fully resolved font name.
(x_set_font): Accept the fully resolved name from x_new_font, and
put it in the frame's parameter alist.  Call recompute_basic_faces.
* xterm.c (x_new_font): Return the fully resolved font name, Qnil
(if no match), or Qt (match, but unacceptable metrics).
* xterm.c (x_new_font): Don't call init_frame_faces.

* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.

* xterm.c (dumpglyphs): Remember that the default faces can have
null fonts, too.

31 years ago* xfns.c: Clear out the old face stuff.
Jim Blandy [Tue, 25 May 1993 14:03:41 +0000 (14:03 +0000)]
* xfns.c: Clear out the old face stuff.
(x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font,
Fx_set_face, Fx_get_face): Removed.
(syms_of_xfns): Remove defsubr for Fx_set_face.

Arrange for font names to get fully resolved - no wildcards.
* xfns.c (x_set_frame_parameters): Store the value in the frame
parameter alist before we call the setter function, so the setter
function can touch up the value if it chooses.
(x_set_foreground_color, x_set_background_color): Call
recompute_basic_faces, so their GC's will reflect the changes.
(x_new_font): Add extern declaration - this returns a Lisp_Object
now, the fully resolved font name.
(x_set_font): Accept the fully resolved name from x_new_font, and
put it in the frame's parameter alist.  Call recompute_basic_faces.
* xterm.c (x_new_font): Return the fully resolved font name, Qnil
(if no match), or Qt (match, but unacceptable metrics).
* xterm.c (x_new_font): Don't call init_frame_faces.

* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.

* xfns.c (Fx_list_fonts): Remember that FACE may not have a font
specified.  Don't specify 30000 as the maximum limit on the number
of fontns returned  - 2000 is more reasonable.

Treat faces as structures specifying modifications to the frame's
parameters, rather than things which need to specify a complete
set of parameters by themselves.
* xfaces.c (init_frame_faces): Don't set up the two frame display
faces by querying the GC - just leave all their fields blank, and
call recompute_basic_faces, letting build_face do the work of
consulting the frame when necessary.
(recompute_basic_faces): New function.
(compute_base_faces): New function for obtaining the "identity"
for compute_char_face and compute_glyph_face.
(compute_char_face, compute_glyph_face): Call it, instead of copying
FRAME_DEFAULT_FACE.
* xfns.c (x_make_gc): No need to call init_frame_faces here.

31 years ago* xterm.h: New section for declarations for xfaces.c.
Jim Blandy [Tue, 25 May 1993 14:02:58 +0000 (14:02 +0000)]
* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.

* xfaces.c (build_face, unload_font, free_frame_faces): Don't
forget to block input while making X calls.

Treat faces as structures specifying modifications to the frame's
parameters, rather than things which need to specify a complete
set of parameters by themselves.
* xfaces.c (init_frame_faces): Don't set up the two frame display
faces by querying the GC - just leave all their fields blank, and
call recompute_basic_faces, letting build_face do the work of
consulting the frame when necessary.
(recompute_basic_faces): New function.
(compute_base_faces): New function for obtaining the "identity"
for compute_char_face and compute_glyph_face.
(compute_char_face, compute_glyph_face): Call it, instead of copying
FRAME_DEFAULT_FACE.
* xfns.c (x_make_gc): No need to call init_frame_faces here.

* xfaces.c (intern_frame_face): This can be static.

* dispextern.h (struct face): New field - `copy', to help us with
resource allocation.
* xfaces.c (free_frame_faces): Do free the first two faces; don't
free anything from a face that's a copy.
(intern_frame_face): Mark every face we intern as a copy; its
resources are actually a combination of the real faces.
(Fset_face_attribute_internal): No need to check if we're trying
to free one of the frame's GC's; they never enter into the
picture.

* xfns.c (Fx_list_fonts): New function.
(face_name_id_number): Add extern declaration for this.
* xfaces.c (face_name_id_number): Make this externally visible,
and make the FRAME argument a FRAME_PTR, not a Lisp_Object.
(compute_char_face): Call face_name_id_number properly.

31 years ago* dispextern.h (struct face): New field - `copy', to help us with
Jim Blandy [Tue, 25 May 1993 14:01:54 +0000 (14:01 +0000)]
* dispextern.h (struct face): New field - `copy', to help us with
resource allocation.
* xfaces.c (free_frame_faces): Do free the first two faces; don't
free anything from a face that's a copy.
(intern_frame_face): Mark every face we intern as a copy; its
resources are actually a combination of the real faces.
(Fset_face_attribute_internal): No need to check if we're trying
to free one of the frame's GC's; they never enter into the
picture.

31 years ago* startup.el (command-line-1): Don't handle `-i'. We're
Jim Blandy [Tue, 25 May 1993 13:22:21 +0000 (13:22 +0000)]
* startup.el (command-line-1): Don't handle `-i'.  We're
abandoning the `insert file' meaning in favor of the `use a
bitmapped icon' meaning.

31 years ago* faces.el (set-face-font): Call x-resolve-font-name on the font
Jim Blandy [Tue, 25 May 1993 13:19:28 +0000 (13:19 +0000)]
* faces.el (set-face-font): Call x-resolve-font-name on the font
before including it in the face.
(x-resolve-font-name): New function.