1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 05:21:26 -08:00
Commit graph

61824 commits

Author SHA1 Message Date
Karoly Lorentey
da8e8fc14f Store local environment in frame (not terminal) parameters.
* src/callproc.c (child_setup, getenv_internal, Fgetenv_internal):
  Store the local environment in a frame (not terminal) parameter.
  Update doc strings.
  (syms_of_callproc): Update doc strings.
  (Qenvironment): Moved to frame.c. 

* lisp/env.el (read-envvar-name, setenv, getenv, environment): Use frame
  parameters to store the local environment, not terminal parameters.

* server.el (server-process-filter): Store the local environment in a
  frame (not terminal) parameter.  Do not try to decode environment
  strings.

* lisp/frame.el (make-frame): Set up the 'environment frame parameter,
  when needed.

* src/frame.c (Qenvironment): Move here from callproc.c.
  (Fdelete_frame): Don't allow other frames to refer to a deleted frame
  in their 'environment parameter.
  (Fframe_with_environment): New function.
  (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.

* frame.h (Qenvironment): Declare.
* lisp.h (Fframe_with_environment): EXFUN it.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-467
2005-12-29 04:31:04 +00:00
Karoly Lorentey
86f5ca04d9 Initialize Vprocess_environment to nil.
* src/callproc.c (syms_of_callproc): Initialize Vprocess_environment to nil.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-466
2005-12-29 02:10:23 +00:00
Karoly Lorentey
5990851d42 Fix semantics of let-binding `process-environment'.
* lisp/env.el: Require cl for byte compilation. (For `block' and `return'.)
  (read-envvar-name): Update for rename.  Include `process-environment'
  as well.
  (setenv): Update for rename also handle `process-environment'.  Update doc.
  (getenv): Update doc.
  (environment): New function.
  (let-environment): New macro.

* lisp/font-lock.el (lisp-font-lock-keywords-2): Add `let-environment'.

* src/callproc.c (Vglobal_environment): New variable, taking over the
  previous role of `Vprocess_environment', which is now something else.
  (add_env): New function.
  (child_setup): Use it.
  (child_setup, getenv_internal): Rename Vprocess_environment to
  Vglobal_environment.  Handle the new Vprocess_environment.
  (Fgetenv_internal, egetenv): Update doc.
  (set_process_environment): Rename to `set_global_environment'.  Rename
  Vprocess_environment to Vglobal_environment.
  (syms_of_callproc): Rename process-environment to global-environment,
  add new process-environment, update docs.

* src/emacs.c (main): Call set_global_environment instead of
  set_process_environment.

* fileio.c (Fread_file_name): Update comment.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-465
2005-12-29 01:28:33 +00:00
Karoly Lorentey
b2a300dc19 Fix error during bootstrap.
* lisp/cus-start.el: Fix compilation error.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-464
2005-12-29 01:18:49 +00:00
Karoly Lorentey
feba0cd640 Merged from miles@gnu.org--gnu-2005 (patch 677)
Patches applied:

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

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-463
2005-12-26 03:16:59 +00:00
Karoly Lorentey
30663b475e Fix compilation errors in previous commit.
* src/callproc.c (getenv_internal): Fix get_terminal_param call.

* dispextern.h (get_device): Move declaration to termhooks.h.
* termhooks.h (get_device): Move here.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-462
2005-12-26 02:21:31 +00:00
Karoly Lorentey
f105f403d2 Implement automatic terminal-local environment variables via `local-environment-variables'.
* lisp/env.el (setenv, getenv): Add optional terminal parameter.  Update docs.
  (setenv): Handle `local-environment-variables'.
  (read-envvar-name): Also allow (and complete) local
  environment variables on the current terminal.

* src/callproc.c: Include frame.h and termhooks.h, for terminal parameters.
  (Qenvironment): New constant.
  (Vlocal_environment_variables): New variable.
  (syms_of_callproc): Register and initialize them.
  (child_setup): Handle Vlocal_environment_variables.
  (getenv_internal): Add terminal parameter.  Handle
  Vlocal_environment_variables.
  (Fgetenv_internal): Add terminal parameter.

* src/termhooks.h (get_terminal_param): Declare.

* src/Makefile.in (callproc.o): Update dependencies.
* mac/makefile.MPW (callproc.c.x): Update dependencies.

* lisp/termdev.el (terminal-id): Make parameter optional.
  (terminal-getenv, terminal-setenv, with-terminal-environment): 
  Disable functions.

* lisp/mule-cmds.el (set-locale-environment): Convert `terminal-getenv' calls
  to `getenv'.
* lisp/rxvt.el (rxvt-set-background-mode): Ditto.
* lisp/x-win.el (x-initialize-window-system): Ditto.
* lisp/xterm.el (terminal-init-xterm): Ditto.

* lisp/server.el (server-process-filter): Fix reference to the 'display frame
  parameter.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-461
2005-12-26 02:14:10 +00:00
Karoly Lorentey
ed8dad6b61 Reimplement terminal parameters in C; clean up term.c, create terminal.c.
* lisp/termdev.el (terminal-parameter-alist, terminal-parameters, terminal-parameter-p)
  (terminal-parameter, set-terminal-parameter, terminal-handle-delete-frame): Remove.

* src/term.c (Vring_bell_function, device_list, initial_device)
  (next_device_id, ring_bell, update_begin, update_end)
  (set_terminal_window, cursor_to, raw_cursor_to)
  (clear_to_end, clear_frame, clear_end_of_line)
  (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
  (get_device, Fdisplay_name, create_device, delete_device)
  (Fdelete_display, Fdisplay_live_p, Fdisplay_list)
  Move to terminal.c.
  (syms_of_term): Move their initialization to terminal.c.

* src/terminal.c: New file.
  (device_list, next_device_id, initial_device, Vring_bell_function)
  (ring_bell, update_begin, update_end, set_terminal_window)
  (cursor_to, raw_cursor_to, clear_to_end, clear_frame)
  (clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
  (ins_del_lines, get_device, create_device, delete_device)
  (Fdelete_display, Fdisplay_live_p, Fdisplay_list, Fdisplay_name): Move here.
  (mark_devices, get_terminal_param, store_terminal_param)
  (Fterminal_parameters, Fterminal_parameter)
  (Fmodify_terminal_parameters, Fset_terminal_parameter)
  (init_initial_device, delete_initial_device)
  (syms_of_terminal): New functions.

* lisp/simple.el (normal-erase-is-backspace-setup-frame)
  (normal-erase-is-backspace-mode): Rephrase things
  without terminal-parameter-p.

* lisp/termdev.el (terminal-getenv, terminal-setenv)
  (with-terminal-environment): Ditto.

* mac/makefile.MPW (EmacsObjects): Add terminal.c.x.
  ({Src}terminal.c.x): Add dependencies.

* src/Makefile.in (obj): Add terminal.o.
  (terminal.o): Add dependencies.
  [HAVE_CARBON]: Make terminal.o depend on macgui.h.

* src/alloc.c (mark_devices): Declare.
  (Fgarbage_collect): Call `mark_devices'.

* src/dispextern.h  (set_scroll_region, turn_off_insert)
  (turn_off_highlight, background_highlight, clear_end_of_line_raw)
  (tty_clear_end_of_line, tty_setup_colors, delete_tty): Remove.
  (raw_cursor_to, clear_to_end, tty_turn_off_insert)
  (tty_turn_off_highlight): Add declaration.

* src/emacs.c (main): Call `syms_of_terminal'.

* src/frame.c (get_future_frame_param): New function.
  (Fmake_terminal_frame): Use it.

* src/keyboard.c (pop_kboard): Remove unused variable.
  (Fset_output_flow_control): Return nil.

* src/keymap.h (Fset_keymap_parent): Add EXFUN.

* src/lisp.h (syms_of_terminal): Declare it.

* src/sysdep.c (reset_sys_modes): Update for renames.

* src/term.c (set_scroll_region): Rename to `tty_set_scroll_region'.
  (turn_on_insert): Rename to `tty_turn_on_insert'.
  (turn_off_insert): Rename to `tty_turn_off_insert'.
  (turn_off_highlight): Rename to `tty_turn_off_highlight'.
  (turn_on_highlight): Rename to `tty_turn_on_highlight'.
  (toggle_highligh): Rename to `tty_toggle_highlight'.
  (background_highlight): Rename to `tty_background_highlight'.
  (highlight_if_desired): Rename to `tty_highlight_if_desired'.

  (tty_ring_bell, tty_update_end, tty_set_terminal_window)
  (tty_set_scroll_region, tty_background_highlight)
  (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
  (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
  (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
  (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty)
  (delete_tty): Add static modifier.

  (tty_reset_terminal_modes, tty_set_terminal_window)
  (tty_set_scroll_region, tty_background_highlight)
  (tty_highlight_if_desired, tty_cursor_to)
  (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
  (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
  (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): 
  Update for renames.

* src/termhooks.h (param_alist): New member to struct device.

* src/xterm.h (x_delete_device): Declare.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-460
2005-12-25 20:06:58 +00:00
Karoly Lorentey
4beb2d71ea Fix compilation error during non-X builds.
* src/keyboard.c (Fset_input_interrupt_mode): Fix compilation error
  during non-X builds.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-459
2005-12-23 03:36:01 +00:00
Karoly Lorentey
7f227e762c Pull a bugfix from CVS to prevent problems with the Debian semantic package.
* src/print.c (print_preprocess): Don't loose print_depth levels while iterating.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-458
2005-12-23 03:05:20 +00:00
Karoly Lorentey
a712a8c33b Don't let x_initialize break 8-bit input on ttys. (Reported by Joakim Verona.) Split `set-input-mode'.
* lisp/international/encoded-kb.el (encoded-kbd-setup-display): Use `set-input-meta-mode'.
* lisp/linux.el (terminal-init-linux): Ditto.

* src/keyboard.c (Fset_input_interrupt_mode, Fset_output_flow_control)
  (syms_of_keyboard): Defsubr them.
  (Fset_input_meta_mode, Fset_quit_char): New functions.
  (Fset_input_mode): Split to above functions.

* lisp.h: EXFUN the new functions.

* xterm.c (x_initialize): Use Fset_input_interrupt_mode.
* macterm.c (mac_initialize): Ditto.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-457
2005-12-23 03:00:55 +00:00
Karoly Lorentey
f35ca2fe35 Reimplement and extend support for terminal-local environment variables.
* lisp/termdev.el: New file.  Move terminal parameter-related functions
  here from frame.el.
  (terminal-getenv, with-terminal-environment): Reimplement and extend.
  (terminal-setenv, terminal-setenv-internal): New functions.

* lisp/frame.el (make-frame-on-tty, framep-on-display, suspend-frame):
  Extend doc string, update parameter names.
  (terminal-id, terminal-parameter-alist, terminal-parameters)
  (terminal-parameter-p, terminal-parameter, set-terminal-parameter)
  (terminal-handle-delete-frame, terminal-getenv, terminal-getenv)
  (with-terminal-environment): Move to termdev.el.

* lisp/loadup.el: Load termdev as well.
* lisp/Makefile.in (lisp, shortlisp): Add termdev.elc.
* lisp/makefile.MPW (shortlisp): Ditto.

* lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Bind C-z to
  `suspend-frame', not `suspend-emacs'.
* lisp/echistory.el (electric-history-map): Ditto.
* lisp/ebrowse.el (ebrowse-electric-list-mode-map): Ditto.
* lisp/ebrowse.el (ebrowse-electric-position-mode-map): Ditto.

* lisp/startup.el (normal-splash-screen): Use `save-buffers-kill-display'
  instead of `save-buffers-kill-emacs'.

* lisp/x-win.el (x-initialize-window-system): Add 'global-ok option to
  `terminal-getenv'.

* src/term.c (suspend-tty): Update doc string.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-456
2005-12-22 21:02:45 +00:00
Luc Teirlinck
7a32e81fb6 Correct typos. 2005-12-20 23:14:33 +00:00
Luc Teirlinck
ff858549f5 (Type Keywords): Delete xref to "Text help-echo", because it is
confusing.  If the :help-echo keyword is a function, it is not
directly used as the :help-echo overlay property, as the xref seems to
suggest (it does not take the appropriate args).
2005-12-20 23:12:01 +00:00
Luc Teirlinck
a31687ce36 *** empty log message *** 2005-12-20 23:11:01 +00:00
Stefan Monnier
aa230d94e5 (log-view-file-re, log-view-message-re): Use shy groups.
(log-view-font-lock-keywords): Ajust subgroup numbers.
(log-view-current-tag): Don't hard code the number of subgroups.
2005-12-20 21:58:14 +00:00
Juri Linkov
3bdba51db2 *** empty log message *** 2005-12-20 21:50:23 +00:00
Juri Linkov
11cfab98b7 (VC Status): Put P and N near p and n. 2005-12-20 21:50:02 +00:00
Juri Linkov
e3947513dc (tooltip): Move defgroup before define-minor-mode.
(tooltip-x-offset, tooltip-y-offset): Doc fix.
2005-12-20 21:42:19 +00:00
Juri Linkov
55d42133d4 (menu-bar-menu-frame-live-and-visible-p)
(menu-bar-non-minibuffer-window-p): Instead of checking display-multi-frame-p,
use selected-frame when menu-updating-frame is nil.
2005-12-20 21:41:31 +00:00
Juri Linkov
c1d9dffd9a (Fx_popup_menu): Add `else' to set Vmenu_updating_frame to nil
only if position is nil.
2005-12-20 21:38:27 +00:00
Juri Linkov
76a3c2cda5 (Fx_popup_menu): Set Vmenu_updating_frame to f if
position is non-nil, else set it to nil.
2005-12-20 21:37:36 +00:00
Karoly Lorentey
a18b8cb507 Implement full support for frame-local next-buffer' and previous-buffer'.
* frame.h (frame): New field `buried_buffer_list'.
* alloc.c (mark_object): Mark it.
* frame.c (make_frame): Initialize it.

* frame.h (Qburied_buffer_list): New symbol declaration.

* buffer.c (Fbuffer_list): Handle the buried-buffer-list frame parameter.

* buffer.c (record_buffer): Delete the buffer from the buried_buffer_list.

* buffer.c (Fbury_buffer): Add buffer to buried_buffer_list.

* frame.c (Qburied_buffer_list): New symbol.
  (syms_of_frame): Initialize and staticpro it.
  (frames_discard_buffer): Also remove buffer from buried-buffer-list.
  (store_frame_param): Handle `buried-buffer-list' specially.
  (Fframe_parameters): Handle `buried-buffer-list' specially.

* simple.el (last-buffer): Don't look at buried-buffer-list, rely on
  `buffer-list' doing that for us.
  (next-buffer): Simplify.
  (previous-buffer): Simplify.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-455
2005-12-20 21:35:03 +00:00
Chong Yidong
38e3f12e18 Typo. 2005-12-20 17:39:47 +00:00
Chong Yidong
7f5bb182d2 Typo. 2005-12-20 17:27:35 +00:00
Richard M. Stallman
cf5374aa15 (Help Functions): Update documentation of `apropos'. 2005-12-20 15:39:36 +00:00
Thien-Thi Nguyen
fdd5516e6c *** empty log message *** 2005-12-20 14:04:26 +00:00
Thien-Thi Nguyen
5a8854dda0 (align-rules-list): Use [ \t] instead of \s-
for column separators in text mode.
2005-12-20 13:59:16 +00:00
Nick Roberts
d74f241f38 (help-customize-variable, help-customize-face):
Don't pop help-xref-stack as help-follow no longer pushes
anything on to it.
2005-12-20 09:02:23 +00:00
Nick Roberts
84a00de9cf *** empty log message *** 2005-12-20 09:00:56 +00:00
Carsten Dominik
4e8c4d9aec Version 4.01 2005-12-20 08:09:19 +00:00
Carsten Dominik
d924f2e5dc (org-agenda-custom-commands): New option.
(org-agenda): Offer custom commands on splash screen.
	(org-make-tags-matcher): Parser for Boolean logic added.
	(org-agenda-set-tags): New command.
	(org-agenda-menu, org-agenda-mode-map): Add `org-agenda-set-tags'.
	(org-set-tags): Efficiency improvements.
	(org-auto-align-tags): New option.
	(org-todo, org-demote, org-promote): Realign tags.
	(org-tags-completion-function): Use also "&" and "|" as
	separators.
	(org-org-menu): Agenda commands simplified.
2005-12-20 08:08:48 +00:00
David Kastrup
54e42ad99a (AUCTeX): Update version and mailing list info. 2005-12-20 04:17:37 +00:00
Luc Teirlinck
d8ea07f6dc (Documentation Tips): Minor change. 2005-12-20 03:47:55 +00:00
Stephen Gildea
2953de8c3f * mh-customize.el (mh-after-commands-processed-hook): New variable.
(mh-before-commands-processed-hook): Rename from mh-folder-updated-hook.
* mh-e.el (mh-process-commands): Rename mh-folder-updated-hook to
mh-before-commands-processed-hook, call new mh-after-commands-processed-hook.
(mh-folders-changed): New variable (for mh-after-commands-processed-hook).
2005-12-20 03:44:32 +00:00
Luc Teirlinck
3c9af4381a (Common Keywords): Fix Texinfo usage.
(Group Definitions, Variable Definitions): Update for new conventions
for using `*' in docstrings.
2005-12-20 03:19:50 +00:00
Luc Teirlinck
0e83c4e915 *** empty log message *** 2005-12-20 03:18:39 +00:00
Luc Teirlinck
eef4e174d8 (Documentation Tips): Update for new conventions for using `*' in docstrings. 2005-12-20 03:08:11 +00:00
Luc Teirlinck
77df907a15 *** empty log message *** 2005-12-20 03:07:04 +00:00
Richard M. Stallman
f5eb910a1a (Electric C): Delete the info about newline control.
(Other C Commands): Minor cleanup.
(Left Margin Paren): Minor cleanup.
2005-12-20 02:49:17 +00:00
Luc Teirlinck
2b8fa3be38 (Easy Customization): Add "Browsing Custom" to menu.
(Customization Groups): Delete text moved to "Browsing Custom".
(Browsing Custom): New node.
(Specific Customization): Clarify which commands only work for loaded options.
2005-12-19 23:33:53 +00:00
Bill Wohler
cee9f5c6a1 * mh-acros.el:
* mh-alias.el:
* mh-comp.el:
* mh-customize.el:
* mh-e.el:
* mh-funcs.el:
* mh-gnus.el:
* mh-identity.el:
* mh-inc.el:
* mh-index.el:
* mh-init.el:
* mh-junk.el:
* mh-mime.el:
* mh-pick.el:
* mh-print.el:
* mh-seq.el:
* mh-speed.el:
* mh-utils.el:
Follow commenting conventions. Don't use ;;; form so much, except for
headings. Precede headings with page feed. This was mostly already
done, so I made it a convention. Did not update copyright on a couple
of files since this was an insignificant change.
2005-12-19 23:32:16 +00:00
Luc Teirlinck
c8fee34526 *** empty log message *** 2005-12-19 23:31:31 +00:00
Richard M. Stallman
321e487061 *** empty log message *** 2005-12-19 23:19:02 +00:00
Luc Teirlinck
7667fa3a2d (font-lock): Add tags to the links in the defgroup. 2005-12-19 23:18:17 +00:00
Luc Teirlinck
06cdb5dbbe (customize-apropos, customize-apropos-options): Docstring changes. 2005-12-19 23:17:19 +00:00
Alan Mackenzie
108262a0fa Amend the file for CC Mode 5.31. In particular, relax the injunction
that all braces/parens at column zero start defuns.
2005-12-19 22:21:41 +00:00
Karoly Lorentey
e93b29568a Merged from miles@gnu.org--gnu-2005 (patch 169-173, 671-676)
Patches applied:

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

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

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

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

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

 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-676
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-169
   Merge from emacs--cvs-trunk--0

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-170
   Update from CVS

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-171
   Update from CVS

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-172
   Update from CVS

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-173
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-454
2005-12-19 19:57:22 +00:00
Romain Francoise
de64bbfaf7 *** empty log message *** 2005-12-19 17:15:58 +00:00
Karoly Lorentey
8d3cdf5650 Fix typo in previous commit.
* src/dispnew.c (window_change_signal): Fix typo.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-453
2005-12-19 16:13:20 +00:00