bpt/emacs.git
20 years agoMajor bugfixes and slight enhancements.
Karoly Lorentey [Tue, 30 Dec 2003 19:27:57 +0000 (19:27 +0000)]
Major bugfixes and slight enhancements.

src/dispextern.h (get_tty_size, tabs_safe_p, init_baud_rate): Update
prototypes.

src/dispnew.c (window_change_signal): Update call to get_tty_size.
src/frame.c (Fmake_terminal_frame): Ditto.
src/keyboard.c (Fsuspend_emacs): Ditto.

src/sysdep.c: Eliminate tty_outputs, wherever possible.  (The
exceptions are init_sys_modes and reset_sys_modes, which need access
to tty-local parameters).
(init_baud_rate): Change tty_output parameter to a simple file descriptor.
(narrow_foreground_group, widen_foreground_group): Ditto.
(tabs_safe_p, get_tty_size): Ditto.
(init_sys_modes): Update narrow_foreground_group invocation.
(reset_sys_modes): Update widen_foreground_group invocation.
(request_sigio)[!FASYNC && STRIDE]: Fix function signature.

src/term.c (delete_tty): Only close output file handle if it is
different from input.  Re-enable freeing of Wcm.
(term_init): Update get_tty_size, tabs_safe_p and init_baud_rate
invocations.

lib-src/emacsclient.c (here): Renamed to frame.
(longopts): Change --here to --frame.  The -h short option may be
confused with --help.
(decode_options, print_help_and_exit): Update to reflect above changes.
(main): Ditto.

lisp/server.el (server-start): Fix frame-live-p call syntax.
(server-process-filter): Handle 'emacsclient -f' without file
arguments.  Don't return any values to emacsclient when 'emacsclient
-f -e'.
(server-switch-buffer): Prevent infinite recursion when there are no
files to edit.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-27

20 years agoUndo patch-23. I need a coffee.
Karoly Lorentey [Tue, 30 Dec 2003 17:51:52 +0000 (17:51 +0000)]
Undo patch-23.  I need a coffee.

src/sysdep.c (sys_select): Restore previous #ifdef.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-26

20 years agoDelete server frames on server restart.
Karoly Lorentey [Tue, 30 Dec 2003 17:42:02 +0000 (17:42 +0000)]
Delete server frames on server restart.

lisp/server.el (server-start): Delete any remaining opened frames of
the previous server.
(server-sentinel, server-process-filter): Force deleting the frame.
(server-buffer-done): Ditto.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-25

20 years agoMerged in changes from CVS head
Karoly Lorentey [Tue, 30 Dec 2003 17:05:05 +0000 (17:05 +0000)]
Merged in changes from CVS head

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-5
   Add =cvs-sync-make-log script

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-6
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-7
   Use absolute tla-tools filenames in =cvs-sync-make-log

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-8
   Use proper arch-tag: syntax for lispintro/texinfo.tex

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-9
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-24

20 years agoDon't compile sys_select on systems that don't need it.
Karoly Lorentey [Tue, 30 Dec 2003 17:02:33 +0000 (17:02 +0000)]
Don't compile sys_select on systems that don't need it.

src/sysdep.c (sys_select): This function is unnecessary on most
systems, so #ifdef it out.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-23

20 years agoUse arch-tag: syntax that tla can grok
Miles Bader [Tue, 30 Dec 2003 14:53:35 +0000 (14:53 +0000)]
Use arch-tag: syntax that tla can grok

20 years ago(rmail-convert-to-babyl-format): Fix off-by-one
Eli Zaretskii [Tue, 30 Dec 2003 11:43:21 +0000 (11:43 +0000)]
(rmail-convert-to-babyl-format): Fix off-by-one
error in arguments to base64-decode-region.  Remove ^M characters
after decoding base64.

20 years agoChange maintainer to FSF. Suggested by
Simon Josefsson [Tue, 30 Dec 2003 10:59:36 +0000 (10:59 +0000)]
Change maintainer to FSF.  Suggested by
karl@freefriends.org (Karl Berry), since the Texinfo Elisp files
have only been distributed with Emacs for some years.
(texinfo-mode-hook): Customize.

20 years ago(rmail-convert-to-babyl-format): Make the code
Eli Zaretskii [Tue, 30 Dec 2003 10:46:37 +0000 (10:46 +0000)]
(rmail-convert-to-babyl-format): Make the code
cleaner (suggested by Richard M. Stallman).

20 years ago*** empty log message ***
Eli Zaretskii [Tue, 30 Dec 2003 08:51:06 +0000 (08:51 +0000)]
*** empty log message ***

20 years ago(gud-tool-bar-map): Modify names of icon files
Eli Zaretskii [Tue, 30 Dec 2003 08:50:29 +0000 (08:50 +0000)]
(gud-tool-bar-map): Modify names of icon files
for gud-next, gud-nexti, gud-step and gud-stepi to prevent
file-name clashes on 8+3 DOS filesystems.

20 years ago* toolbar/gud-next.pbm, toolbar/gud-next.xpm
Eli Zaretskii [Tue, 30 Dec 2003 08:49:27 +0000 (08:49 +0000)]
* toolbar/gud-next.pbm, toolbar/gud-next.xpm
* toolbar/gud-nexti.pbm, toolbar/gud-nexti.xpm
* toolbar/gud-step.pbm, toolbar/gud-step.xpm
* toolbar/gud-stepi.pbm, toolbar/gud-stepi.xpm: Renamed to
gud-n.*, gud-ni.*, gud-s.*, and gud-si.*, respectively, to avoid
file-name clashes on 8+3 filesystems.

20 years agoemacs-lisp/tcover-unsafep.el, emacs-lisp/tcover-ses.el: Renamed
Eli Zaretskii [Tue, 30 Dec 2003 08:26:00 +0000 (08:26 +0000)]
emacs-lisp/tcover-unsafep.el, emacs-lisp/tcover-ses.el: Renamed
from testcover-unsafep.el and testcover-ses.el to avoid file-name
clashes on 8+3 DOS filesystems.

20 years agoRenamed INSTALL-CVS to INSTALL.CVS to avoid file-name
Eli Zaretskii [Tue, 30 Dec 2003 08:08:22 +0000 (08:08 +0000)]
Renamed INSTALL-CVS to INSTALL.CVS to avoid file-name
clashes with install-sh on 8+3 filesystems.

20 years ago(Choosing Window): Add same-window-p, special-display-p.
Richard M. Stallman [Mon, 29 Dec 2003 21:53:46 +0000 (21:53 +0000)]
(Choosing Window): Add same-window-p, special-display-p.
(Window Configurations): Add window-configuration-frame.

20 years ago(Creating Buffer-Local): Add local-variable-if-set-p.
Richard M. Stallman [Mon, 29 Dec 2003 21:52:03 +0000 (21:52 +0000)]
(Creating Buffer-Local): Add local-variable-if-set-p.

20 years ago(Examining Properties): Add get-char-property-and-overlay.
Richard M. Stallman [Mon, 29 Dec 2003 21:51:29 +0000 (21:51 +0000)]
(Examining Properties): Add get-char-property-and-overlay.
Change arg name in get-char-property.
(Special Properties): Update handling of keymap property.

20 years ago(Modifying Strings): Add clear-string.
Richard M. Stallman [Mon, 29 Dec 2003 21:37:17 +0000 (21:37 +0000)]
(Modifying Strings): Add clear-string.
(Text Comparison): Add assoc-string and remove
assoc-ignore-case, assoc-ignore-representation.

20 years ago(Time of Day): Add set-time-zone-rule.
Richard M. Stallman [Mon, 29 Dec 2003 21:35:37 +0000 (21:35 +0000)]
(Time of Day): Add set-time-zone-rule.

20 years ago(Math Functions): asin, acos, log, log10 report domain-error errors.
Richard M. Stallman [Mon, 29 Dec 2003 21:32:10 +0000 (21:32 +0000)]
(Math Functions): asin, acos, log, log10 report domain-error errors.

20 years ago(Converting Representations):
Richard M. Stallman [Mon, 29 Dec 2003 21:29:15 +0000 (21:29 +0000)]
(Converting Representations):
Add multibyte-char-to-unibyte and unibyte-char-to-multibyte.
(Encoding and I/O): Add file-name-coding-system.

20 years ago(Search-based Fontification): Explain that
Richard M. Stallman [Mon, 29 Dec 2003 21:27:13 +0000 (21:27 +0000)]
(Search-based Fontification): Explain that
face specs are symbols with face names as values.

20 years ago(Minibuffer Misc): Add set-minibuffer-window.
Richard M. Stallman [Mon, 29 Dec 2003 21:24:48 +0000 (21:24 +0000)]
(Minibuffer Misc): Add set-minibuffer-window.

20 years ago(Building Lists): remq moved elsewhere.
Richard M. Stallman [Mon, 29 Dec 2003 21:24:11 +0000 (21:24 +0000)]
(Building Lists): remq moved elsewhere.
(Sets And Lists): remq moved here.
(Association Lists): Refer to assoc-string.

20 years ago(Garbage Collection): Add memory-use-counts.
Richard M. Stallman [Mon, 29 Dec 2003 20:59:33 +0000 (20:59 +0000)]
(Garbage Collection): Add memory-use-counts.

20 years ago(Frames and Windows): Add set-frame-selected-window and frame-root-window.
Richard M. Stallman [Mon, 29 Dec 2003 20:58:40 +0000 (20:58 +0000)]
(Frames and Windows): Add set-frame-selected-window and frame-root-window.

20 years ago(Contents of Directories):
Richard M. Stallman [Mon, 29 Dec 2003 20:28:40 +0000 (20:28 +0000)]
(Contents of Directories):
Add directory-files-and-attributes.

20 years ago(Refresh Screen): Add force-window-update.
Richard M. Stallman [Mon, 29 Dec 2003 20:28:06 +0000 (20:28 +0000)]
(Refresh Screen): Add force-window-update.
(Invisible Text): Explain about moving point out of invis text.
(Overlay Properties): Add overlay-properties.
(Managing Overlays): Add overlayp.
(GIF Images): Invalid image number displays a hollow box.

20 years ago(Buffer Modification): Add restore-buffer-modified-p.
Richard M. Stallman [Mon, 29 Dec 2003 20:25:53 +0000 (20:25 +0000)]
(Buffer Modification): Add restore-buffer-modified-p.
(Killing Buffers): Add buffer-live-p.

20 years ago(mail-mode-flyspell-verify): Search for header separator alone on a
Richard M. Stallman [Mon, 29 Dec 2003 20:06:19 +0000 (20:06 +0000)]
(mail-mode-flyspell-verify): Search for header separator alone on a
line, literally, and search for it backward, not forward.
(flyspell-abbrev-table): Always use global-abbrev-table if there is no
local one.

20 years ago(sh-get-indent-info):
Richard M. Stallman [Mon, 29 Dec 2003 20:03:46 +0000 (20:03 +0000)]
(sh-get-indent-info):
Don't move point back if at bob.

20 years ago(save-buffer-state-x): Use with-no-warnings.
Richard M. Stallman [Mon, 29 Dec 2003 20:03:05 +0000 (20:03 +0000)]
(save-buffer-state-x): Use with-no-warnings.

20 years ago(handwrite): Make the handwrite credit message
Richard M. Stallman [Mon, 29 Dec 2003 20:02:15 +0000 (20:02 +0000)]
(handwrite): Make the handwrite credit message
a comment rather than an output command.

20 years agoDisplay message that this file is obsolete.
Richard M. Stallman [Mon, 29 Dec 2003 20:01:32 +0000 (20:01 +0000)]
Display message that this file is obsolete.

20 years ago(ange-ftp-start-process): Copy the environment.
Richard M. Stallman [Mon, 29 Dec 2003 20:00:36 +0000 (20:00 +0000)]
(ange-ftp-start-process): Copy the environment.

20 years ago(rfc822-address-start): Declare variable.
Richard M. Stallman [Mon, 29 Dec 2003 19:59:24 +0000 (19:59 +0000)]
(rfc822-address-start): Declare variable.
Renamed from address-start.  All uses changed.

20 years ago(term-exec): Set up sentinel.
Richard M. Stallman [Mon, 29 Dec 2003 19:58:11 +0000 (19:58 +0000)]
(term-exec): Set up sentinel.
(term-sentinel): New function.
(term-handle-exit): New function.

20 years ago(assoc-ignore-case, assoc-ignore-representation):
Richard M. Stallman [Mon, 29 Dec 2003 19:56:54 +0000 (19:56 +0000)]
(assoc-ignore-case, assoc-ignore-representation):
Use assoc-string, and mark them obsolete.
(delay-mode-hooks): Mark as permanent local.

20 years ago(sendmail-user-agent-compose): Use assoc-string.
Richard M. Stallman [Mon, 29 Dec 2003 19:52:25 +0000 (19:52 +0000)]
(sendmail-user-agent-compose): Use assoc-string.

20 years ago(copy-rectangle-to-register): Doc fix.
Richard M. Stallman [Mon, 29 Dec 2003 19:51:54 +0000 (19:51 +0000)]
(copy-rectangle-to-register): Doc fix.

20 years ago(Info-insert-dir): Use assoc-string.
Richard M. Stallman [Mon, 29 Dec 2003 19:18:53 +0000 (19:18 +0000)]
(Info-insert-dir): Use assoc-string.

20 years ago*** empty log message ***
Richard M. Stallman [Mon, 29 Dec 2003 19:18:20 +0000 (19:18 +0000)]
*** empty log message ***

20 years ago(info-lookup): Use assoc-string.
Richard M. Stallman [Mon, 29 Dec 2003 19:18:09 +0000 (19:18 +0000)]
(info-lookup): Use assoc-string.

20 years ago(pop-up-frame-function): Use quote, not `function'.
Richard M. Stallman [Mon, 29 Dec 2003 19:17:24 +0000 (19:17 +0000)]
(pop-up-frame-function): Use quote, not `function'.
(frame-notice-user-settings): Calculate ADJUSTED-TOP
copying with lists as coordinate values.

20 years ago(font-lock-after-change-function): Bind inhibit-quit.
Richard M. Stallman [Mon, 29 Dec 2003 19:16:05 +0000 (19:16 +0000)]
(font-lock-after-change-function): Bind inhibit-quit.

20 years ago(kill-find): New command.
Richard M. Stallman [Mon, 29 Dec 2003 19:15:23 +0000 (19:15 +0000)]
(kill-find): New command.
(find-dired): Make buffer read-only.
Set up a keymap with C-c C-k running kill-find.
(find-dired-filter, find-dired-sentinel): Bind inhibit-read-only.

20 years ago(backup-buffer-copy): If MODES is nil, don't set modes.
Richard M. Stallman [Mon, 29 Dec 2003 19:14:03 +0000 (19:14 +0000)]
(backup-buffer-copy): If MODES is nil, don't set modes.

20 years ago(shell-file-name-chars): Add [].
Richard M. Stallman [Mon, 29 Dec 2003 19:13:28 +0000 (19:13 +0000)]
(shell-file-name-chars): Add [].

(shell-dynamic-complete-as-command): Rename local vars.

20 years ago(define-generic-mode): Doc fix.
Richard M. Stallman [Mon, 29 Dec 2003 19:12:40 +0000 (19:12 +0000)]
(define-generic-mode): Doc fix.

20 years ago(file-cache-ignore-case): New variable.
Richard M. Stallman [Mon, 29 Dec 2003 19:12:17 +0000 (19:12 +0000)]
(file-cache-ignore-case): New variable.
(file-cache-assoc-function): Var deleted.  Use assoc-string instead.

20 years ago(comint-arguments): Set COUNT after ARGS is complete.
Richard M. Stallman [Mon, 29 Dec 2003 19:10:24 +0000 (19:10 +0000)]
(comint-arguments): Set COUNT after ARGS is complete.
(comint-dynamic-complete-as-filename): Rename local vars.
(comint-dynamic-list-filename-completions): Likewise.

(comint-dynamic-list-completions-config): New var.
(comint-dynamic-list-completions): Handle both SPC and TAB right.

(comint-file-name-chars): Add [].
(comint-word): Use skip-chars-backward, not search.

20 years ago(bookmark-get-bookmark): Use assoc-string.
Richard M. Stallman [Mon, 29 Dec 2003 19:04:08 +0000 (19:04 +0000)]
(bookmark-get-bookmark): Use assoc-string.

20 years agoUpdate author email addr.
Richard M. Stallman [Mon, 29 Dec 2003 19:03:08 +0000 (19:03 +0000)]
Update author email addr.

20 years agoChanged arch tag comment out glyph from `%' to `@c' since the Texinfo
Robert J. Chassell [Mon, 29 Dec 2003 16:45:00 +0000 (16:45 +0000)]
Changed arch tag comment out glyph from `%' to `@c' since the Texinfo
comment out glyph is active at the end of this file.

20 years ago*** empty log message ***
Eli Zaretskii [Mon, 29 Dec 2003 14:06:29 +0000 (14:06 +0000)]
*** empty log message ***

20 years ago(kill-some-buffers): Doc fix.
Eli Zaretskii [Mon, 29 Dec 2003 14:04:31 +0000 (14:04 +0000)]
(kill-some-buffers): Doc fix.

20 years agoMerged in changes from CVS head
Karoly Lorentey [Mon, 29 Dec 2003 13:59:23 +0000 (13:59 +0000)]
Merged in changes from CVS head

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-4
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-22

20 years ago(internal_equal): Return t for two NaN arguments.
Eli Zaretskii [Mon, 29 Dec 2003 13:51:54 +0000 (13:51 +0000)]
(internal_equal): Return t for two NaN arguments.

20 years ago*** empty log message ***
Eli Zaretskii [Mon, 29 Dec 2003 13:44:14 +0000 (13:44 +0000)]
*** empty log message ***

20 years ago(comint-watch-for-password-prompt): Pass `string' as
Eli Zaretskii [Mon, 29 Dec 2003 13:42:37 +0000 (13:42 +0000)]
(comint-watch-for-password-prompt): Pass `string' as
arg to send-invisible
(send-invisible): Doc fix.  The argument is now a prompt, not the
string to send.
(comint-read-noecho): Doc fix.

20 years agoDescribe the change in texnfo-upd.el by Bob Chassel.
Eli Zaretskii [Mon, 29 Dec 2003 13:31:16 +0000 (13:31 +0000)]
Describe the change in texnfo-upd.el by Bob Chassel.

20 years ago(ange-ftp-name-format): Allow USER to contain
Eli Zaretskii [Mon, 29 Dec 2003 13:22:30 +0000 (13:22 +0000)]
(ange-ftp-name-format): Allow USER to contain
"@", as required by some ISP hosting service.  Fix defcustom
argument syntax errors that prevented use of customization.

20 years ago(Vi Macros): Fix reference to the Emacs manual.
Eli Zaretskii [Mon, 29 Dec 2003 13:09:14 +0000 (13:09 +0000)]
(Vi Macros): Fix reference to the Emacs manual.

20 years ago(C Modes): Fix the xref.
Eli Zaretskii [Mon, 29 Dec 2003 13:05:00 +0000 (13:05 +0000)]
(C Modes): Fix the xref.

20 years ago(xml-get-attribute-or-nil): Doc fix.
Eli Zaretskii [Mon, 29 Dec 2003 13:00:09 +0000 (13:00 +0000)]
(xml-get-attribute-or-nil): Doc fix.

20 years ago(zone-mode): Use write-file-functions, not write-file-hooks.
Eli Zaretskii [Mon, 29 Dec 2003 12:57:07 +0000 (12:57 +0000)]
(zone-mode): Use write-file-functions, not write-file-hooks.

20 years agoUse windows-1251 encoding. Fix punctuation errors.
Eli Zaretskii [Mon, 29 Dec 2003 12:49:21 +0000 (12:49 +0000)]
Use windows-1251 encoding.  Fix punctuation errors.

20 years ago(auto-revert-interval): Doc fix.
Eli Zaretskii [Mon, 29 Dec 2003 12:41:49 +0000 (12:41 +0000)]
(auto-revert-interval): Doc fix.

20 years agoFix Mark Hershberg's entries for xml.el.
Eli Zaretskii [Mon, 29 Dec 2003 12:36:58 +0000 (12:36 +0000)]
Fix Mark Hershberg's entries for xml.el.

20 years agoFix previous change. Remove redundant trailing whitespace.
Eli Zaretskii [Mon, 29 Dec 2003 12:35:35 +0000 (12:35 +0000)]
Fix previous change.  Remove redundant trailing whitespace.

20 years ago(xml-get-attribute-or-nil): New function, like
Eli Zaretskii [Mon, 29 Dec 2003 12:13:27 +0000 (12:13 +0000)]
(xml-get-attribute-or-nil): New function, like
xml-get-attribute, but returns nil if the attribute was not found.
(xml-get-attribute): Converted to defsubst, uses
xml-get-attribute-or-nil.

20 years ago(easy-menu-define): Doc fix.
Eli Zaretskii [Mon, 29 Dec 2003 12:05:15 +0000 (12:05 +0000)]
(easy-menu-define): Doc fix.

20 years ago(custom-declare-theme): Use `value' when putting properties on `theme'.
Eli Zaretskii [Mon, 29 Dec 2003 11:54:03 +0000 (11:54 +0000)]
(custom-declare-theme): Use `value' when putting properties on `theme'.

20 years agoDocument the change in insert-for-yank.
Eli Zaretskii [Mon, 29 Dec 2003 11:46:03 +0000 (11:46 +0000)]
Document the change in insert-for-yank.

20 years ago(insert-for-yank): Call insert-for-yank-1 repetitively
Eli Zaretskii [Mon, 29 Dec 2003 11:40:49 +0000 (11:40 +0000)]
(insert-for-yank): Call insert-for-yank-1 repetitively
for each yank-handler segment.
(insert-for-yank-1): New function, with the body of the previous
insert-for-yank.

20 years ago(table-yank-handler): New defcustom.
Eli Zaretskii [Mon, 29 Dec 2003 11:29:31 +0000 (11:29 +0000)]
(table-yank-handler): New defcustom.
(table--put-cell-indicator-property): Put yank-handler property
that indicates the yank handler for the table cell.

20 years ago(store_symval_forwarding): Handle setting default-fill-column, etc.,
Richard M. Stallman [Mon, 29 Dec 2003 11:29:18 +0000 (11:29 +0000)]
(store_symval_forwarding): Handle setting default-fill-column, etc.,
by changing buffers that use the default.

20 years ago(Fset_minibuffer_window): Doc fix.
Richard M. Stallman [Mon, 29 Dec 2003 11:25:21 +0000 (11:25 +0000)]
(Fset_minibuffer_window): Doc fix.

20 years ago(choose_write_coding_system): Ignore auto_saving
Richard M. Stallman [Mon, 29 Dec 2003 11:24:14 +0000 (11:24 +0000)]
(choose_write_coding_system): Ignore auto_saving
if using the visited file for auto saves.
(Fwrite_region): Don't update SAVE_MODIFF
if auto-saving in visited file.

20 years agoComment change.
Richard M. Stallman [Mon, 29 Dec 2003 11:22:31 +0000 (11:22 +0000)]
Comment change.

20 years ago(etc-modules-conf-generic-mode): A more complete set of keywords.
Eli Zaretskii [Mon, 29 Dec 2003 11:22:19 +0000 (11:22 +0000)]
(etc-modules-conf-generic-mode): A more complete set of keywords.

20 years ago(reset-language-environment, set-language-environment): Don't invoke
Eli Zaretskii [Mon, 29 Dec 2003 10:59:41 +0000 (10:59 +0000)]
(reset-language-environment, set-language-environment): Don't invoke
fontset-related functions if fontset-list is not fboundp.

20 years agoMake sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey [Mon, 29 Dec 2003 08:28:35 +0000 (08:28 +0000)]
Make sure secondary frames are deleted when emacsclient quits.

lisp/server.el (server-sentinel): Delete frame if alive.  Fix delq
invocation on server-frames.
(server-process-filter, server-buffer-done): Fix delq invocation on
server-frames.

src/cm.c (cmputc): Abort on write error, see what happens.

src/keyboard.c (read_avail_input): Do delete_tty on read errors.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-21

20 years agoHandle Ctl-G in emacsclient.
Karoly Lorentey [Mon, 29 Dec 2003 07:24:41 +0000 (07:24 +0000)]
Handle Ctl-G in emacsclient.

lib-src/emacsclient.c (quit_char): New variable.
(init_tty): Use it.
(interrupt_signal): Forward SIGINT to Emacs.
(init_signals): Install SIGINT handler.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-20

20 years agoBugfix festival.
Karoly Lorentey [Mon, 29 Dec 2003 07:16:26 +0000 (07:16 +0000)]
Bugfix festival.

lib-src/emacsclient.c (main_argc, main_argv): New variables.
(main): Initialize them.
(fail): Use them.
(window_change, copy_from_to): Don't kill if emacs_pid is zero.
(pty_conversation): Watch the command socket, too.  Read emacs_pid
here.  Emacs and emacsclient could deadlock if Emacs tried to do a
reset_sys_modes before sending its pid.

lisp/server.el: Automatically delete the client frame when done editing.
(server-frames): New variable.
(server-process-filter, server-sentinel, server-buffer-done): Use it.
(server-process-filter): Do a redisplay before evaluating other
parameters.  (Prevents "emacsclient -h -e '(delete-frame)'" from
messing up the system.

src/dispextern.h: Update prototypes.

src/dispnew.c (window_change_signal): Do nothing if !term_initted.
(init_display): Set the frame size from the tty data after term_init.

src/emacs.c (main): Make sure things that init_sys_modes needs are
initialized before init_display (which calls init_sys_modes now).
(sort_args): Use xfree, not free.
(shut_down_emacs) [!EMACS_HAVE_TTY_PGRP]: Use reset_all_sys_modes
instead of reset_sys_modes.

src/frame.c (make_terminal_frame): Sigh. Move terminal initialization
back to the middle of frame setup.  Handle errors by making sure that
the delete_tty() called from term_init() will see and delete this
frame.
(Fdelete_frame): Kill the frame before calling delete_tty().  Fix
condition for tty deletion.

src/keyboard.c (Fset_input_mode): Use reset_sys_modes on the current
terminal only.

src/lisp.h: Remove duplicate prototypes.

src/msdos.c (croak): use reset_all_sys_modes().

src/sysdeps.c (init_baud_rate): Added tty parameter, use it instead of CURTTY.
(child_setup_tty): Reset sigio on stdin, not CURTTY().
(reset_sigio): Added fd parameter, put explicit fcntl there.
(request_sigio, unrequest_sigio)[FASYNC]: Simply block/unblock the
SIGIO signal, don't touch the file params.  There are multiple ttys
now, and we can't disable the SIGIO from emacsclient.
(get_tty_size)[VMS]: Use tty_out instead of CURTTY().
(reset_sys_modes): Don't call cursor_to, clear_end_of_line; call
cmgoto and tty_clear_end_of_line instead.  The frame may already be
dead.  Updated reset_sigio call.

src/term.c (clear_and_of_line): Separate tty-dependent stuff to
tty_clear_end_of_line() for reset_sys_modes.
(tty_clear_end_of_line): New function.
(term_init): Added frame parameter, don't use selected_frame.
Set the frame's output_data.tty value (in case there is an error
later).  Set the frame size in Wcm, not in the frame.  Only free the
termcap buffer if there is a termcap-related error.  Call
init_sys_modes last, not first.
(deleting_tty): New variable.
(delete_tty): Use it for handling recursive calls.  Free deleted tty,
except its Wcm (there is still a dangling reference somewhere).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-19

20 years ago*** empty log message ***
Kenichi Handa [Mon, 29 Dec 2003 07:11:58 +0000 (07:11 +0000)]
*** empty log message ***

20 years ago(ccl-encode-koi8-font): Make it work for
Kenichi Handa [Mon, 29 Dec 2003 07:10:51 +0000 (07:10 +0000)]
(ccl-encode-koi8-font): Make it work for
characters of mule-unicode-0100-24ff.
(ccl-encode-windows-1251-font): New CCL program.
("Bulgarian"): Specify overriding-fontspec.
("Belarusian"): Likewise.

20 years ago(reset-language-environment): Call
Kenichi Handa [Mon, 29 Dec 2003 07:10:09 +0000 (07:10 +0000)]
(reset-language-environment): Call
set-overriding-fontspec-internal with nil.
(set-language-environment): Call set-overriding-fontspec-internal
if the language environment specify `overriding-fontspec'.
(language-info-alist): Doc added.

20 years ago(face_font_available_p): New function.
Kenichi Handa [Mon, 29 Dec 2003 06:54:55 +0000 (06:54 +0000)]
(face_font_available_p): New function.

20 years ago(Voverriding_fontspec_alist): New variable.
Kenichi Handa [Mon, 29 Dec 2003 06:53:50 +0000 (06:53 +0000)]
(Voverriding_fontspec_alist): New variable.
(lookup_overriding_fontspec): New function.
(fontset_ref_via_base): Call lookup_overriding_fontspec if
necessary.
(fontset_font_pattern): Likewise.
(regulalize_fontname): New function.
(Fset_fontset_font): Call regulalize_fontname.
(Fset_overriding_fontspec_internal): New function.
(syms_of_fontset): Initialize and staticprop
Voverriding_fontspec_alist.
(syms_of_fontset): Defsubr Sset_overriding_fontspec_internal.

20 years ago(face_font_available_p): Extern it.
Kenichi Handa [Mon, 29 Dec 2003 06:53:28 +0000 (06:53 +0000)]
(face_font_available_p): Extern it.

20 years ago(ange-ftp-file-attributes): Add new optional parameter ID-FORMAT.
Sam Steingold [Mon, 29 Dec 2003 01:01:48 +0000 (01:01 +0000)]
(ange-ftp-file-attributes): Add new optional parameter ID-FORMAT.

20 years agoTrivial changes
Karoly Lorentey [Sun, 28 Dec 2003 22:28:52 +0000 (22:28 +0000)]
Trivial changes

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-18

20 years ago(Fother_buffer): Don't crash if BUF is nil
Richard M. Stallman [Sun, 28 Dec 2003 22:16:57 +0000 (22:16 +0000)]
(Fother_buffer): Don't crash if BUF is nil
or if its name is nil.

(Fkill_buffer): Don't delete auto-save file
if it's the same as the visited file.

20 years ago(Fcheck_coding_system): Further doc fix.
Luc Teirlinck [Sun, 28 Dec 2003 19:54:24 +0000 (19:54 +0000)]
(Fcheck_coding_system): Further doc fix.

20 years ago(Fcheck_coding_system): Doc fix.
Luc Teirlinck [Sun, 28 Dec 2003 19:47:58 +0000 (19:47 +0000)]
(Fcheck_coding_system): Doc fix.

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sun, 28 Dec 2003 16:05:28 +0000 (16:05 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-1
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-2
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-3
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-17

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sun, 28 Dec 2003 16:03:57 +0000 (16:03 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-138
   Update from CVS

 * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-139
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-15

20 years ago(gdb-prompt): Change filter for level 3 annotations,
Nick Roberts [Sun, 28 Dec 2003 13:52:38 +0000 (13:52 +0000)]
(gdb-prompt): Change filter for level 3 annotations,
if necessary.
(gdb-ann3): New function. Initialise M-x gdb as for M-x gdba if
annotations are detected.
(gud-gdba-marker-filter): Use global variable gud-marker-acc
instead of a local one to allow transition from
gud-gdb-marker-filter.
Remove trailing white space.

20 years ago(gud-gdb-command-name): Set default to
Nick Roberts [Sun, 28 Dec 2003 13:51:51 +0000 (13:51 +0000)]
(gud-gdb-command-name): Set default to
"gdb --annotate=3".
(gud-gdb-marker-filter): Look out for annotations.
(gdb-first-pre-prompt): New variable.
Remove trailing white space.