aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2005-07-06 00:42:58 +0000
committerKaroly Lorentey2005-07-06 00:42:58 +0000
commit626ea340bcdbe7ea4ea17b67ead430f2037ac69c (patch)
treea0b2dece1a9e1ddd0b92e67f202298d349a52f86
parent4400e7648cda74494f313ba220bfe1b8537f17b3 (diff)
downloademacs-626ea340bcdbe7ea4ea17b67ead430f2037ac69c.tar.gz
emacs-626ea340bcdbe7ea4ea17b67ead430f2037ac69c.zip
Small enhancements.
* lisp/international/mule-cmds.el (set-locale-environment): Use server-getenv, not getenv. * lisp/server.el (server-handle-delete-frame): Add note on possible race condition. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-374
-rw-r--r--lisp/international/mule-cmds.el6
-rw-r--r--lisp/server.el4
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 3ff436723ca..a24d45e9c30 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2402,7 +2402,7 @@ See also `locale-charset-language-names', `locale-language-names',
2402 (let ((vars '("LC_ALL" "LC_CTYPE" "LANG"))) 2402 (let ((vars '("LC_ALL" "LC_CTYPE" "LANG")))
2403 (while (and vars 2403 (while (and vars
2404 (= 0 (length locale))) ; nil or empty string 2404 (= 0 (length locale))) ; nil or empty string
2405 (setq locale (getenv (pop vars)))))) 2405 (setq locale (server-getenv (pop vars))))))
2406 2406
2407 (unless (or locale (not (fboundp 'mac-get-preference))) 2407 (unless (or locale (not (fboundp 'mac-get-preference)))
2408 (setq locale (mac-get-preference "AppleLocale")) 2408 (setq locale (mac-get-preference "AppleLocale"))
@@ -2512,7 +2512,7 @@ See also `locale-charset-language-names', `locale-language-names',
2512 ;; Mac OS X's Terminal.app by default uses utf-8 regardless of 2512 ;; Mac OS X's Terminal.app by default uses utf-8 regardless of
2513 ;; the locale. 2513 ;; the locale.
2514 (when (and (null window-system) 2514 (when (and (null window-system)
2515 (equal (getenv "TERM_PROGRAM") "Apple_Terminal")) 2515 (equal (server-getenv "TERM_PROGRAM") "Apple_Terminal"))
2516 (set-terminal-coding-system 'utf-8) 2516 (set-terminal-coding-system 'utf-8)
2517 (set-keyboard-coding-system 'utf-8))) 2517 (set-keyboard-coding-system 'utf-8)))
2518 2518
@@ -2530,7 +2530,7 @@ See also `locale-charset-language-names', `locale-language-names',
2530 (setq ps-paper-type 'a4))) 2530 (setq ps-paper-type 'a4)))
2531 (let ((vars '("LC_ALL" "LC_PAPER" "LANG"))) 2531 (let ((vars '("LC_ALL" "LC_PAPER" "LANG")))
2532 (while (and vars (= 0 (length locale))) 2532 (while (and vars (= 0 (length locale)))
2533 (setq locale (getenv (pop vars))))) 2533 (setq locale (server-getenv (pop vars)))))
2534 (when locale 2534 (when locale
2535 ;; As of glibc 2.2.5, these are the only US Letter locales, 2535 ;; As of glibc 2.2.5, these are the only US Letter locales,
2536 ;; and the rest are A4. 2536 ;; and the rest are A4.
diff --git a/lisp/server.el b/lisp/server.el
index 6da8527f4e5..91a74d6408d 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -326,6 +326,10 @@ message."
326 (frame-list)) 326 (frame-list))
327 frame-num)))) 327 frame-num))))
328 (server-log (format "server-handle-delete-frame, frame %s" frame) proc) 328 (server-log (format "server-handle-delete-frame, frame %s" frame) proc)
329 ;; XXX Deleting the process causes emacsclient to exit
330 ;; immediately, which might happen before Emacs closes the
331 ;; display. I think we need a `delete-frame-after-functions'
332 ;; hook here.
329 (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later. 333 (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later.
330 334
331(defun server-handle-suspend-tty (display) 335(defun server-handle-suspend-tty (display)