1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
Commit graph

88 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
e5a4ac9d70 Change all uses of
mac-set-font-panel-visibility to mac-set-font-panel-visible-p.
(mac-ae-number): Return integer 0 if coerced result is float 0.0.
(mac-ae-get-url): Call select-frame-set-input-focus.
(mac-dnd-handle-drag-n-drop-event): Don't call
select-frame-set-input-focus.
2007-02-13 08:27:47 +00:00
YAMAMOTO Mitsuharu
1879b65c3d (mac-keyboard-modifier-mask-alist): New constant.
(mac-ae-keyboard-modifiers): New function.
(mac-handle-toolbar-switch-mode): Use it.
(mac-dnd-handle-drag-n-drop-event): Likewise.  Set action to `copy'
if keyboard modifiers on drop contain option key.
(mac-dnd-drop-data): Add optional argument `action'.
(special-event-map): Remove binding for M-drag-n-drop.
2007-01-22 08:27:23 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
YAMAMOTO Mitsuharu
025a24b5bc (mac-ae-quit-application): New function.
(mac-apple-event-map): Bind "quit application" Apple event to it.
2007-01-15 08:10:22 +00:00
Juanma Barranquero
ef9f9fb556 (mac-dnd-types-alist): Fix typo in docstring. 2007-01-08 23:02:52 +00:00
YAMAMOTO Mitsuharu
40cacec2b3 (mac-keyboard-translate-char, mac-unread-string):
New functions.
(mac-ts-update-active-input-area, mac-ts-unicode-for-key-event):
Use mac-unread-string.
2006-12-25 08:18:29 +00:00
YAMAMOTO Mitsuharu
5fecafe707 (mac-atsu-font-table): Remove defvar.
(mac-handle-font-selection): Use mac-atsu-font-face-attributes
instead of mac-atsu-font-table.
(fontset-default): Specify argument MAXIMUM in x-list-fonts calls.
2006-12-15 08:04:47 +00:00
Glenn Morris
f2e3589a33 Update copyright years. 2006-12-09 04:06:06 +00:00
YAMAMOTO Mitsuharu
045b190821 *** empty log message *** 2006-10-19 08:02:23 +00:00
YAMAMOTO Mitsuharu
dbcdba77e6 (show-hide-font-panel): New HI command ID symbol.
(mac-apple-event-map): Define its handler.
2006-09-08 08:17:21 +00:00
YAMAMOTO Mitsuharu
762ce89d58 (mac-string-to-utxt): If adjustment for MacJapanese
results in ASCII-only string, encode original one directly.
2006-08-30 08:51:52 +00:00
YAMAMOTO Mitsuharu
4442ec0d0d (mac-apple-event-map): Rename hicommand to hi-command.
(mac-dnd-drop-data): Apply 2006-08-22 change for x-dnd-drop-data.
(special-event-map): Apply 2006-08-16 change for x-win.el.
2006-08-27 07:08:07 +00:00
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