Karoly Lorentey [Fri, 26 May 2006 17:37:25 +0000 (17:37 +0000)]
Rework environment variable support. (Reported by Kalle Olavi Niemitalo and Noah Friedman.)
* src/callproc.c (Vglobal_environment, Vlocal_environment_variables): Remove.
(getenv_internal, child_setup): Don't look at global-environment or
local-environment-variables.
(Fgetenv_internal): Update docs.
(set_initial_environment): Rename from set_global_environment. Store
Emacs environment in initial frame parameter.
(syms_of_callproc): Remove obsolete defvars. Update docs.
* lisp/env.el (read-envvar-name): Remove reference to global-environment.
(setenv-internal): New function.
(setenv): Use it. Always set process-environment. Update docs.
(getenv): Update docs.
(environment): Rewrite for the new environment design. Update docs.
* lisp/frame.el (frame-initialize): Copy the environment from the initial frame.
* src/emacs.c (main): Call set_initial_environment, not set_global_environment.
(fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
(fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
(mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
(XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
(XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
resource to backtranslate key with modifiers.
(XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
Jan Djärv [Tue, 23 May 2006 07:19:45 +0000 (07:19 +0000)]
* xlwmenu.c: Include xterm.h if emacs instead of declaring functions
used.
(string_width): Declare as static.
(Start, pop_up_menu): Set is_hint to 0 before calling
handle_motion_event.
(pop_up_menu): Return value and parameters for x_catch_errors and
x_uncatch_errors changed.
Stefan Monnier [Mon, 22 May 2006 18:09:40 +0000 (18:09 +0000)]
(PC-do-completion): Undo the addition of implicit
wildcards if they did not lead to finding any match.
(read-file-name-internal): Don't add the final > if the completion is
not finished.
Roland Winkler [Sun, 21 May 2006 23:53:29 +0000 (23:53 +0000)]
*** The variable `makefile-query-one-target-method' has been
renamed to makefile-query-one-target-method-function. The old name
is still available as alias.
*** The variable `artist-text-renderer' has been renamed to
`artist-text-renderer-function'. The old name is still available as
alias.
*** The variable `flyspell-generic-check-word-p' has been renamed
to `flyspell-generic-check-word-predicate'. The old name is still
available as alias.
*** The variable `ispell-format-word' has been renamed to
`ispell-format-word-function'. The old name is still available as
alias.
*** The variables `skeleton-transformation', `skeleton-filter', and
`skeleton-pair-filter' have been renamed to
`skeleton-transformation-function', `skeleton-filter-function', and
`skeleton-pair-filter-function'. The old names are still available
as aliases.
*** The variable `sgml-transformation' has been renamed to
`sgml-transformation-function'. The old name is still available as
alias.
Roland Winkler [Sun, 21 May 2006 22:19:59 +0000 (22:19 +0000)]
(sgml-transformation): Make this the alias for the following variable.
(sgml-transformation-function): Make this the real name.
(sgml-tag-alist): Mark as risky.
Roland Winkler [Sun, 21 May 2006 22:01:50 +0000 (22:01 +0000)]
(skeleton-transformation, skeleton-filter, skeleton-pair-filter):
Make these the aliases for the following variables.
(skeleton-transformation-function, skeleton-filter-function)
(skeleton-pair-filter-function): Make these the real names.
Roland Winkler [Sun, 21 May 2006 20:25:43 +0000 (20:25 +0000)]
(ispell-format-word): Make this the alias for the following variable.
(ispell-format-word-function): Make this the real name.
(ispell-message-text-end): Mark as risky.
Roland Winkler [Sun, 21 May 2006 19:26:05 +0000 (19:26 +0000)]
(makefile-query-one-target-method): Make this the alias for the
following variable.
(makefile-query-one-target-method-function): Make this the real name.
Karoly Lorentey [Sat, 20 May 2006 17:12:43 +0000 (17:12 +0000)]
Fix C-x 5 2 on the controlling tty; fix some possible crash conditions and a memory leak.
* src/frame.c (make_terminal_frame): Don't create frames on a terminal
that is being deleted.
* src/xfns.c (Fx_create_frame, x_create_tip_frame): Ditto.
* src/keyboard.c (tty_read_avail_input): Don't read from a terminal that
is being deleted.
* src/term.c (get_named_tty): Abort if tty name is NULL. Simplify accordingly.
* src/term.c (Ftty_type): Return nil if terminal is not on a tty instead
of throwing an error. Doc update.
* src/term.c (init_tty): Set name before calling `get_named_tty'.
* src/term.c (delete_tty): Let delete_terminal delete the frames. Plug
memory leak caused by tty->name. Remove reference to `deleting_tty'.
* lisp/faces.el (tty-create-frame-with-faces): Set up faces and
background mode only after the terminal has been initialized.
(frame-set-background-mode): Handle the 'background-mode terminal
parameter.
(tty-run-terminal-initialization): Add type option.
* lisp/term/README: Update.
* lisp/term/rxvt.el: Simplify.
* lisp/term/xterm.el: Simplify and fix.
* lisp/term/*.el: Simplify and fix.
Karoly Lorentey [Sat, 20 May 2006 15:28:05 +0000 (15:28 +0000)]
Don't load terminit files repeatedly. Also, don't call terminit functions more than once per terminal.
* lisp/faces.el (tty-find-type): New function.
(tty-run-terminal-initialization): Load files just once per Emacs
session, and call terminit functions just once per terminal.