bpt/emacs.git
26 years ago(modify_overlay): Update overlay_modiff of proper buffer.
Richard M. Stallman [Sun, 7 Sep 1997 17:49:08 +0000 (17:49 +0000)]
(modify_overlay): Update overlay_modiff of proper buffer.

26 years agoEnlarge the stack size of temacs to 100KB.
Richard M. Stallman [Sun, 7 Sep 1997 17:25:55 +0000 (17:25 +0000)]
Enlarge the stack size of temacs to 100KB.

26 years ago(command-line-1): Update copyright year in string.
Richard M. Stallman [Sun, 7 Sep 1997 17:07:01 +0000 (17:07 +0000)]
(command-line-1): Update copyright year in string.

26 years ago(universal-coding-system-argument): Improve prompt strings.
Richard M. Stallman [Sun, 7 Sep 1997 06:51:34 +0000 (06:51 +0000)]
(universal-coding-system-argument): Improve prompt strings.

26 years agoRename uniquify-fix-list-* to uniquify-fix-item-*.
Richard M. Stallman [Sun, 7 Sep 1997 06:17:29 +0000 (06:17 +0000)]
Rename uniquify-fix-list-* to uniquify-fix-item-*.
All callers changed.

(uniquify-rationalize-file-buffer-names):
Use directory-file-name for directories (eliminate trailing slash).
Call uniquify-fix-item-unrationalized-buffer.
(uniquify-buffer-file-name): Use directory-file-name.
(uniquify-fix-item-unrationalized-buffer): New function.
(uniquify-unrationalized-buffer): Function deleted.

26 years agoContinue previous change, add mipsel-*-openbsd*.
Richard M. Stallman [Sun, 7 Sep 1997 05:27:45 +0000 (05:27 +0000)]
Continue previous change, add mipsel-*-openbsd*.

26 years agoTest __OpenBSD__ along with __NetBSD__.
Richard M. Stallman [Sun, 7 Sep 1997 05:25:37 +0000 (05:25 +0000)]
Test __OpenBSD__ along with __NetBSD__.

26 years agoInitial revision
Richard M. Stallman [Sun, 7 Sep 1997 05:14:46 +0000 (05:14 +0000)]
Initial revision

26 years ago(menu-bar-options-menu): Simplify global-font-lock-mode
Richard M. Stallman [Sun, 7 Sep 1997 04:43:10 +0000 (04:43 +0000)]
(menu-bar-options-menu): Simplify global-font-lock-mode
entry using enhanced global-font-lock-mode function.

26 years ago(quail-execute-non-quail-command): Call quail-terminate-translation.
Richard M. Stallman [Sun, 7 Sep 1997 04:31:35 +0000 (04:31 +0000)]
(quail-execute-non-quail-command): Call quail-terminate-translation.

26 years ago(time-stamp-time-zone): Allow nil as alternative.
Richard M. Stallman [Sun, 7 Sep 1997 04:30:52 +0000 (04:30 +0000)]
(time-stamp-time-zone): Allow nil as alternative.

26 years ago(Fcall_process_region): Fix previous change:
Richard M. Stallman [Sun, 7 Sep 1997 04:25:59 +0000 (04:25 +0000)]
(Fcall_process_region): Fix previous change:
never override Vcoding_system_for_write.

26 years ago(display_string): Determine multibyte from current buffer,
Richard M. Stallman [Sun, 7 Sep 1997 04:22:29 +0000 (04:22 +0000)]
(display_string): Determine multibyte from current buffer,
not from W's buffer.

26 years ago(font-lock-comment-face, etc.):
Richard M. Stallman [Sun, 7 Sep 1997 04:08:18 +0000 (04:08 +0000)]
(font-lock-comment-face, etc.):
defvars moved up to avoid warnings.
(font-lock-face-attributes, global-font-lock-mode): Add defvars.

26 years ago(ps-setup): ps-zebra-stripe => ps-zebra-stripes.
Richard M. Stallman [Sun, 7 Sep 1997 04:02:32 +0000 (04:02 +0000)]
(ps-setup): ps-zebra-stripe => ps-zebra-stripes.
ps-number-of-zebra =>  ps-zebra-stripe-height.

26 years ago(simula-emacs-features): Treat Emacs 20 like Emacs 19.
Richard M. Stallman [Sun, 7 Sep 1997 03:42:01 +0000 (03:42 +0000)]
(simula-emacs-features): Treat Emacs 20 like Emacs 19.

26 years ago(ispell-command-loop):
Richard M. Stallman [Sun, 7 Sep 1997 03:40:29 +0000 (03:40 +0000)]
(ispell-command-loop):
Restore dedicated flg of selected window.
(ispell-overlay-window): Move dedicated flag of old window
into the bottom of the two windows made from it.

26 years ago(read-language-name): Doc fix.
Richard M. Stallman [Sun, 7 Sep 1997 03:39:44 +0000 (03:39 +0000)]
(read-language-name): Doc fix.
(set-language-environment): Improve prompt.

26 years ago(global-font-lock-mode): When turning off
Richard M. Stallman [Sun, 7 Sep 1997 01:29:14 +0000 (01:29 +0000)]
(global-font-lock-mode): When turning off
Global Font Lock mode, turn off Font Lock mode everywhere.

26 years ago(regexp-opt): Doc fix.
Richard M. Stallman [Sun, 7 Sep 1997 01:24:23 +0000 (01:24 +0000)]
(regexp-opt): Doc fix.

26 years ago(move-past-close-and-reindent):
Richard M. Stallman [Sun, 7 Sep 1997 01:12:07 +0000 (01:12 +0000)]
(move-past-close-and-reindent):
Don't move closeparen back onto the end of a comment.

26 years ago(dired-flag-garbage-files): Move interactive flag across doc string.
Richard M. Stallman [Sat, 6 Sep 1997 22:22:24 +0000 (22:22 +0000)]
(dired-flag-garbage-files): Move interactive flag across doc string.

26 years ago(m4-mode): Add autoload cookie.
Richard M. Stallman [Sat, 6 Sep 1997 22:20:09 +0000 (22:20 +0000)]
(m4-mode): Add autoload cookie.

26 years ago(auto-mode-alist): Handle .m4 and .mc files.
Richard M. Stallman [Sat, 6 Sep 1997 22:18:47 +0000 (22:18 +0000)]
(auto-mode-alist): Handle .m4 and .mc files.

26 years agoAdd OpenBSD clause to set $machine.
Richard M. Stallman [Sat, 6 Sep 1997 19:42:31 +0000 (19:42 +0000)]
Add OpenBSD clause to set $machine.

26 years agoTest __OpenBSD__ along with __NetBSD__.
Richard M. Stallman [Sat, 6 Sep 1997 19:40:22 +0000 (19:40 +0000)]
Test __OpenBSD__ along with __NetBSD__.
[__OpenBSD__]: Include sys/exec_elf.h.

26 years agoTest __OpenBSD__ along with __NetBSD__.
Richard M. Stallman [Sat, 6 Sep 1997 19:37:47 +0000 (19:37 +0000)]
Test __OpenBSD__ along with __NetBSD__.

26 years agonew version
Michael Kifer [Sat, 6 Sep 1997 04:16:05 +0000 (04:16 +0000)]
new version

26 years agoSome comment and doc fixes.
Richard M. Stallman [Sat, 6 Sep 1997 02:52:00 +0000 (02:52 +0000)]
Some comment and doc fixes.
(ps-print-version): New version number (3.05.1).
(ps-adobe-tag): Replace defvar by defcustom, and doc fix.
(ps-print-with-faces, ps-print-without-faces)
(ps-spool-with-faces, ps-spool-without-faces): Add arg REGION-P.
(ps-print-region-with-faces, ps-print-region)
(ps-spool-region, ps-spool-region-with-faces): Fix calls to
the functions above.
(ps-setup): Print value of ps-zebra-stripe, ps-number-of-zebra,
ps-line-number, ps-print-background-image,
and ps-print-background-text.
(ps-print-prologue-1): Bug fix in PostScript programming:
/BeginDSCPage, /BeginPage.
(ps-showpage-count, ps-ref-bold-faces, ps-ref-italic-faces)
(ps-ref-underlined-faces, font-lock-face-attributes)
(ps-initialize-faces): Vars deleted.
(ps-override-list, ps-extension-to-bit-face)
(ps-extension-to-screen-face, ps-initialize-faces, ps-header-height)
(ps-hard-lf, ps-soft-lf, ps-get-face, ps-map-font-lock): Fn deleted.
(ps-extend-face-list, ps-extend-face): Doc fix.
(ps-print-face-alist): New var to handle face alist.
(ps-printing-region): New var and fn.
(ps-header-page, ps-set-face-bold, ps-set-face-italic)
(ps-set-face-underline, ps-set-face-attribute, ps-map-face): New fn.
(ps-rmail-mode-hook, ps-rmail-print-message-from-summary)
(ps-print-message-from-summary, ps-vm-print-message-from-summary):
Fns moved.
(ps-background): New argument PAGE-NUMBER.
(ps-begin-file): Bug fix and print proper line number in a region.
(ps-begin-page): Call ps-header-page.
(ps-get-buffer-name): Indicates in the header when printing a region.
(ps-end-page): Delete ps-showpage-count.
(ps-dummy-page): Calls ps-header-page.
(ps-set-color): Programming improvement.
(ps-plot-region): Doc fix.
(ps-face-attributes): Same functionality as deleted ps-get-face.
(ps-build-reference-face-lists): Do the job by calling
ps-set-face-bold and ps-bold-faces, and friends.

26 years agoMode line format has changed.
Richard M. Stallman [Sat, 6 Sep 1997 02:03:57 +0000 (02:03 +0000)]
Mode line format has changed.

26 years ago(uninstantiated-fontset-alist):
Richard M. Stallman [Fri, 5 Sep 1997 23:40:12 +0000 (23:40 +0000)]
(uninstantiated-fontset-alist):
Variable name spelling fixed, and doc fix.  All uses fixed.
(instantiate-fontset): Function name spelling fixed.

26 years ago(set-face-font-auto): instanciate-fontset renamed to instantiate-fontset.
Richard M. Stallman [Fri, 5 Sep 1997 23:39:21 +0000 (23:39 +0000)]
(set-face-font-auto): instanciate-fontset renamed to instantiate-fontset.

26 years ago(search-whitespace-regexp): Doc fix.
Richard M. Stallman [Fri, 5 Sep 1997 23:33:10 +0000 (23:33 +0000)]
(search-whitespace-regexp): Doc fix.

26 years ago(load-with-code-conversion):
Richard M. Stallman [Fri, 5 Sep 1997 23:30:30 +0000 (23:30 +0000)]
(load-with-code-conversion):
Don't bind enable-multibyte-characters; set it in the temp buffer.

26 years agoChanges for GNU make 3.75.93.
Paul D. Smith [Fri, 5 Sep 1997 21:01:56 +0000 (21:01 +0000)]
Changes for GNU make 3.75.93.

26 years ago(compilation-ask-about-save): Add autoload cookie.
Richard M. Stallman [Fri, 5 Sep 1997 19:41:25 +0000 (19:41 +0000)]
(compilation-ask-about-save): Add autoload cookie.

26 years ago* config.sub: Recognize v850-elf.
Jeff Law [Fri, 5 Sep 1997 18:08:34 +0000 (18:08 +0000)]
* config.sub: Recognize v850-elf.

26 years ago(setup-japanese-environment): Set
Kenichi Handa [Fri, 5 Sep 1997 12:30:29 +0000 (12:30 +0000)]
(setup-japanese-environment): Set
coding-category-iso-8-else to japanese-iso-8bit.

26 years ago(Ffind_operation_coding_system): If a function in
Kenichi Handa [Fri, 5 Sep 1997 08:07:44 +0000 (08:07 +0000)]
(Ffind_operation_coding_system): If a function in
XXX-coding-system-alist returns a coding system (instead of cons
of coding systems), return cons of it.

26 years ago(message-unix-mail-delimiter): Initialize
Richard M. Stallman [Fri, 5 Sep 1997 06:15:33 +0000 (06:15 +0000)]
(message-unix-mail-delimiter): Initialize
to the same value that rmail-unix-mail-delimiter is initialized to.

26 years ago(easy-menu-create-keymaps):
Richard M. Stallman [Fri, 5 Sep 1997 05:45:02 +0000 (05:45 +0000)]
(easy-menu-create-keymaps):
If two distinct items have the same string, make different
keyx events for them.

26 years ago(charset-quoted-standard-p): New function.
Richard M. Stallman [Fri, 5 Sep 1997 05:43:29 +0000 (05:43 +0000)]
(charset-quoted-standard-p): New function.
Use it instead of quoted-symbol-p.
(charset-id): Use charset-quoted-standard-p.
(quoted-symbol-p): Function deleted.

(set-terminal-coding-system): Specify default to read-coding-system.
(set-keyboard-coding-system): Likewise.

26 years ago(Fcall_interactively): Pass new arg to Fread_coding_system.
Richard M. Stallman [Fri, 5 Sep 1997 05:38:41 +0000 (05:38 +0000)]
(Fcall_interactively): Pass new arg to Fread_coding_system.

26 years ago(Fread_coding_system): New optional arg DEFAULT_CODING_SYSTEM.
Richard M. Stallman [Fri, 5 Sep 1997 05:38:21 +0000 (05:38 +0000)]
(Fread_coding_system): New optional arg DEFAULT_CODING_SYSTEM.

26 years ago(Fread_coding_system): Update decl.
Richard M. Stallman [Fri, 5 Sep 1997 05:37:59 +0000 (05:37 +0000)]
(Fread_coding_system): Update decl.

26 years agonew version
Michael Kifer [Fri, 5 Sep 1997 04:48:58 +0000 (04:48 +0000)]
new version

26 years agoComment change.
Richard M. Stallman [Fri, 5 Sep 1997 03:51:07 +0000 (03:51 +0000)]
Comment change.

26 years ago(Fexpand_file_name): If default dir isn't string, use `/'.
Richard M. Stallman [Fri, 5 Sep 1997 01:21:43 +0000 (01:21 +0000)]
(Fexpand_file_name): If default dir isn't string, use `/'.

26 years agoComment change.
Richard M. Stallman [Thu, 4 Sep 1997 20:25:56 +0000 (20:25 +0000)]
Comment change.

26 years ago(main): Update Copyright messages.
Erik Naggum [Thu, 4 Sep 1997 11:57:12 +0000 (11:57 +0000)]
(main): Update Copyright messages.

26 years ago(Faset): Simplify a statement in the char-table case.
Richard M. Stallman [Thu, 4 Sep 1997 06:30:27 +0000 (06:30 +0000)]
(Faset): Simplify a statement in the char-table case.
This is to help some compilers.

26 years ago(Qcoding_system_history): New variable.
Richard M. Stallman [Thu, 4 Sep 1997 05:58:20 +0000 (05:58 +0000)]
(Qcoding_system_history): New variable.
(syms_of_coding): Initialize it.
(Fread_coding_system): Use Qcoding_system_history.

26 years ago(set-buffer-file-coding-system): Improve prompt.
Richard M. Stallman [Thu, 4 Sep 1997 05:57:44 +0000 (05:57 +0000)]
(set-buffer-file-coding-system): Improve prompt.

26 years ago(read-input-method-name): Specify the input history properly.
Richard M. Stallman [Thu, 4 Sep 1997 05:54:38 +0000 (05:54 +0000)]
(read-input-method-name): Specify the input history properly.
(select-input-method): Improve prompt.

26 years ago(setup_coding_system, Ffind_operation_coding_system)
Richard M. Stallman [Thu, 4 Sep 1997 04:55:52 +0000 (04:55 +0000)]
(setup_coding_system, Ffind_operation_coding_system)
(Fdetect_coding_region, Fread_coding_system):
Don't initialize a Lisp_Object.

26 years ago(toggle-input-method): No error if enable-multibyte-characters is nil.
Richard M. Stallman [Thu, 4 Sep 1997 04:49:53 +0000 (04:49 +0000)]
(toggle-input-method): No error if enable-multibyte-characters is nil.

26 years ago(string-to-sequence): Work usefully when enable-multibyte-characters is nil.
Richard M. Stallman [Thu, 4 Sep 1997 04:48:23 +0000 (04:48 +0000)]
(string-to-sequence): Work usefully when enable-multibyte-characters is nil.

26 years ago(quail-update-translation):
Richard M. Stallman [Thu, 4 Sep 1997 04:47:34 +0000 (04:47 +0000)]
(quail-update-translation):
Do insert translated char when enable-multibyte-characters is nil.

26 years ago(detect_coding_mask): Re-work previous change.
Richard M. Stallman [Thu, 4 Sep 1997 03:31:10 +0000 (03:31 +0000)]
(detect_coding_mask): Re-work previous change.
(detect_eol): Fix use of == instead of -.

26 years ago(install): Fix previous change.
Kenichi Handa [Thu, 4 Sep 1997 01:22:26 +0000 (01:22 +0000)]
(install): Fix previous change.

26 years agoDo not copy leim-list.el twice.
Kenichi Handa [Thu, 4 Sep 1997 01:18:55 +0000 (01:18 +0000)]
Do not copy leim-list.el twice.

26 years ago(install): Copy `skk' subdirectory too.
Kenichi Handa [Thu, 4 Sep 1997 01:12:08 +0000 (01:12 +0000)]
(install): Copy `skk' subdirectory too.

26 years ago(TAGS tags): Simply refer this to the src subdir.
Richard M. Stallman [Wed, 3 Sep 1997 23:08:18 +0000 (23:08 +0000)]
(TAGS tags): Simply refer this to the src subdir.

26 years ago(HAVE_RINT): Add #undef.
Richard M. Stallman [Wed, 3 Sep 1997 23:02:21 +0000 (23:02 +0000)]
(HAVE_RINT): Add #undef.

26 years ago(emacs_rint): Define this,
Richard M. Stallman [Wed, 3 Sep 1997 23:01:57 +0000 (23:01 +0000)]
(emacs_rint): Define this,
either as a function or as a macro for rint.
(Fround, Ffround): Use emacs_rint, not rint directly.

26 years ago(dired-get-filename): Don't call encode-coding-string if FILE is nil.
Richard M. Stallman [Wed, 3 Sep 1997 22:31:25 +0000 (22:31 +0000)]
(dired-get-filename): Don't call encode-coding-string if FILE is nil.

26 years ago(find-tag-tag): Pass default to completing-read.
Richard M. Stallman [Wed, 3 Sep 1997 22:30:48 +0000 (22:30 +0000)]
(find-tag-tag): Pass default to completing-read.

26 years ago(read-language-name): Use a default, not an initial input.
Richard M. Stallman [Wed, 3 Sep 1997 22:29:06 +0000 (22:29 +0000)]
(read-language-name): Use a default, not an initial input.

26 years ago(file-coding-system-alist): Match `loaddefs.el' more accurately.
Richard M. Stallman [Wed, 3 Sep 1997 22:25:16 +0000 (22:25 +0000)]
(file-coding-system-alist): Match `loaddefs.el' more accurately.

26 years ago(operate-on-rectangle): If we overshoot when looking for endcol, back up.
Richard M. Stallman [Wed, 3 Sep 1997 21:09:39 +0000 (21:09 +0000)]
(operate-on-rectangle): If we overshoot when looking for endcol, back up.

26 years ago(menu-bar-help-menu): Rename info item to "Info (Browse Manuals)".
Richard M. Stallman [Wed, 3 Sep 1997 20:52:13 +0000 (20:52 +0000)]
(menu-bar-help-menu): Rename info item to "Info (Browse Manuals)".

(menu-bar-options-menu): String now "Global Options".
Rewrite the font lock toggle to turn off font lock on all buffers.
Choose lazy-lock by setting font-lock-support-mode.

26 years ago(Fcall_process): Set EOL conversion type to LF when
Richard M. Stallman [Wed, 3 Sep 1997 20:35:35 +0000 (20:35 +0000)]
(Fcall_process): Set EOL conversion type to LF when
binary-process-output is non-nil.
(Fcall_process_region): binary-process-XXXput only determines EOL
conversion; if it is nil, convert LF <-> CRLF.  Don't bind
coding-system-for-read, it is done in Fcall_process.

26 years ago(main): Call run_time_remap earlier, before any use of stdio.
Richard M. Stallman [Wed, 3 Sep 1997 20:34:22 +0000 (20:34 +0000)]
(main): Call run_time_remap earlier, before any use of stdio.

26 years ago(read_minibuf): Fix use of Ffboundp.
Richard M. Stallman [Wed, 3 Sep 1997 16:20:47 +0000 (16:20 +0000)]
(read_minibuf): Fix use of Ffboundp.

26 years ago(ispell-overlay-window): Undo previous change;
Richard M. Stallman [Wed, 3 Sep 1997 07:44:21 +0000 (07:44 +0000)]
(ispell-overlay-window): Undo previous change;
in other words, don't bind inhibit-frame-unsplittable.

26 years ago(my_endbss) [WINDOWSNT]: New variable.
Geoff Voelker [Wed, 3 Sep 1997 07:30:49 +0000 (07:30 +0000)]
(my_endbss) [WINDOWSNT]: New variable.

26 years ago(mule-menu-keymap):
Richard M. Stallman [Wed, 3 Sep 1997 07:27:58 +0000 (07:27 +0000)]
(mule-menu-keymap):
Define only as a variable; specify a name for the keymap.
(mule-keymap): Define only as variable.

26 years ago(mail-mode): Set adaptive-fill-first-line-regexp
Richard M. Stallman [Wed, 3 Sep 1997 07:08:43 +0000 (07:08 +0000)]
(mail-mode): Set adaptive-fill-first-line-regexp
specially, not same as adaptive-fill-regexp.

26 years ago(quail-update-guidance): If PROMPTKEY is
Kenichi Handa [Wed, 3 Sep 1997 05:46:54 +0000 (05:46 +0000)]
(quail-update-guidance): If PROMPTKEY is
specified in the original CXTERM dictionary, show also candidates
in Quail guidance buffer.
(quail-show-translations): Likewise.

26 years agoFor each package, pass t for the SIMPLE
Kenichi Handa [Wed, 3 Sep 1997 05:46:07 +0000 (05:46 +0000)]
For each package, pass t for the SIMPLE
argument to quail-define-package.

26 years agoRemove OS dependent operations.
Geoff Voelker [Wed, 3 Sep 1997 02:25:42 +0000 (02:25 +0000)]
Remove OS dependent operations.
(INFOPATH): No longer set INFOPATH.

26 years ago(WinMain): Allow Emacs process to be started with
Geoff Voelker [Wed, 3 Sep 1997 02:19:32 +0000 (02:19 +0000)]
(WinMain): Allow Emacs process to be started with
high or low priority.

26 years ago(CFLAGS_COMMON): Place pdb file in object build
Geoff Voelker [Wed, 3 Sep 1997 02:19:02 +0000 (02:19 +0000)]
(CFLAGS_COMMON): Place pdb file in object build
directory.
(CFLAGS) [!MSVCNT11]: Define _CRTAPI1.

26 years ago(get_env_size): New function.
Geoff Voelker [Wed, 3 Sep 1997 02:18:32 +0000 (02:18 +0000)]
(get_env_size): New function.
(spawn): Explicitly pass in environment when creating subprocess.
(main): Cleaup error messages.
Specify dynamically sized environment block for real shell.
Pass on unhandled switches to real shell.
Quote program name.

(get_next_token): Null terminate token returned.

26 years ago(env_vars): Put site-lisp before lisp in EMACSLOADPATH.
Geoff Voelker [Wed, 3 Sep 1997 02:18:15 +0000 (02:18 +0000)]
(env_vars): Put site-lisp before lisp in EMACSLOADPATH.
Quote group name.  Allow different icons to be specified.

(env_vars): No longer set INFOPATH.

26 years ago(INTERRUPT_INPUT): Don't define.
Geoff Voelker [Wed, 3 Sep 1997 01:14:40 +0000 (01:14 +0000)]
(INTERRUPT_INPUT): Don't define.
(bcopy): Use memmove instead of memcpy.
(GAP_USE_BCOPY, BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE): Define.
Undef system calls before redefining.  Emulated calls redefined
to sys_*, real calls redefined to _*.
(DebPrint): Macro defined.

Use pragmas to place Emacs initialized data in
EMDATA segment, and Emacs uninitialized data in EMBSS segment.

26 years ago(have_menus_p): Move to w32fns.c.
Geoff Voelker [Wed, 3 Sep 1997 01:14:17 +0000 (01:14 +0000)]
(have_menus_p): Move to w32fns.c.

26 years ago(w32_output): New fields menubar_widget, menubar_active,
Geoff Voelker [Wed, 3 Sep 1997 01:13:25 +0000 (01:13 +0000)]
(w32_output): New fields menubar_widget, menubar_active,
and pending_menu_activation.
(VERTICAL_SCROLL_BAR_*): Use proportional scroll bar variables.
(W32WindowPos): Delete definition.
(WM_EMACS_SETFOCUS, WND_*_INDEX): New macros.
(deferred_msg): New structure.

(WM_MOUSEWHEEL): Define if not already defined.
Necessary for pre VC5.0 distribution.
(WM_EMACS_TRACKPOPUPMENU): New Macro.

26 years ago(SIF_*): Win95 macros defined for NT.
Geoff Voelker [Wed, 3 Sep 1997 01:07:37 +0000 (01:07 +0000)]
(SIF_*): Win95 macros defined for NT.
(struct tagSCROLLINFO): Win95 struct defined for NT.
(vertical_scroll_bar_min_handle, vertical_scroll_bar_top_border,
vertical_scroll_bar_bottom_border, last_scroll_bar_drag_pos,
Vw32_gab_focus_on_raise, Vw32_capslock_is_shiftlock): New
variables.
(w32_frame_up_to_date): Block input.
(do_line_dance): Use DC while erasing, release at end.
(show_mouse_face): Use column and endcolumn calculated at start of
loop.
(my_create_scrollbar, my_show_window, my_set_window_pos,
my_set_focus) [! ATTACH_THREADS]: Send message to window instead
of invoking Windows procedure.
(x_scroll_bar_create, x_scroll_bar_move, x_scroll_bar_handle_click,
x_scroll_bar_report_motion): Use SCROLLINFO for proportional handle.
(x_scroll_bar_set_handle): Create proportional sized scroll handle.
(w32_set_vertical_scroll_bar): Size handle according to how much
is showing in window.
(x_scroll_bar_set_report_motion): Use top_range, calculated above.
(x_scroll_bar_clear): Hide scroll bar until ready to repaint.
(show_scroll_bars): Pass in frame to my_show_window.
(w32_read_socket): Distinguish between invisible and obscured frames
when handling PAINT messages.
Fixup off-by-one calculation for PAINT and SIZE.
Pass in new parameter to w32_kbd_mods_to_emacs.
Handle WM_DISPLAYCHANGE, WINDOWPOSCHANGED, ACTIVATE, SHOWWINDOW,
INITMENU, and ACTIVATEAPP messages.
Explicitly check for visibile and obscured frames, and to see if
any event should cause a redisplay.

(x_display_bar_cursor): Don't check whether frame is updating here.
(x_display_cursor): Check it here instead.
(x_set_offset) [HAVE_NTGUI]: Don't add border widths.
Set NOACTIVATE when setting window position.
(x_set_window_size): Fixup off-by-one calculation when setting
window position.  Mark frame garbaged earlier.  Clear mouse
highlighting state.
(x_focus_on_frame): Set focus by making frame the foreground window.
(x_raise_frame): Support frames to be raised without grabbing focus.
(x_lower_frame): Set NOACTIVATE flag when setting window position.
(x_make_frame_visible, x_make_frame_invisible): Pass in frame
to my_show_window.
to my_show_window.
(x_iconify_frame): Send a MINIMIZE message to the window.
(x_wm_set_size_hint): Set font width, line height, border,
and scroll bar indexes instead of X and Y unit indexes.

(w32_initialize): Set input mode.  Use w32_msg_worker instead
of windows_msg_worker.  Dynamically link proportional scroll bar
functions and intialize proportional scroll bar variables.
(syms_of_w32term): DEFVAR new variables.

(construct_mouse_wheel): New function.  Constructs an
input event from a WM_MOUSEWHEEL message.
(w32_read_socket): Handle WM_MOUSEWHEEL.

(w32_read_socket): Pass in new parameter to key_event.
Let key_event determine whether key is dead.
For MOVE, use x_real_positions to map to client coords.
(x_set_mouse_pixel_position): Offset to use client area as origin.

26 years agoInclude w32heap.h.
Geoff Voelker [Wed, 3 Sep 1997 01:05:33 +0000 (01:05 +0000)]
Include w32heap.h.
(Vw32_start_process_share_console, Vw32_generate_fake_inodes,
Vw32_get_true_file_attributes, Qhigh, Qlow, process_dir):
New variables.
(find_child_console, set_process_dir, Fw32_short_file_name,
Fw32_long_file_name, Fw32_set_process_priority, Fw32_get_locale_info,
Fw32_get_current_locale_id, Fw32_get_default_local_id,
Fw32_set_current_locale): New functions.
(CORRECT_DIR_SEPS): New macro.
(create_child): Create a new console if subprocs don't share parent's.
(reap_subprocess): Don't check for dos subprocesses.
Add debug support.
(sys_wait): Ignore socket child_procs.
Check for quit while waiting.
(w32_executable_type): Renamed from w32_is_dos_binary.
Check for dos and Cygnus executables.
(sys_spawnve): Always use cmdproxy if spawning a dos app.
Use quotes to quote arguments for Cygnus apps, backslashes otherwise.
Handle escape characters.  Escape quotes at start and end, too.
(sys_select): Treat null timeout as infinite.
Add handles of child processes.
Loop over handles round robin to ensure fairness.
(sys_kill): Send ctrl-break and ctrl-c keystrokes to subprocesses
on SIGINT if not sharing consoles, otherwise generate ctrl-break event.
On other termination signals, send WM_QUIT message to Win95 apps
and WM_CLOSE to NT apps.
(syms_of_ntproc): Intern new symbols.  defsubr new functions.
DEFVAR new variables.

26 years ago(init_menu_items): Disable code.
Geoff Voelker [Wed, 3 Sep 1997 00:53:34 +0000 (00:53 +0000)]
(init_menu_items): Disable code.
(x_activate_menubar): New function.
(initialize_frame_menubar): Pass in new param to set_frame_menubar.

(get_frame_menubar_event): Check for the possibility
of a menu-bar button.  A menu-bar button is a caption on the menu
bar with no submenu.

(set_frame_menubar): Correctly handle menu-bar buttons.
(add_menu_item): Equiv parameter send and paid attention to.
(keymap_panes, list_of_panes): Use CreatePopupMenu.
(single_keymap_panes): Use CreatePopupMenu.  Send key descriptions
to add_menu_item.
(list_of_items): Use CreatePopupMenu.  Send nil description to
add_menu_item.
(get_menu_event): Send keymap instead of menu to get_keymap_event.
(Fx_popup_menu): Extra parameter to mouse_position_hook.  Don't
send address of menu to win32menu_show.
(win32menu_show): Send message to call popup menu rather than
trying directly.  get_menu_event should take an address.
Call eat_mouse_events in order to get rid of any extraneous
mouse events.
(list_of_panes): Only bring up one pane if the length of the list
of panes is one.

(single_keymap_panes): Fixed problem with 'descrip'
lisp object not being protected properly (GCPRO).
(get_single_keymap_event): Fixed problem with 'descrip' lisp
object not being protected properly (GCPRO).
(name_is_separator): New function.
(list_of_panes): If a pane's name is empty ("") items are now
placed in the main popup instead of a blank-named submenu.  This
seems to be an undocumented feature of x-popup-menu.
(list_of_items): New argument HMENU.
Use 1 and 0 instead of Qt and Qnil for enable in add_menu_item

26 years agoDeclare externs from other files.
Geoff Voelker [Wed, 3 Sep 1997 00:52:40 +0000 (00:52 +0000)]
Declare externs from other files.
(w32_kbd_mods_to_emacs): New parameter KEY.
Use w32-capslock-is-shiftlock for old behavior.
(key_event): Pass in new parameter to w32_kbd_mods_to_emacs.
(key_event): New parameter isdead. Set isdead if the
key press was done using a dead key.

26 years agoEnumerate operating system types.
Geoff Voelker [Wed, 3 Sep 1997 00:52:12 +0000 (00:52 +0000)]
Enumerate operating system types.
Declare extern data and functions.
Move file_data struct definition here.
(OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): New macros.

26 years ago(os_subtype): New variable.
Geoff Voelker [Wed, 3 Sep 1997 00:51:32 +0000 (00:51 +0000)]
(os_subtype): New variable.
(cache_system_info): Set os_subtype.
(recreate_heap): Update system information after loading heap.
Don't use data_seg pragma here.
(_heap_init, _heap_term) [_MSC_VER >= 1000]: New functions that
override CRT routines.

26 years agoInclude limits.h and errno.h.
Geoff Voelker [Wed, 3 Sep 1997 00:47:47 +0000 (00:47 +0000)]
Include limits.h and errno.h.
Declare externs from other files.
(w32_in_use): New variable.
(check_w32, have_menus_p, x_set_title, w32_msg_worker,
find_deferred_msg, send_deferred_msg, complete_deferred_msg,
Fw32_focus_frame, W32-send-sys-command): New functions.
(last_mouse_movement_time): Delete variable.

(x_frame_parms): Alphabetize.  Add title parm.
(x_set_icon_name): Use title if set.
(x_set_menu_bar_lines): Ensure client area remains the same.
(x_set_name): Don't update if the name is the same.
Use title for name if available.
(x_icon): Initial support for creating window iconified.
(x_display_info_for_name): Set w32_in_use.
(Fx_open_connection): Validate Vwindow_system.  Set w32_in_use.

(w32_create_window): Set window size to frame dimensions.
Set font width, line height, border, scrollbar indexes.
Don't set X and Y units indexes.
(w32_msg_pump): Renamed from windows_msg_worker.
Make static.  Don't post done message. No longer handle
create scrollbar message.  Don't abort on anomalous messages.
Return when completion detected.
(w32_wnd_proc): Keep track of button state.
For WINDOWPOSCHANGING, force window dimensions to be multiples
of character dimensions.
Handle CREATESCROLLBAR.
Use correct arguments for SHOWWINDOW.
For SETWINDOWPOS, use WINDOWPOS structure.

(my_create_window): Abort if message post fails.
(Fx_create_frame): Use title instead of name.
GC protect frame before make_frame_without_minibuffer.
Set icon name.
Use courier new as default font (has bold and italic).
Set BufferPredicate and Title default parameters.

(x_to_w32_weight): Support semibold weight.
(x_to_w32_charset): Map # to numeric charset identifier.
(w32_to_x_charset): Encode unknown charsets as a number.
(enum_font_cb2): Don't restrict to ANSI and OEM charsets.

(Fx_color_values): Set high and low words of color values.

(syms_of_w32fns): Zero w32_in_use.  defsubr new functions.

(w32_wnd_proc): Pass on WM_DISPLAYCHANGE messages.

(win32_wnd_proc): Capture and handle WM_MOUSEWHEEL events.
Capture and handle WM_EMACS_TRACKPOPUPMENU events.
Allow a dragged selection from a popup menu started up
by a mouse down event.
(x_to_win32_color): Support for X Windows RGB string specifications.

26 years ago(DebPrint, reset_kbd, unset_kbd, take_console): Delete functions.
Geoff Voelker [Wed, 3 Sep 1997 00:46:41 +0000 (00:46 +0000)]
(DebPrint, reset_kbd, unset_kbd, take_console): Delete functions.
(keyboard_init_hook): Delete variable.
(prev_console_cursor) [! USE_SEPARATE_SCREEN]: New variable.
(reset_terminal_modes) [! USE_SEPARATE_SCREEN]: Reset cursor info.
(initialize_w32_display) [USE_SEPARATE_SCREEN]: Create separate
screen buffer.
(ctrl_c_handler): Only ignore interrupts when interactive.
(set_terminal_modes): Set input mode.
(initialize_w32_display): Record original settings.
Don't reset cursor or clear frame.

26 years agoRemove debugging macros.
Geoff Voelker [Wed, 3 Sep 1997 00:46:21 +0000 (00:46 +0000)]
Remove debugging macros.
(child_process): Remove is_dos_process field, add hwnd handle field.
(FILE_LAST_CR): New macro.
(w32_get_long_filename): Declare extern.

26 years agoInclude stddef.h.
Geoff Voelker [Wed, 3 Sep 1997 00:43:20 +0000 (00:43 +0000)]
Include stddef.h.
(getwd): Delete macro.
(startup_dir): New variable.
(getwd): Return directory in which Emacs started.
(init_user_info): Set SHELL environment variable if not set.
(parse_root, get_long_basename, w32_get_long_filename): New functions.
(init_environment): Look for CMDPROXY.
Make sure that PATH and COMSPEC are capitalized in the environment.
Record startup directory.
(get_emacs_configuration, sys_rename): Use OS_WIN95.
(map_w32_filename): Calculate returned string correctly.

(sys_fopen): Use _fdopen.
(sys_link): Support NTFS links.
(sys_rename): Use a long file name for temporary name.
(sys_pipe): Make pipes binary and non-inheritable.
(sys_read, sys_write): Spoof text mode translation for pipes
and sockets.

(hashval): Simplify.
(generate_inode_val): Use long file name version of file.

(stat): Optimize by using active readdir info.
Set fake_inode to 0 for directories.
Set fake_inode to xor of file indexes for files.
Don't use generate_inode_val to set inode value.

(volume_info_data): Renamed from volume_info.
(volume_info, fixed_drives, volume_cache): New variables.
(DRIVE_INDEX, VOLINFO_STILL_VALID): New macros.
(lookup_volume_info, add_volume_info, GetCachedVolumeInformation):
New functions.
(get_volume_info): Use volume_info_data.
Use GetCachedVolumeInformation.

(init_ntproc): No longer restrict to one DOS subprocess.
Use CRT _open and _fdopen.
Cache fixed drive information.

26 years agoInclude config.h and time.h.
Geoff Voelker [Wed, 3 Sep 1997 00:42:10 +0000 (00:42 +0000)]
Include config.h and time.h.
Declare extern data and functions.
(file_data): Move definition from w32heap.c.
(_start): Add debug hook for when profiling.
Spoof executable name when using profilers.
Invoke sbrk immediately when undumped.
(unexec): Print error messages when input and output dump files
cannot be opened.
Reset header checksum.
(open_input_file, open_output_file): Return status instead of aborting.
(get_section_size): Handle different linkers.
(find_section, rva_to_section): New functions.
(get_section_info) [SEPARATE_BSS_SECTION]: Make code for using
a separate .bss section conditional.
Use my_begbss and my_endbss to determine .bss size by default.
Look for Emacs data in EMDATA section.

26 years agomakefile.nt (TLIB0, TOBJ, OBJ0): New macro.
Geoff Voelker [Wed, 3 Sep 1997 00:41:32 +0000 (00:41 +0000)]
makefile.nt (TLIB0, TOBJ, OBJ0): New macro.
(LINK_FLAGS): Separate debugging info from the executable.
(LIBS): Include TLIB0.
(TEMACS): Link with TLIB0.
(EMACS): Copy temacs map file to emacs map file.
Update file dependencies.