1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 23:40:39 -08:00
Commit graph

61992 commits

Author SHA1 Message Date
Karoly Lorentey
2dfa0facd9 Install workaround for "X protocol error: BadCursor (invalid Cursor parameter) on protocol request 2"
* lwlib/xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up
  cursor shape.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-483
2006-01-02 07:43:46 +00:00
Karoly Lorentey
00d385b0ce Cosmetic fixes in xfns.c.
* src/xfns.c (Fx_close_connection, Fx_synchronize): Unify argument names
  with the rest of the DEFUNs.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-482
2006-01-01 17:11:05 +00:00
Karoly Lorentey
6d8299f672 Fix typo in docstring of `frame-with-environment'.
* src/frame.c (Fframe_with_environment): Fix typo.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-481
2005-12-31 07:31:23 +00:00
Karoly Lorentey
60f5c93832 (Hopefully) fix bootstrap error on OpenBSD. (reported by Han Boetes)
* src/terminal.c: Include <stdio.h>.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-480
2005-12-31 07:10:31 +00:00
Karoly Lorentey
fe74bf608e Don't display the splash screen when no frame was created. (Fixes tty resume.)
* lisp/server.el (server-process-filter): Don't display the splash screen
  when no frame was created.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-479
2005-12-30 06:38:50 +00:00
Karoly Lorentey
d290c55440 Fix splash screen loosing input events on Emacsclient frames.
* lisp/startup.el (fancy-splash-screens): Use `overriding-local-map'
  instead of `overriding-terminal-local-map' for now; the latter doesn't
  work right, it looses keypresses to another terminal.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-478
2005-12-30 06:15:47 +00:00
Karoly Lorentey
526039df1c Enhance splash screens to work better with emacsclient.
* lisp/startup.el (fancy-splash-screens): Use
  `overriding-terminal-local-map' to set up keymap.  Install a
  `delete-frame-functions' hook to catch `delete-frame' events.  Ignore
  `select-window' events to cope better with `focus-follows-mouse'.
  Don't switch back to the original buffer if the splash frame has been
  killed.  
  (normal-splash-screen): Don't let-bind `mode-line-format'; it changes
  the global binding---setq it instead.  
  (display-splash-screen): Don't do anything if the splash screen is
  already displayed elsewhere.
  (fancy-splash-exit, fancy-splash-delete-frame): New functions.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-477
2005-12-30 05:30:57 +00:00
Karoly Lorentey
4a0e3f0860 Fix crash in lookup_image on termcap frames.
* src/xdisp.c (get_glyph_string_clip_rects): Add extra parentheses and
  braces to prevent compiler warnings.
  (calc_pixel_width_or_height): Add xassert to check that the
  frame is alive.  Don't call `lookup_image' on a termcap frame.

* image.c (lookup_image): Don't initialize `c' until the xasserts have
  been run.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-476
2005-12-30 05:29:31 +00:00
Karoly Lorentey
ea16162659 Make sure `delete-frame-functions' can not prevent the frame from being deleted.
* frame.c (delete_frame_handler): New function.
  (Fdelete_frame): Use it to invoke `delete-frame-functions' safely.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-475
2005-12-30 05:28:31 +00:00
Karoly Lorentey
27d8b4bf36 Display "@" in mode-lines of Emacsclient frames.
* lisp/bindings.el (mode-line-client): New variable.
  (help-echo): Add it to the default mode-line format.

* lisp/files.el (mode-line-client): Set it as risky.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-474
2005-12-29 21:11:27 +00:00
Karoly Lorentey
c28443026f Show the splash screen on Emacsclient frames. Show *scratch* by default.
* lisp/server.el (server-process-filter): Show the Emacs splash screen
  and startup echo area message.  Display the *scratch* buffer by
  default.

* lisp/startup.el (fancy-splash-screens): Restore previous buffer, even
  if it's *scratch*.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-473
2005-12-29 21:10:33 +00:00
Karoly Lorentey
c5166388c3 Set `local-environment-variables' to t by default.
* src/callproc.c (syms_of_callproc): Initialize
  `Vlocal-environment-variables' to `Qt'.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-472
2005-12-29 18:26:00 +00:00
Karoly Lorentey
6ed8eeffb3 Rename struct device' to struct terminal'. Rename some terminal-related functions similarly.
* src/termhooks.h (struct device): Rename to `terminal'.  Rename member
  `next_device' to `next_terminal'.
  (device_list): Rename to `terminal_list'.
  (FRAME_DEVICE): Rename to `FRAME_TERMINAL'.
  (DEVICE_TERMINAL_CODING): Rename to `TERMINAL_TERMINAL_CODING'.
  (TERMINAL_KEYBOARD_CODING): Rename to `TERMINAL_KEYBOARD_CODING'.
  (DEVICE_ACTIVE_P): Rename to `TERMINAL_ACTIVE_P'.
  Update declarations and macro definitions.

* src/termchar.h (tty_display_info): Rename member `device' to `terminal'.
  (FRAME_TTY): Update for renames.

* src/xterm.h (x_display_info): Rename member `device' to `terminal'.

* src/frame.h (frame): Rename `device' member to `terminal'.
  (FRAME_KBOARD, FRAME_LIVE_P, Qdevice, Qdisplay_live_p):
  Update for renames.

* src/lisp.h (set_process_environment): Rename to `set_global_environment'.
  (device): Rename to `terminal'.

* src/dispextern.h: Update declarations and macro definitions.

* src/terminal.c (device_list): Rename to `terminal_list'.
  (next_device_id): Rename to `next_terminal_id'.
  (initial_device): Rename to `initial_terminal'.
  (get_device): Rename to `get_terminal'.
  (create_device): Rename to `create_terminal'.
  (mark_devices): Rename to `mark_terminals'.
  (delete_device): Rename to `delete_terminal'.
  (Fdelete_display): Rename to `Fdelete_terminal'.
  (Fframe_terminal): Move here from frame.c.
  (Fdisplay_live_p): Rename to `Fterminal_live_p'.
  (Fdisplay_list): Rename to `Fterminal_list'.
  (Fdisplay_name): Rename to `Fterminal_name'.
  (init_initial_device): Rename to `init_initial_terminal'.
  (delete_initial_device): Rename to `delete_initial_terminal'.
  (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_terminal_param, store_terminal_param)
  (Fterminal_parameters, Fterminal_parameter)
  (Fmodify_terminal_parameters, Fset_terminal_parameter)
  (syms_of_terminal): Update for renames.

* src/term.c (get_tty_device): Rename to `get_tty_terminal'.  Update.
  (Fdisplay_tty_type): Rename to `Ftty_type'.
  (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
  (delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
  (Ftty_display_color_p, Ftty_display_color_cells, get_named_tty)
  (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
  (init_tty, maybe_fatal, delete_tty, syms_of_term): Update for rename.

* src/frame.c (Qdevice): Rename to `Qterminal'.
  (Qdisplay_live_p): Rename to `Qterminal_live_p'.
  (terminal_frame_count): Rename to `tty_frame_count'.
  (Fframe_display): Move to terminal.c, rename to `Fframe_terminal'.
  (make_frame_without_minibuffer, make_initial_frame)
  (make_terminal_frame, Fmodify_frame_parameters)
  (do_switch_frame, Fdelete_frame, Fmouse_position)
  (Fmouse_pixel_position, Fraise_frame, Flower_frame)
  (Fredirect_frame_focus, set_term_frame_name, syms_of_frame):
  Update for renames.

* src/xdisp.c (message2_nolog, message3_nolog, redisplay_internal)
  (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
  (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
  (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
  (Fx_display_pixel_width, Fx_display_pixel_height)
  (Fx_display_planes, Fx_display_color_cells)
  (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
  (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
  (Fx_display_backing_store, Fx_display_visual_class)
  (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
  Update for renames.

* xterm.c (handle_one_xevent): Initialize `f' to NULL.
  (x_delete_device): Rename to `x_delete_terminal'.
  (x_create_device): Rename to `x_create_terminal'.
  (XTset_terminal_modes, XTreset_terminal_modes)
  (XTread_socket, x_connection_closed, x_term_init)
  (x_term_init, x_delete_display): Update for renames.

* src/dispnew.c (Fredraw_frame, Fsend_string_to_terminal)
  (Fsend_string_to_terminal, init_display): Update for renames.

* src/keyboard.c (push_frame_kboard, pop_kboard, pop_kboard)
  (kbd_buffer_get_event, read_avail_input, tty_read_avail_input)
  (interrupt_signal, Fset_output_flow_control)
  (Fset_input_meta_mode, Fset_quit_char, delete_kboard)
  (syms_of_keyboard): Update for renames.

* src/alloc.c (mark_devices): Update declaration.
  (Fgarbage_collect): Update for renames.

* src/coding.c (Fset_terminal_coding_system_internal)
  (Fterminal_coding_system4)
  (Fset_keyboard_coding_system_internal)
  (Fkeyboard_coding_system): Update for renames.

* src/data.c (Fterminal_local_value, Fset_terminal_local_value):
  Update for renames.

* src/minibuf.c (read_minibuf): Update for renames.

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

* xselect.c (x_handle_selection_clear): Update for renames.

* lisp/files.el (save-buffers-kill-display): Rename to `save-buffers-kill-terminal'.
  (save-buffers-kill-terminal, ctl-x-map): Update for renames.

* frame.el (make-frame): Rename 'device frame parameter to 'terminal.  Update.
  (frames-on-display-list, framep-on-display, suspend-frame): Update for renames.
  (selected-display): Rename to `selected-terminal'.

* server.el (server-save-buffers-kill-display): Rename to
  `server-save-buffers-kill-terminal'.
  (server-delete-client, server-handle-delete-frame)
  (server-handle-suspend-tty, server-process-filter)
  (server-switch-buffer): Update for renames.

* startup.el (normal-splash-screen, normal-splash-screen): Update for renames.

* talk.el (talk): Update for renames.

* termdev.el (terminal-id): Update for renames.

* xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
  (turn-off-xterm-mouse-tracking-on-terminal)
  (xterm-mouse-handle-delete-frame): Update for renames.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-471
2005-12-29 18:20:26 +00:00
Karoly Lorentey
17ccbd91f6 Update environment-related doc strings.
* lisp/env.el (setenv, getenv): Update doc strings.

* src/callproc.c (Fgetenv_internal, syms_of_callproc): Update doc strings.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-470
2005-12-29 04:57:14 +00:00
Karoly Lorentey
01999e9d53 Merged from miles@gnu.org--gnu-2005 (patch 681)
Patches applied:

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

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-469
2005-12-29 04:46:59 +00:00
Karoly Lorentey
e583523a10 Merged from miles@gnu.org--gnu-2005 (patch 678-680)
Patches applied:

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

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

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

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-468
2005-12-29 04:41:02 +00:00
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
Nick Roberts
d0b9c14d9f (gdb-tooltip-print, gdb-tooltip-print-1):
Display name of expression instead of convenience variable.
(gdb-post-prompt): Only call gdb-get-changed-registers if needed.
2005-12-29 02:04:36 +00:00
Nick Roberts
cf84aa19f5 (gud-tooltip-dereference): Rename from toggle-gud-tooltip-dereference.
(gud-tooltip-print-command): Move concatenation of "*" to expr to...
(gud-tooltip-tips): ...here when dereferencing.
2005-12-29 02:03:20 +00:00
Nick Roberts
bc2051e4ed *** empty log message *** 2005-12-29 02:01:31 +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
Dan Nicolaescu
04a4075fb9 * e/eterm-color.ti: Temporarily disable the ri entry.
* e/eterm-color: Regenerate.
2005-12-28 23:03:31 +00:00
Bill Wohler
0d887b77b1 * simple.el (mh-e-user-agent): Move to mh-e/mh-comp.el and autoload. 2005-12-28 21:54:07 +00:00
Stefan Monnier
97461c846c (vc-annotate-display): Replace optional arg `color-map' with
compulsory arg `ratio'.  Inline body of vc-annotate-time-span.
(vc-annotate-display-autoscale): Adjust call.
(vc-annotate-display-default): Adjust call.  Make arg compulsory.
Fix interactive spec.
(vc-annotate-time-span): Remove.
(vc-annotate-oldest-in-map): Rename from vc-annotate-car-last-cons.
(vc-annotate-mode-menu, vc-annotate-display-autoscale)
(vc-annotate-display-select): Use new name.
2005-12-28 20:13:47 +00:00
Luc Teirlinck
0e0436d4a1 Remove blank line in @direntry. It is non-standard and recursively
produces blank lines all over the dir file (when using Texinfo 4.8).
2005-12-28 20:07:06 +00:00
Luc Teirlinck
c25977591a *** empty log message *** 2005-12-28 20:03:56 +00:00
Stefan Monnier
07a95b81f4 (vc-annotate-mode-map): Remove obsolete binding.
(vc-annotate-mode-menu): Remove left-over redundant declaration.
Correct the construction of span entries.  Simplify.
(vc-annotate-display-select): Fix the nil case.
(vc-annotate): Remove obsolete (and now broken) code.
(vc-annotate-extract-revision-at-line): Remove obsolete code.
(vc-annotate-time-span): Remove unused arg `quantize'.  Simplify.
2005-12-28 18:47:12 +00:00
Luc Teirlinck
79c917052a (Basic Completion): Update lazy-completion-table examples for removal
of ARGS argument.
2005-12-28 17:18:38 +00:00
Luc Teirlinck
ba45513111 *** empty log message *** 2005-12-28 17:14:45 +00:00
Luc Teirlinck
4adc30a4ae (send-mail-function): Fix typo in comment. 2005-12-28 16:49:59 +00:00
Luc Teirlinck
a496452fd7 (command-line): Use custom-reevaluate-setting' for send-mail-function'. 2005-12-28 16:39:52 +00:00
Luc Teirlinck
5e7f11bc15 (send-mail-function): Autoload the standard-value. 2005-12-28 16:38:27 +00:00
Luc Teirlinck
3cf212510b (lazy-completion-table): Correct typo in docstring. 2005-12-28 16:36:18 +00:00
Jan Djärv
82bc1fd69f * gtkutil.c (xg_get_file_with_chooser): Changed message shown
in file chooser.
2005-12-28 10:47:55 +00:00
Simon Josefsson
c3f69831cb Fix AUTH PLAIN authentication. 2005-12-28 08:46:05 +00:00
Richard M. Stallman
6281e1e84d *** empty log message *** 2005-12-28 03:44:37 +00:00
Richard M. Stallman
721b7d9ee6 (readevalloop): Set PT and ZV in the proper buffer, not the current one. 2005-12-28 03:44:28 +00:00
Richard M. Stallman
18e980c2ae (mouse-drag-region-1): When remapping mouse-1 to mouse-2, go back to
previously selected window, so it's selected when mouse-2 command runs.
2005-12-28 03:19:29 +00:00
Richard M. Stallman
1d69c50264 (Fminibuffer_message): Doc fix.
(read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
2005-12-28 02:56:32 +00:00
Richard M. Stallman
fe5195e82e (do_autoload): Ignore elements of Vautoload_queue where car is not symbol. 2005-12-28 02:09:45 +00:00
Juri Linkov
84116a137c *** empty log message *** 2005-12-28 02:02:23 +00:00
Juri Linkov
2fd54bf88c (describe-text-sexp): Use square brackets for
button [Show] to distinguish it from the property value `show'.
(describe-property-list): Use `insert-text-button' with
`help-face' type instead of putting face in quotes, because button
is not created automatically for a list of faces.
(describe-text-properties-1): Put button-type value in quotes to
distinguish from plain text "button".
(describe-char): Display code point values in hex.  Don't use
`symbol-name' for `current-input-method' because it is a string.
Use `insert-text-button' with `help-face' type instead of putting
hardcoded face in quotes, because button is not created automatically.
2005-12-28 01:55:16 +00:00
Kenichi Handa
0d9fb28906 *** empty log message *** 2005-12-28 00:41:37 +00:00
Richard M. Stallman
2926b5fba6 (glasses-face): More specific custom type. 2005-12-27 23:48:05 +00:00
Richard M. Stallman
1af5710156 (set-visited-file-name): Doc fix. 2005-12-27 22:54:13 +00:00
Richard M. Stallman
51978cac9a (flyspell-external-point-words):
Use local var buffer-scan-pos to advance scan for next misspelling.
Advance it only after we find the misspelling.
New criteria for finding the misspelling in the buffer.
2005-12-27 22:49:46 +00:00
Bill Wohler
13fe29bd54 (mh-prompt-for-folder): Use can-create argument to suppress creation
of folder if it doesn't exist.
2005-12-27 22:42:58 +00:00
Nick Roberts
ee79234b76 *** empty log message *** 2005-12-27 21:34:19 +00:00