aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAdrian Robert2009-01-23 13:00:21 +0000
committerAdrian Robert2009-01-23 13:00:21 +0000
commit9d8f6d31669e36ebd1b9654d8948d4e976b63466 (patch)
tree113e7596faa772366131b585a7626be7a896aa99 /lisp
parentd900b2af456101183c1d25f94853b5df34548235 (diff)
downloademacs-9d8f6d31669e36ebd1b9654d8948d4e976b63466.tar.gz
emacs-9d8f6d31669e36ebd1b9654d8948d4e976b63466.zip
* term/ns-win.el (ns-insert-working-text, ns-put-working-text): Switch names and update comments for clarity.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/ns-win.el11
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e2945021a93..aa81238a37b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * term/ns-win.el (ns-insert-working-text, ns-put-working-text): Switch
4 names and update comments for clarity.
5
12009-01-23 Stefan Monnier <monnier@iro.umontreal.ca> 62009-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * mail/rmail.el (rmail-write-region-annotate): Only switch buffer if 8 * mail/rmail.el (rmail-write-region-annotate): Only switch buffer if
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 631d8429821..c4ed8bc8737 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -815,15 +815,16 @@ is currently being used."
815 (eq (get-char-property (1- (point)) 'composition) 815 (eq (get-char-property (1- (point)) 'composition)
816 (get-char-property (point) 'composition))))))) 816 (get-char-property (point) 'composition)))))))
817 817
818;; Currently not used, doesn't work because the 'interactive' here stays 818;; The 'interactive' here stays for subinvocations, so the ns-in-echo-area
819;; for subinvocations. 819;; always returns nil for some reason. If this WASN'T the case, we could
820(defun ns-insert-working-text () 820;; map this to [ns-insert-working-text] and eliminate Fevals in nsterm.m.
821(defun ns-put-working-text ()
821 (interactive) 822 (interactive)
822 (if (ns-in-echo-area) (ns-echo-working-text) (ns-put-working-text))) 823 (if (ns-in-echo-area) (ns-echo-working-text) (ns-insert-working-text)))
823 824
824(defvar ns-working-text) ; nsterm.m 825(defvar ns-working-text) ; nsterm.m
825 826
826(defun ns-put-working-text () 827(defun ns-insert-working-text ()
827 "Insert contents of ns-working-text as UTF8 string and mark with 828 "Insert contents of ns-working-text as UTF8 string and mark with
828ns-working-overlay. Any previously existing working text is cleared first. 829ns-working-overlay. Any previously existing working text is cleared first.
829The overlay is assigned the face ns-working-text-face." 830The overlay is assigned the face ns-working-text-face."