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

445 Commits

Author SHA1 Message Date
Kenichi Handa
d8338794e7 (x-clipboard-yank): Remove condition-case
wrapping.
2005-06-10 05:41:46 +00:00
Kenichi Handa
63e88db35a (x-clipboard-yank): Use x-selection-value instead of x-get-selection. 2005-06-10 01:52:13 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
YAMAMOTO Mitsuharu
5a537870e3 (mac-select-convert-to-string): Try coding
systems in mac-script-code-coding-systems if specified one cannot
encode string for `com.apple.traditional-mac-plain-text'.
2005-05-13 08:51:35 +00:00
Thien-Thi Nguyen
0ec2b560ea Update years in copyright notice; nfc. 2005-05-12 01:35:20 +00:00
YAMAMOTO Mitsuharu
2f13e358c8 Don't define or bind scroll bar functions if
x-toolkit-scroll-bars is t.
(x-select-text, x-get-selection-value): Clear
x-last-selected-text-clipboard if x-select-enable-clipboard is
nil.
(PRIMARY): Put mac-scrap-name property.
(mac-select-convert-to-file-url): New function.
(public.file-url): New selection target type.  Add to
selection-converter-alist.
(x-get-selection, x-selection-value): Handle it.
(x-cut-buffer-or-selection-value): New alias.
2005-05-06 08:01:13 +00:00
Juanma Barranquero
dc75b16394 (image-library-alist): Add additional name for Xpm library. 2005-05-05 01:03:56 +00:00
Dan Nicolaescu
656c316dbb (function-key-map): Call substitute-key-definition
before the keymap size keymap is increased by a lot of define-key
calls.
2005-05-01 16:37:19 +00:00
Dan Nicolaescu
35b1b8abe3 * NEWS: Mention xterm key bindings.
* term/xterm.el (function-key-map): Fix strings for
{C,S,A,C-S}-f[1-4]. Use substitute-key-definition to bind
{C,S,A,C-S}-{f1-f12}.
2005-04-26 05:56:22 +00:00
YAMAMOTO Mitsuharu
853065b67f Require select. Set selection-coding-system to
mac-system-coding-system.  Call menu-bar-enable-clipboard.
(x-last-selected-text-clipboard, x-last-selected-text-primary)
(x-select-enable-clipboard): New variables.
(x-select-text, x-get-selection, x-selection-value)
(x-get-selection-value, mac-select-convert-to-string)
(mac-services-open-file, mac-services-open-selection)
(mac-services-insert-text): New functions.
(CLIPBOARD, FIND): Put mac-scrap-name property.
(com.apple.traditional-mac-plain-text, public.utf16-plain-text)
(public.tiff): Put mac-ostype property.
(selection-converter-alist): Add entries for them.
(mac-application-menu-map): New keymap.
(interprogram-cut-function, interprogram-paste-function): Set to
x-select-text and x-get-selection-value, respectively.
(split-window-keep-point): Set to t.
2005-04-24 05:59:52 +00:00
YAMAMOTO Mitsuharu
37c5c4a727 (mac-symbol-encoder): Fix mappings of left and right angle brackets. 2005-04-20 02:06:48 +00:00
YAMAMOTO Mitsuharu
13d9a23189 (mac-symbol-encoder, mac-dingbats-encoder): Minor update. 2005-04-19 12:47:46 +00:00
YAMAMOTO Mitsuharu
dfcb7df273 Add coding: tag and set it to iso-2022-7bit.
(mac-add-charset-info): New function.  Initialize variable
mac-charset-info-alist using it.
(mac-centraleurroman, mac-cyrillic): Do not use UCS in table data for
translation.
(mac-symbol-encoder, mac-dingbats-encoder): New translation table.
(mac-font-encoder-list): Add entries for mac-symbol and mac-dingbats.
(ccl-encode-mac-symbol-font, ccl-encode-mac-dingbats-font): New CCL
programs.
2005-04-19 12:04:51 +00:00
YAMAMOTO Mitsuharu
9bf2510aa5 Don't set file-name-coding-system. Decode variables system-name,
emacs-build-system, user-login-name, and user-full-name by
mac-system-coding-system on Mac OS Classic.
(mac-system-coding-system): New variable.
2005-04-14 09:28:21 +00:00
Dan Nicolaescu
759e9f0c42 (function-key-map): Add mappings for A-, C-, S-
and C-S- function and cursor motion keys.
2005-04-13 02:25:43 +00:00
YAMAMOTO Mitsuharu
92a607bd5c (kTextEncodingMacRoman, kTextEncodingISOLatin1)
(kTextEncodingISOLatin2): Remove constants.
(mac-script-code-coding-systems): New constant.
(mac-handle-language-change): New function.
(special-event-map): Bind it to `language-change' event.
(mac-centraleurroman, mac-cyrillic): New coding systems.
(mac-font-encoder-list, ccl-encode-mac-centraleurroman-font)
(ccl-encode-mac-cyrillic-font): Rename mac-centraleurroman-encoder and
mac-cyrillic-encoder to encode-mac-centraleurroman and
encode-mac-cyrillic, respectively.
2005-04-12 10:27:29 +00:00
YAMAMOTO Mitsuharu
590bc75d28 (dnd): Require dnd
(mac-drag-n-drop): Call dnd-handle-one-url.
2005-04-12 09:01:36 +00:00
Jan Djärv
6bc52abcc6 * term/w32-win.el (dnd): Require dnd
(w32-drag-n-drop): Call dnd-handle-one-url.
2005-04-11 19:25:58 +00:00
Dan Nicolaescu
ce102cb1e3 (xterm-rgb-convert-to-16bit): Simplify.
(xterm-register-default-colors): Update color values computation
to match xterm-200.
2005-04-09 15:25:50 +00:00
Dan Nicolaescu
9fb518aa5f (xterm-standard-colors): Update color values from
xterm-200.
2005-04-06 21:38:35 +00:00
YAMAMOTO Mitsuharu
3bc062ea3e Use create-fontset-from-mac-roman-font to create the startup fontset
if a font specification ends with `mac-roman'.
2005-04-06 02:15:29 +00:00
Eli Zaretskii
3e23d962ee Don't use keyswap.el, since it is now obsolete. 2005-03-26 16:22:59 +00:00
Stefan Monnier
33256bdff9 Undo last change, better done in mule-cmds.el. 2005-03-25 15:42:34 +00:00
Stefan Monnier
3ac3dd4f03 If running in Terminal.app set coding-system to utf-8. 2005-03-24 17:18:46 +00:00
Eli Zaretskii
f3b7338cc3 Moved keyswap.el from term/ to obsolete/. 2005-03-19 13:15:38 +00:00
YAMAMOTO Mitsuharu
af6e9e853c Add mouse pointer shape constants. 2005-03-16 03:23:34 +00:00
YAMAMOTO Mitsuharu
9b3c108b78 (function-key-map): Sync with x-win.el. 2005-03-15 07:45:58 +00:00
Stefan Monnier
2c75eddf9d (function-key-map): Use char-names more consistently.
(file-name-coding-system): Only set it for MacOS-9.  The other case is
already handled in mule-cmds.el (where it also works when mac-win.el
is not used).
2005-02-21 13:11:04 +00:00
Stefan Monnier
bd6a8278ad Simplify code. 2005-01-23 16:56:11 +00:00
Jason Rumney
fc8f881d53 (xw-defined-colors) Remove debug message. 2005-01-22 23:49:06 +00:00
Steven Tamm
a15252fdfb * editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
	based on call to uname if available.
	(get_operating_system_release): Added function to
	allow c-level access to operating system release.
* config.h: Regenerated.
* s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
	less.
	(MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
	using ptys as '7'.
* term/mac-win.el (process-connection-type): Removed.
	Controlled now by s/darwin.h:PTY_ITERATION.
2005-01-20 18:13:48 +00:00
Steven Tamm
8db8a5cf5f * term/mac-win.el (process-connection-type): Use new
operating-system-release variable to use ptys on Darwin 7 (OSX
	10.3) when using carbon build.
2005-01-19 19:14:01 +00:00
Steven Tamm
456e761bec * macterm.c (SelectionRange): Add Xcode position apple event struct.
(do_ae_open_documents): Handle Xcode-style file position open
	events.
* term/mac-win.el (mac-drag-n-drop): Handle drag-n-drop events
	that include line numbers.
2004-12-30 02:04:31 +00:00
Steven Tamm
30c92fab79 * term/mac-win.el: Require x-dnd.
(mac-drag-n-drop): Sync with W32 version.  Use x-dnd.el functions.
* macfns.c (install_window_handler): Modify extern to return OSErr
	value.
	(mac_window): Handle return value of install_window_handler.
* macterm.c (reflect_byte): Remove function.
	(mac_create_bitmap_from_bitmap_data): Don't call it.  Lookup table
	instead.
	(mac_do_font_lists): Simplify calculation of the longest
	nonspecial string.
	[TARGET_API_MAC_CARBON] (init_mac_drag_n_drop): Remove function
	and declaration.
	(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call it.
	[TARGET_API_MAC_CARBON] (mac_do_track_drag): New function and
	declaration.
	(install_window_handler): Return OSErr value.
	(install_window_handler) [TARGET_API_MAC_CARBON]: Register
	handlers for tracking/receiving drag-and-drop items.
	(do_ae_open_documents): Generate unibyte strings for filenames.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  Reject
	only non-filename items.  Set event modifiers.  Set return value.
2004-12-29 17:25:02 +00:00
Steven Tamm
74e2abe26a * term/mac-win.el: Sync with x-win.el. Rearrange the contents.
Call mac-clear-font-name-table if invoked on Mac OS 8/9.  Call
x-open-connection on Mac OS X.
2004-12-27 17:23:02 +00:00
Steven Tamm
fbe6152fad * term/mac-win.el (encoding-vector, mac-font-encoder-list)
(ccl-encode-mac-centraleurroman-font): Use centraleurroman
instead of centraleuropean as the name
* macterm.c (endif, x_font_name_to_mac_font_name): Use
maccentraleurroman instead of maccentraleuropean
(mac_c_string_match, mac_do_list_fonts): Speed up font search by
quickly finding a specific font without needing regexps.
2004-12-18 16:36:31 +00:00
Kenichi Handa
eb5ad2428b (x-last-selected-text-cut-encoded): New variable.
(x-select-text): Don't treat eight-bit-control/graphic chars
specially.  Store the encoded text in the X cut buffer.
(x-cut-buffer-or-selection-value): Compare the X cut buffer text
with x-last-selected-text-cut-encoded.
2004-12-01 00:35:37 +00:00
Steven Tamm
f084eeb926 * term/mac-win.el (ccl-encode-mac-roman-font)
(ccl-encode-mac-cyrillic-font)
(ccl-encode-mac-centraleuropean-font, encoder-list)
(fontset-add-mac-fonts, create-fontset-from-mac-roman-font):
Support Cyrillic, CentralEuropean, and Dingbat font display
2004-11-30 15:49:26 +00:00
Stefan Monnier
4dab1ffd06 (function-key-map): Add bindings for C- and S- cursor
motion as seen on my Mac OS X xterms.
2004-09-08 02:41:53 +00:00
Steven Tamm
2ca75b4224 Add ASCII equivalents for some function keys.
(mode-line-frame-identification): Sync with x-win.el.
2004-09-02 16:59:18 +00:00
Kenichi Handa
c3ff5bc11c term/x-win.el (x-selection-value): If utf8 was successful but
ctext was not, use utf8 string.
2004-08-16 00:07:23 +00:00
Luc Teirlinck
b96b979c74 (tty-color-approximate): Doc fix. 2004-07-24 21:58:34 +00:00
Steven Tamm
0ecc99998a term/mac-win.el (mac-scroll-ignore-events, mac-scroll-down)
(mac-scroll-down-line, mac-scroll-up, mac-scroll-up-line):
Do not treat double clicks and triple clicks specially in the
scroll bar (preventing strange repositioning problems)
2004-07-08 15:24:54 +00:00
Juanma Barranquero
fe34703418 (image-library-alist): Initialize to a known set of probable library names. 2004-06-14 21:01:37 +00:00
Jason Rumney
b0efcd2ea3 Require code-pages. 2004-05-09 15:01:17 +00:00
Jan Djärv
e43a720fd6 * term/x-win.el (x-clipboard-yank): Don't exit on error from
x-get-selection.
2004-05-03 20:02:49 +00:00
Jason Rumney
1e8b532f5a (w32-drag-n-drop): Use x-dnd.el functions. 2004-05-01 13:31:29 +00:00
Eli Zaretskii
361535c2a9 Remove my incorrect email address. 2004-04-04 21:45:39 +00:00
Kenichi Handa
b040ac646b (x-select-utf8-or-ctext): Use compare-strings instead of while loop. 2004-02-10 03:52:37 +00:00
Jan Djärv
133aad747d * x-dnd.el: New file for drag and drop.
* term/x-win.el: require x-dnd, set after-make-frame-functions
to x-dnd-init-frame, let x-dnd-handle-drag-n-drop-event handle
drag-n-drop event.

* dired.el (dired-dnd-test-function, dired-dnd-popup-notice)
(dired-dnd-do-ask-action, dired-dnd-handle-local-file)
(dired-dnd-handle-file): New functions for drag and drop support.
(dired-mode): Initialize drag and drop if x-dnd present.
2004-02-03 16:55:30 +00:00