1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

76 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
f9b6d85f76 (mac-handle-font-selection): Change keys of
mac-atsu-font-table from strings to numbers.
(mac-ts-caret-position): Use also when cursor-type is nil.
(mac-ts-update-active-input-area): Add Mac OS Classic support.
Relax condition for using overlay strings.  Use
mac-ts-caret-position face when cursor-type is nil.
2006-06-28 08:28:38 +00:00
YAMAMOTO Mitsuharu
05d3aeb016 (mac-text-encoding-ascii): New constant.
(mac-utxt-to-string): Use it.
(mac-ts-update-active-input-area): Use mac-ae-number.
2006-06-16 08:07:59 +00:00
YAMAMOTO Mitsuharu
dc34c597e4 (mac-ts-active-input-overlay): Add defvar.
(mac-ae-number, mac-ae-frame, mac-ae-script-language)
(mac-bytes-to-text-range, mac-ae-text-range-array)
(mac-ts-update-active-input-buf, mac-split-string-by-property-change)
(mac-replace-untranslated-utf-8-chars, mac-ts-update-active-input-area)
(mac-ts-unicode-for-key-event):	New functions.
(mac-handle-toolbar-switch-mode): Use mac-ae-frame.
(mac-handle-font-selection): Use mac-ae-number.
(mac-ts-active-input-buf, mac-ts-update-active-input-area-seqno):
New variables.
(mac-ts-caret-position, mac-ts-raw-text, mac-ts-selected-raw-text)
(mac-ts-converted-text, mac-ts-selected-converted-text)
(mac-ts-block-fill-text, mac-ts-outline-text)
(mac-ts-selected-text, mac-ts-no-hilite): New faces.
(mac-ts-hilite-style-faces): New constant.
(mac-apple-event-map): Bind text input events.
(mac-dispatch-apple-event): Use command-execute instead of
call-interactively.
(global-map): Don't bind mac-apple-event.
(special-event-map): Bind mac-apple-event.
2006-06-03 02:31:51 +00:00
YAMAMOTO Mitsuharu
dc47c8243d Set idle timer to clean up expired Apple events.
(mac-ae-get-url): Redispatch Apple event on unknown scheme.
(mac-dispatch-apple-event): Resume Apple event if it is suspended.
Optionally set error message in reply.
2006-05-24 08:06:27 +00:00
YAMAMOTO Mitsuharu
fc0a69d1e7 (mac-ae-open-documents): Escape file name on conversion to URL. 2006-05-20 04:30:07 +00:00
YAMAMOTO Mitsuharu
7b39356d19 (mac-bytes-to-digits): Remove function.
(mac-handle-toolbar-switch-mode): Use coercion instead of it.
2006-05-19 09:09:37 +00:00
YAMAMOTO Mitsuharu
b905e80927 (mac-font-panel-mode): Doc fix.
(mac-service-selection, mac-service-open-file)
(mac-service-open-selection, mac-service-mail-selection)
(mac-service-mail-to, mac-service-insert-text): Rename from
mac-services-*.  All uses changed.
(mac-apple-event-map): Rename event symbol `services' to `service'.
2006-05-10 08:22:39 +00:00
YAMAMOTO Mitsuharu
527ba7f452 (mac-utxt-to-string): Use eq' instead of ='.
(mac-atsu-font-table, mac-font-panel-mode): Add defvars.
(mac-bytes-to-digits, mac-handle-toolbar-switch-mode)
(mac-handle-font-panel-closed, mac-handle-font-selection):
New functions.
(mac-font-panel-mode): New minor mode.
(mac-apple-event-map): Add bindings for toolbar toggle button and
font panel.
(menu-bar-showhide-menu): Add mac-font-panel-mode.
2006-05-07 08:03:40 +00:00
YAMAMOTO Mitsuharu
e834108f7d (mac-utxt-to-string): Don't make adjustment for
MacJapanese if text is ASCII-only.
2006-05-06 06:50:10 +00:00
YAMAMOTO Mitsuharu
6e53dc956b (mac-utxt-to-string, mac-string-to-utxt)
(mac-TEXT-to-string, mac-string-to-TEXT, mac-furl-to-string)
(mac-TIFF-to-string): New functions.
(mac-text-encoding-mac-japanese-basic-variant):	New constant.
(x-get-selection, x-selection-value)
(mac-select-convert-to-string): Use them.
(mac-dnd-types-alist): New customization variable.
(mac-dnd-handle-furl, mac-dnd-handle-hfs, mac-dnd-insert-utxt)
(mac-dnd-insert-TEXT, mac-dnd-insert-TIFF, mac-dnd-drop-data)
(mac-dnd-handle-drag-n-drop-event): New functions.
(mac-drag-n-drop): Remove function.
(global-map): Bind drag-n-drop and M-drag-n-drop to
mac-dnd-handle-drag-n-drop-event.
2006-05-05 06:43:12 +00:00
YAMAMOTO Mitsuharu
fc36394b4b (mac-ae-open-documents, mac-drag-n-drop): Use
select-frame-set-input-focus instead of raise-frame.
(global-map): Bind M-drag-n-drop to mac-drag-n-drop.
2006-05-01 01:09:40 +00:00
YAMAMOTO Mitsuharu
4da2c33b4c (mac-system-coding-system): Define and use after
Mac-specific coding systems are ready.
2006-03-30 02:23:27 +00:00
YAMAMOTO Mitsuharu
0f49150ef4 Adjust Courier font specifications in x-fixed-font-alist.
(mac-select-convert-to-string): Use utf-16be-mac or utf-16le-mac
when directly encoding to UTF-16 in native byte order, no BOM.
2006-03-25 07:40:46 +00:00
YAMAMOTO Mitsuharu
2f8efa69e0 (fontset-standard): Rename from "fontset-mac". 2006-02-10 08:19:53 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
YAMAMOTO Mitsuharu
a149e872d4 (mac-ae-parameter): Don't coerce data if it is
already of desired type.
(mac-ae-list): Coerce parameter to "list" type.
(mac-dispatch-apple-event): Replace cadr part of event with a
dummy position so that event-start returns it.
2006-01-05 08:13:11 +00:00
YAMAMOTO Mitsuharu
62ffc23213 (mac-handle-language-change)
(mac-ae-open-documents, mac-ae-get-url, mac-services-open-file)
(mac-services-open-selection, mac-services-mail-selection)
(mac-services-mail-to, mac-services-insert-text)
(mac-dispatch-apple-event): Add docstrings.
(x-get-selection, mac-select-convert-to-string): Select coding
system from `utf-16be' and `utf-16le' using `byteorder'.
2005-12-19 08:29:06 +00:00
YAMAMOTO Mitsuharu
2f1fd48471 Create keymap for mac-apple-event-map. 2005-12-11 01:05:56 +00:00
YAMAMOTO Mitsuharu
ea1f60515f Require url when compiling. Call
mac-process-deferred-apple-events after loading init files.
(mac-apple-event-map): New defvar.  Define event handlers in it.
(core-event, internet-event): New Apple event class symbols.
(open-application, reopen-application, open-documents)
(print-documents, open-contents, quit-application)
(application-died, show-preferences, autosave-now, get-url): New
Apple event ID symbols.
(about): New HICommand ID symbol.
(mac-event-spec, mac-event-ae): New macros.
(mac-ae-parameter, mac-ae-list, mac-bytes-to-integer)
(mac-ae-selection-range, mac-ae-text-for-search)
(mac-ae-open-documents, mac-ae-text, mac-ae-get-url): New functions.
(mac-application-menu-map): Remove keymap.  Handlers for HICommand
and Services menu events are now defined in mac-apple-event-map.
(mac-drag-n-drop): Remove selection range handling.
2005-12-10 01:48:21 +00:00
YAMAMOTO Mitsuharu
d8dabccce2 Make modifier ctrl' an alias of control'. 2005-11-24 08:18:37 +00:00
YAMAMOTO Mitsuharu
0d83c94d20 Don't change default directory. 2005-11-23 07:19:59 +00:00
YAMAMOTO Mitsuharu
02abe13c74 Apply 2005-10-09 change for term/x-win.el.
(x-get-selection, mac-select-convert-to-string): Convert from/to
UTF-16 clipboard data as in native byte order, no BOM.
2005-10-16 02:21:16 +00:00
YAMAMOTO Mitsuharu
8de786ae2b Add charset info for "iso10646-1". Modify default fontset to use
ATSUI-compatible fonts for some charsets if available.
2005-10-01 11:07:39 +00:00
YAMAMOTO Mitsuharu
1c245bb7d4 (mac-add-charset-info): Doc fix. 2005-09-18 05:40:06 +00:00
Juanma Barranquero
26238072db (mac-charset-info-alist, mac-services-selection, mac-system-script-code):
Add defvars.
2005-08-31 09:52:29 +00:00
Thien-Thi Nguyen
5fd6d89f46 Update years in copyright notice; nfc. 2005-08-01 15:47:19 +00:00
YAMAMOTO Mitsuharu
852f7e6b6a (ccl-encode-mac-roman-font, ccl-encode-mac-centraleurroman-font)
(ccl-encode-mac-cyrillic-font, ccl-encode-mac-symbol-font):
(ccl-encode-mac-dingbats-font): Remove check for ASCII.  Change
charset-id boundary of dimension to ?\xef.
(mac-char-fontspec-list): New constant.
(fontset-add-mac-fonts): Use it.  Accept non-string `base-family'
argument.  Nil uses itself as family in font-spec.  Previous
behavior for nil is now provided by non-nil non-string argument.
All callers changed.  Add font-specs for Mac fonts to
"fontset-default" unless iso8859-1 fonts are installed.
2005-07-13 09:11:35 +00:00
YAMAMOTO Mitsuharu
b007e01c6c (mac-services-mail-selection, mac-services-mail-to): New functions.
(mac-application-menu-map): Bind them.
2005-07-12 11:32:40 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +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
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
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
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
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
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