1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00
Commit Graph

366 Commits

Author SHA1 Message Date
Andrew Choi
742fbed75b In src:
2002-08-03  Andrew Choi  <akochoi@shaw.ca>

        * macterm.c (USE_CARBON_EVENTS): New macro.
        (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
        (x_iconify_frame): Call CollapseWindow.
        (Vmac_reverse_ctrl_meta): New variable.
        (Vmac_wheel_button_is_mouse_2): New variable.
        (init_mac_drag_n_drop): New function.
        (mac_do_receive_drag): New function.
        (mac_handle_service_event): New function.
        (init_service_handler): New function.
        (mac_to_emacs_modifiers): New function.
        (mac_event_to_emacs_modifiers): New function.
        (mac_get_mouse_btn): New function.
        (mac_convert_event_ref): New function.
        (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
        SendEventToEventTarget, mac_event_to_emacs_modifiers, and
        mac_get_mouse_btn.
        (mac_initialize): Call init_mac_drag_n_drop and
        init_service_handler.

        * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
        lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
        (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
        TOOL_BAR_EVENT for MAC_OS as well.
        (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
        as for WINDOWS_NT.
        (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.

        * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
        MAC_OSX.

In lisp:

2002-08-03  Andrew Choi  <akochoi@shaw.ca>

        * term/mac-win.el: Set keys to enable mouse wheel support.
2002-08-03 22:21:09 +00:00
Andreas Schwab
525fdbc9c8 * files.el (directory-free-space-args): Don't use -P on Darwin.
* term/mac-win.el: Don't set it here.
2002-06-30 14:42:19 +00:00
Andreas Schwab
eb14066a0b Use directory-free-space-program instead of
obsolete variable dired-free-space-program.  On Darwin, don't set
directory-free-space-program, shell-file-name and
process-connection-type; set directory-free-space-args to not
include `-P' and use utf-8 for file name coding system.
2002-06-29 19:01:46 +00:00
Stefan Monnier
b8b1b15e9a (function-key-map): Add some bindings. 2002-06-27 21:38:52 +00:00
Andrew Choi
f00691a3e4 In src/:
2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
        Vdefault_fontset to Monaco with mac-roman coding.

        * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
        init_process before and after inclusion of Carbon/Carbon.h, resp.

        * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
        cursor_gc.
        (add_font_name_table_entry): New function.
        (init_font_name_table): Use add_font_name_table_entry; add italic,
        bold, and bold-italic entries for truetype fonts.

        * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
        for Mac too.
        (try_font_list) [MAC_OS]: If no font matches given registry, try
        fonts with any registry matching face_family.
        (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font
        here.

        * s/darwin.h: If autoconf detects the Ncurses library, define
        LIBS_TERMCAP to -lncurses to use it.

In lisp/:

2002-06-16  Andrew Choi  <akochoi@shaw.ca>

        * term/mac-win.el (scalable-fonts-allowed): Set to t.
2002-06-16 23:08:57 +00:00
Juanma Barranquero
1823c9d2e1 (x-handle-switch): Fix handling of x-invocation-args for switches with
arguments.
2002-06-12 17:20:05 +00:00
Miles Bader
39ed191f8f (color-name-rgb-alist): Use 16-bit RGB values instead of 8-bit, for
consistency with the rest of emacs.
(tty-color-canonicalize): Only copy COLOR if we need to change it.
(tty-color-approximate): Scale values from `color-name-rgb-alist'
appropriately.  Return the whole color description, rather than just the
RGB values.
(tty-color-standard-values): New function.  Code mostly taken from
`tty-color-translate'.
(tty-color-translate, tty-color-values): Use `tty-color-desc' to do all
the work.
(tty-color-desc): Do color lookup here instead of calling
`tty-color-translate' and `tty-color-by-index'; this is now the main
place to do it.
2002-06-09 12:53:53 +00:00
Juanma Barranquero
aa87aafcde Fix typo. 2002-05-16 12:00:33 +00:00
Jason Rumney
e596f2a24b (mouse-wheel-scroll-line)
(mouse-wheel-scroll-screen): Removed.
([mouse-wheel], [C-mouse-wheel], [S-mouse-wheel]): Use mwheel-scroll.
2002-05-04 22:17:07 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Pavel Janík
ae10d59731 (x-select-text, x-cut-buffer-or-selection-value): Check if any of the
available selection sources has new content and if so it will return that
content.
2002-04-24 13:18:27 +00:00
Jan Djärv
3842fde117 (emacs-session-save): Add comment that return t means cancel shutdown 2002-03-12 21:15:07 +00:00
Jan Djärv
1e4f6cec82 (emacs-session-restore): Take previous id as an argument. 2002-03-12 19:15:06 +00:00
Jan Djärv
941a391a0b (x-handle-smid): New function.
(emacs-session-filename): New function.
(emacs-session-save): New function.
(emacs-save-session-functions): New variable.
(emacs-session-restore): New function.
2002-03-10 16:27:26 +00:00
Jason Rumney
ed81ee80f5 (mouse-wheel-scroll-line): Use car of
mouse-wheel-scroll-amount.
2002-02-25 23:26:38 +00:00
Jason Rumney
3d27abc47b (x-option-alist, x-long-option-alist)
(x-switch-definitions): Remove, use command-line-x-option-alist
instead to be consistent with X.
(x-handle-initial-switch): New function.
2002-02-17 23:08:14 +00:00
Eli Zaretskii
e47cd3c4e2 Fix a typo in a comment. 2002-01-25 14:35:42 +00:00
Eli Zaretskii
68fe2e0f61 (tty-standard-colors): Reverse the order of colors.
(tty-register-default-colors): New function;
code moved from startup.el's command-line.
2002-01-25 13:16:23 +00:00
Eli Zaretskii
1400df92a7 (msdos-color-values): Reverse the order of the
colors, since tty-color-define now preserves the registration
order.
2002-01-25 13:13:02 +00:00
Eli Zaretskii
63e9afde34 (xterm-standard-colors): New variable.
(xterm-rgb-convert-to-16bit, xterm-register-default-colors)
(xterm-rxvt-set-background-mode): New functions.
(toplevel): Call xterm-register-default-colors,
xterm-rxvt-set-background-mode, and tty-set-up-initial-frame-faces.
Add support for more keys from xterm's terminfo entry.
2002-01-25 13:10:46 +00:00
Eli Zaretskii
5ea6e06823 New file. 2002-01-25 13:07:35 +00:00
Richard M. Stallman
bfabe8828e (x-handle-geometry): Put sizes on both
initial-frame-alist and default-frame-alist.
2002-01-24 19:20:21 +00:00
Jason Rumney
78887b5a76 Move user variables to w32-vars.el and make them defcustoms.
Use w32-list-proportional-fonts.
2002-01-20 15:34:00 +00:00
Jason Rumney
b05f815e1c Add comments to avoid future deletion of conditionals that seem
unnecessary on w32.
2002-01-17 19:33:03 +00:00
Jason Rumney
64f41d64a9 Only require fontset when new-fontset is bound. 2002-01-17 19:29:24 +00:00
Eli Zaretskii
9da8545ad8 (tty-color-mode-alist): New variable. 2002-01-14 13:50:06 +00:00
Eli Zaretskii
2f9b363a15 (x-handle-initial-switch): New function. 2002-01-13 11:44:14 +00:00
Pavel Janík
110c171f4d Fix typo. 2002-01-13 10:09:20 +00:00
Jason Rumney
15f18b8933 Require fontset unconditionally.
(w32-handle-scroll-bar-event): Remove, since default scroll bar
behaviour is now the same as what Windows users expect.
2002-01-05 00:23:42 +00:00
Eli Zaretskii
a9a9b2e3c3 (dos-cpNNN-setup, dos-codepage-setup):
Call IT-setup-unicode-display here instead of adding it to
dos-codepage-setup-hook, so that Unicode display tables are set
before dos-codepage-setup-hook runs.
2001-12-24 16:52:50 +00:00
Richard M. Stallman
ea8d306137 (x-handle-geometry): Put height and width on default-frame-alist,
left and top on initial-frame-alist.
2001-12-24 04:52:54 +00:00
Eli Zaretskii
209695b9c7 (IT-character-translations): Add entries for more points. 2001-12-07 17:55:42 +00:00
Sam Steingold
8a9463543d Converted backquote to the new style. 2001-11-27 15:52:52 +00:00
Pavel Janík
b9001ed392 (sun-yank-selection): Use insert instead of insert-string. 2001-11-26 16:18:14 +00:00
Pavel Janík
039f4cdaaf (bg-insert-moused-sexp): Use insert instead of insert-string. 2001-11-26 16:17:44 +00:00
Eli Zaretskii
051a608df8 (term-setup-hook): Add IT-setup-unicode-display. 2001-11-04 18:52:30 +00:00
Stefan Monnier
9c01e54549 (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Add entries `ESC O 5 [ABCD]' -> C-{up,down,right,left}.
Use inheritance so that .emacs and terminfo take precedence.
2001-11-04 02:03:05 +00:00
Eli Zaretskii
aa32689c0c (x-frob-font-slant, x-frob-font-weight): Add
make-obsolete cookies, to follow faces.el.
2001-10-26 21:27:19 +00:00
Jason Rumney
1a0b615ab5 (redisplay-dont-pause): Don't set. 2001-10-21 17:15:18 +00:00
Eli Zaretskii
feeb94f7cc Update Stephen Gildea's mail address. 2001-09-23 17:48:31 +00:00
Gerd Moellmann
75377eba1c (sup-pos-to-window): Use
get-window-with-predicate.
2001-09-07 11:34:17 +00:00
Gerd Moellmann
4f3d7805a2 (bg-window-from-x-y): Use
get-window-with-predicate.
2001-09-07 11:33:32 +00:00
Andrew Choi
ae355fa64a 2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* term/mac-win.el (mac-drag-n-drop): Decode file name by
	consulting the value of file-name-coding-system.
2001-09-04 03:43:23 +00:00
Eli Zaretskii
cf8f0b68f2 (IT-character-translations) <hebrew-iso8859-8>:
Replace some of the undefined characters with emulations of bidi
formatting characters and Niqud as per SI 1311-1.
(IT-unicode-translations): Ditto.
(IT-display-table-setup, IT-setup-unicode-display): Fill
characters without translations with dos-unsupported-char-glyph.
2001-08-25 12:31:18 +00:00
Andrew Choi
fa05f6ac1b 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* term/mac-win.el: Require scroll-bar.
2001-08-24 07:16:37 +00:00
Eli Zaretskii
be8cf99e91 (IT-unicode-translations): Fix the appearance of "6`". 2001-07-23 15:29:46 +00:00
Stefan Monnier
acd9f40c0d (ignore-key, sun-esc-bracket, meta-flag): Remove.
(sun-raw-prefix): Replace t3, t4, t6, and t7 with f3, f4, f6 and f7.
Complete bindings for F<1..12> keys.
(global-map): Remove `undo' binding (already in the default).
Replace `t<n>' bindings with `f<n>' bindings.
2001-07-17 18:37:47 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Pavel Janík
6a05d05faf Fixes to follow coding conventions. 2001-07-16 11:39:42 +00:00
Stefan Monnier
3e209d8da8 *** empty log message *** 2001-07-16 01:51:19 +00:00