Mercurial > emacs
view lispref/locals.texi @ 53341:d4e6a050c9b1
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Mon, 29 Dec 2003 07:16:26 +0000 |
parents | 695cf19ef79e |
children | b03c387f73cf 375f2633d815 |
line wrap: on
line source
@c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. @c Copyright (C) 1990, 1991, 1992, 1993, 1999 Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../info/locals @node Standard Buffer-Local Variables, Standard Keymaps, Standard Errors, Top @appendix Buffer-Local Variables @c The title "Standard Buffer-Local Variables" is too long for @c smallbook. --rjc 30mar92 The table below lists the general-purpose Emacs variables that automatically become buffer-local in each buffer. Most become buffer-local only when set; a few of them are always local in every buffer. Many Lisp packages define such variables for their internal use, but we don't try to list them all here. @table @code @item abbrev-mode @xref{Abbrevs}. @item auto-fill-function @xref{Auto Filling}. @item buffer-auto-save-file-name @xref{Auto-Saving}. @item buffer-backed-up @xref{Backup Files}. @item buffer-display-count @xref{Displaying Buffers}. @item buffer-display-table @xref{Display Tables}. @item buffer-file-coding-system @xref{Encoding and I/O}. @item buffer-file-format @xref{Format Conversion}. @item buffer-file-name @xref{Buffer File Name}. @item buffer-file-number @xref{Buffer File Name}. @item buffer-file-truename @xref{Buffer File Name}. @item buffer-file-type @xref{MS-DOS File Types}. @item buffer-invisibility-spec @xref{Invisible Text}. @item buffer-offer-save @xref{Saving Buffers}. @item buffer-read-only @xref{Read Only Buffers}. @item buffer-saved-size @xref{Point}. @item buffer-undo-list @xref{Undo}. @item cache-long-line-scans @xref{Text Lines}. @item case-fold-search @xref{Searching and Case}. @item ctl-arrow @xref{Usual Display}. @item comment-column @xref{Comments,,, emacs, The GNU Emacs Manual}. @item default-directory @xref{System Environment}. @item defun-prompt-regexp @xref{List Motion}. @item enable-multibyte-characters @ref{Non-ASCII Characters}. @item fill-column @xref{Auto Filling}. @item goal-column @xref{Moving Point,,, emacs, The GNU Emacs Manual}. @item header-line-format @xref{Mode Line Data}. @item indicate-empty-lines @xref{Usual Display}. @item left-margin @xref{Indentation}. @item left-margin-width @xref{Display Margins}. @item local-abbrev-table @xref{Abbrevs}. @item major-mode @xref{Mode Help}. @item mark-active @xref{The Mark}. @item mark-ring @xref{The Mark}. @item minor-modes @xref{Minor Modes}. @item mode-line-buffer-identification @xref{Mode Line Variables}. @item mode-line-format @xref{Mode Line Data}. @item mode-line-modified @xref{Mode Line Variables}. @item mode-line-process @xref{Mode Line Variables}. @item mode-name @xref{Mode Line Variables}. @item overwrite-mode @xref{Insertion}. @item paragraph-separate @xref{Standard Regexps}. @item paragraph-start @xref{Standard Regexps}. @item point-before-scroll Used for communication between mouse commands and scroll-bar commands. @item require-final-newline @xref{Insertion}. @item right-margin-width @xref{Display Margins}. @item scroll-down-aggressively @xref{Textual Scrolling}. @item scroll-up-aggressively @xref{Textual Scrolling}. @item selective-display @xref{Selective Display}. @item selective-display-ellipses @xref{Selective Display}. @item tab-width @xref{Usual Display}. @item truncate-lines @xref{Truncation}. @item vc-mode @xref{Mode Line Variables}. @end table @ignore arch-tag: 6baae835-b667-4447-91e2-9829ae1cf543 @end ignore