Commit graph

44 commits

Author SHA1 Message Date
Adrian Robert
c3c122b762 term/ns-win.el (composition-function-table) (script-representative-chars): Don't alter. 2009-06-08 04:35:40 +00:00
Juanma Barranquero
2b4e72e1d5 * term/ns-win.el (ns-alternatives-map, ns-insert-working-text)
(ns-echo-working-text, ns-utf8-nfd-post-read-conversion)
(ns-insert-text, ns-insert-file, ns-find-file, generate-fontset-menu)
(mouse-set-font, ns-respond-to-change-font, ns-standard-fontset-spec)
(ns-set-background-alpha, ns-set-foreground-at-mouse)
(ns-set-background-at-mouse): Fix typos in docstrings.
2009-05-03 23:19:35 +00:00
David Reitter
1a1961c361 (ns-make-command-string, ns-grabenv)
(ns-extended-platform-support-mode, menu-bar-ns-file-menu)
(ns-arrange-all-frames, ns-arrange-visible-frames)
(ns-arrange-frames): remove. These functionalities not
available on other (free) platforms will be provided to users
outside the Emacs project in the "ns-platform-support" package.
2009-04-30 18:01:40 +00:00
Glenn Morris
73f6360c50 (ns-pop-up-frames): Make it a defcustom. 2009-04-07 03:19:44 +00:00
David Reitter
4c785fa701 (ns-expand-space): remove defvar.
(S-,): bind to `customize' in line with menu item.
([global-map windows]): remove (in line with other platforms).
(menu-bar-update-frames, force-menu-bar-update-buffers,force-menu-bar-update-buffers,force-menu-bar-update-buffers): remove, not needed.
(menu-bar-update-hook): do not alter.
(generate-fontset-menu,mouse-set-font): amend doc string of these defaliases to point out their altered meaning in NS.
2009-03-29 00:00:30 +00:00
Kenichi Handa
2c0359930b Call create-defualt-fontset, not
setup-default-fontset.  Call create-fontset-from-fontset-spec
within condition-case.
2009-03-19 00:58:19 +00:00
David Reitter
c6c62e780c Unify shutdown handling under NS, via ns-power-off key event (where appropriate) and save-buffers-kill-emacs.
remove  NS-specific preferences window that used to show NS-specific preferences.
Integrate preferences in Lisp accessible customization system where possible.
Remove ns-expand-space, because it can be set only during fontloading (i.e. not at runtime),
and because of redundancy with line-spacing frame parameter.

Remove loading of most and saving of all NS resources (from org.gnu.Emacs.plist).

nsterm.m (ns_shutdown_properly, -terminate): remove global state variable as it was never reset
(ns_term_init): remove initialization of Lisp-settable defaults and ns_expand_space
(-setPanelFromDefaultValues): remove ns_expand_space.
(-showPreferencesWindow): send new KEY_NS_SHOW_PREFS key.

nsfont.m (nsfont_open): remove ns_expand_space, assume -0.5 i.e. no additional spacing, similar to Carbon port.

nsterm.h: define KEY_NS_SHOW_PREFS key.
nsfns.m (ns-popup-prefs-panel): remove.

term/ns-win.el (ns-expand-space): remove.
(ns-show-prefs event): run `customize'.
(ns-power-off): run `save-buffers-kill-emacs', but ask user whether to save files (as is standard)
(clipboard-yank, clipboard-kill-ring-save, clipboard-kill-region)
(menu-bar-enable-clipboard): do not undefine these.
(ns-save-preferences,ns-save-options,ns-show-preferences-help): remove.
2009-03-14 21:19:56 +00:00
Stefan Monnier
43c660bc89 (ns-working-overlay): Don't make it buffer-local.
(ns-working-overlay-len): Remove.  Use ns-working-overlay instead.
(ns-delete-working-text): Merge with ns-unecho-working-text.
Decide which to use based on ns-working-overlay.
(ns-unecho-working-text): Remove.
(ns-insert-working-text, ns-echo-working-text): Adjust accordingly.
2009-02-24 21:11:53 +00:00
Glenn Morris
20bc68dd30 (ns): Define as a custom group. 2009-02-04 03:38:06 +00:00
Adrian Robert
516907a2b9 * term/ns-win.el (ns-save-preferences): Save ns-confirm-quit option. 2009-02-01 17:32:52 +00:00
Adrian Robert
33b357927c * term/ns-win.el (ns-insert-working-text, ns-delete-working-text):
Remove from global map and key definitions.
	(ns-toggle-toolbar, ns-info-prefs): Add to global map and key
	definitions.
	(ns-show-preferences-help, ns-unput-working-text): New functions.
	(ns-unecho-working-text): Update message.
2009-01-25 19:50:16 +00:00
Adrian Robert
08324aaa01 * term/ns-win.el (menu-bar-select-frame): Drop this override.\n\t(menu-bar-update-frames): Update call to menu-bar-select-frame. 2009-01-24 10:27:03 +00:00
Adrian Robert
9d8f6d3166 * term/ns-win.el (ns-insert-working-text, ns-put-working-text): Switch names and update comments for clarity. 2009-01-23 13:00:21 +00:00
Adrian Robert
b51a33657e * term/ns-win.el (ns-show-manual): Fix node name. (x-open-connection) Fix typo in declaration filename. 2009-01-22 12:31:36 +00:00
Glenn Morris
c5220417f4 Comments (minor fixes of some header conventions). 2009-01-10 22:08:37 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
ff757fd1df (ns-extended-platform-support-mode): Tweak menu entry from previous change. 2008-11-16 23:47:04 +00:00
Glenn Morris
406aaa6f6d (ns-do-applescript, ns-popup-font-panel): Declare.
(ns-show-manual, menu-bar-help-menu): Update for merge of ns-emacs into
main Emacs manual.
2008-11-15 22:29:59 +00:00
Glenn Morris
3dcdb6ea2c Fix case of "GNUstep". 2008-10-04 18:45:30 +00:00
Adrian Robert
795d93585c * term/ns-win.el (ns-cursor-blink-rate, ns-cursor-blink-mode): Remove. 2008-08-21 02:31:45 +00:00
Adrian Robert
6742a9d2af Uncomment 'put backspace ascii-character...' and friends, they are needed for tramp. 2008-08-18 15:04:37 +00:00
Chong Yidong
489382c5bb (ns-parse-geometry): Rename from x-parse-geometry. 2008-08-13 23:40:02 +00:00
Glenn Morris
ba0c843d85 (x-parse-geometry): Doc fix. 2008-08-11 01:24:31 +00:00
Glenn Morris
f2d9c15f59 Add declarations for builds without X. 2008-08-11 01:23:07 +00:00
Adrian Robert
55e8d9a557 * startup.el (command-line-ns-option-alist): Use ignore instead of ns-ignore-0-arg. * term/ns-win.el (ns-ignore-0-arg, mouse-extend-region) (ns-win-suspend-error, ns-yes-or-no-p, colors): Drop. (ns-alternatives-map): New variable. (x-set-up-function-keys): Use it. (global): Comment out 'put backspace ascii-character...' and friends. Move function-key-map into ns-alternatives-map. Don't call precompute-menubar-bindings. Don't set anything connected with browse-url. (after-make-frame-functions): Clarify comment why a hook is added. 2008-08-07 03:10:08 +00:00
Adrian Robert
4e6225928e Dock menu customization, based on a patch by Ken Raeburn, plus some other fixes. 2008-08-05 03:05:14 +00:00
Adrian Robert
583ff3c3ba rename do-applescript,do_applescript in keeping with NS code conventions 2008-07-27 19:20:38 +00:00
Adrian Robert
7f19297073 fix up ns-extended-platform-support-mode 2008-07-27 02:28:50 +00:00
Dan Nicolaescu
601fb9b822 * term/ns-win.el:
* version.el (emacs-version):
* loadup.el:
* frame.el (make-frame-on-display): Check for ns instead of
ns-windowing.
2008-07-23 06:01:21 +00:00
Adrian Robert
712b2de134 fix up compile error from renaming of ns-list-fonts 2008-07-23 02:53:42 +00:00
Dan Nicolaescu
9e50ff0c16 * term/ns-win.el: Rename ns- functions/variables to the
corresponding x- versions.
(x-select-text, x-cut-buffer-or-selection-value)
(x-disown-selection-internal, x-get-selection-internal)
(x-own-selection-internal, x-defined-colors, xw-defined-colors)
(x-display-mm-width, x-display-mm-height)
(x-display-backing-store, x-display-save-under)
(x-display-visual-class, x-display-screens, x-focus-frame): Remove
defaliases.

* image.c:
* nsfns.m:
* nsselect.m:
* nsterm.h:
* nsterm.m: Rename ns prefixed functions/variables to the
corresponding x versions.  Update references.
2008-07-21 17:48:37 +00:00
Chong Yidong
a5a1b4640f Standardize references to "Nextstep" in comments, messages, and docstrings.
(ns-handle-args, x-parse-geometry)
(ns-extended-platform-support-mode, x-setup-function-keys)
(ns-select-overlay, ns-unselect-line, ns-yes-or-no-p)
(ns-set-pasteboard, ns-scroll-bar-move, ns-defined-colors)
(ns-initialized, ns-initialize-window-system): Doc fixes.
2008-07-21 16:23:55 +00:00
Adrian Robert
c469837a5c fix typo ns-ps-print-buffer-with-faces pointed out by Vinicius Jose Latorre 2008-07-19 17:21:28 +00:00
Glenn Morris
a5e1066d83 Add 2007 to copyright years, since was available then.
(ns-make-command-string): Use mapconcat.
(ns-save-preferences): Fix typo in previous change.
2008-07-19 01:17:31 +00:00
Chong Yidong
82a330df16 (ns-submit-bug-report): Function removed. Bug
reports go to the main Emacs bug list.
(ns-handle-args, ns-spi-service-call): Doc fixes.
(info-ns-emacs): Function removed.  Nextstep port manual will be
merged into the Emacs manual, so no separate link needed.
2008-07-18 17:45:01 +00:00
Chong Yidong
b90cc05848 Contents of ns-grabenv.el moved here.
(ns-grabenv, ns-open-file-select-line): Doc fixes.
2008-07-18 17:09:23 +00:00
Chong Yidong
2f93961f01 Contents of ns-carbon-compat.el moved here. 2008-07-18 16:54:12 +00:00
Glenn Morris
e5744c6666 (parameters): Declare for compiler. 2008-07-17 16:32:50 +00:00
Glenn Morris
d377ef4a3f (ns-handle-switch): Simplify. Handle the numeric case.
(ns-handle-numeric-switch): Just call ns-handle-switch.
(ns-handle-name-switch, ns-handle-nxopen, ns-handle-nxopentemp)
(ns-handle-args): Simplify using `pop'.
(ns-display-name): Define (used in frame.el).
(menu-bar-select-frame): Add (ignored) arg to more closely match the
original definition.
(ns-perform-service): Declare.
(ns-save-preferences): Use fewer `let's.
2008-07-17 02:36:16 +00:00
Stefan Monnier
ebe6804247 Require CL; fix up comment style; reindent.
(ns-define-service): Use subst-char-in-string.  Avoid `eval'.
(ns-save-preferences): Use `case'.
(ns-initialize-window-system): Use `dolist'.
2008-07-16 20:06:14 +00:00
Adrian Robert
38f4308d1b remove easy-mmode from loadup.el before ns-win; correct docs in ns-win 2008-07-16 02:46:09 +00:00
Glenn Morris
c0642f6de0 Fix header format and permissions notice.
Add numerous declarations for compiler.
(ns-pop-up-frames): Move definition before use. Doc fix.
2008-07-16 02:29:39 +00:00
Miles Bader
0ae1e5e565 Add arch tagline 2008-07-15 23:52:03 +00:00
Adrian Robert
edfda78355 merging Emacs.app (NeXTstep port) 2008-07-15 18:15:18 +00:00