X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/acaf905b1130aae80fa59d2c861ffd4c8eb75486..f0019ede635edc3c5898d6297f4e25769a1ad7c1:/lisp/w32-fns.el diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index aba14480fa..1769ee73be 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el @@ -1,6 +1,6 @@ ;;; w32-fns.el --- Lisp routines for 32-bit Windows -;; Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc. +;; Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc. ;; Author: Geoff Voelker ;; Keywords: internal @@ -161,7 +161,7 @@ You should set this to t when using a non-system shell.\n\n")))) (add-hook 'before-init-hook 'set-default-process-coding-system) -;;; Basic support functions for managing Emacs' locale setting +;;; Basic support functions for managing Emacs's locale setting (defvar w32-valid-locales nil "List of locale ids known to be supported.") @@ -192,24 +192,6 @@ You should set this to t when using a non-system shell.\n\n")))) (w32-get-locale-info locale) (w32-get-locale-info locale t)))))) -;; Setup Info-default-directory-list to include the info directory -;; near where Emacs executable was installed. We used to set INFOPATH, -;; but when this is set Info-default-directory-list is ignored. We -;; also cannot rely upon what is set in paths.el because they assume -;; that configuration during build time is correct for runtime. -(defun w32-init-info () - (let* ((instdir (file-name-directory invocation-directory)) - (dir1 (expand-file-name "../info/" instdir)) - (dir2 (expand-file-name "../../../info/" instdir))) - (if (file-exists-p dir1) - (setq Info-default-directory-list - (append Info-default-directory-list (list dir1))) - (if (file-exists-p dir2) - (setq Info-default-directory-list - (append Info-default-directory-list (list dir2))))))) - -(add-hook 'before-init-hook 'w32-init-info) - ;; The variable source-directory is used to initialize Info-directory-list. ;; However, the common case is that Emacs is being used from a binary ;; distribution, and the value of source-directory is meaningless in that