From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: can't access info dir in emacs under msys2 Date: Mon, 10 Oct 2016 17:01:00 +0300 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: <87k2dg5mn7.fsf@gavenkoa.example.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476108680 9923 195.159.176.226 (10 Oct 2016 14:11:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2016 14:11:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 10 16:11:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btbI1-0007Ll-KM for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 16:10:49 +0200 Original-Received: from localhost ([::1]:50411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btbI0-0000he-3m for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 10:10:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btb9H-00030h-5j for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 10:01:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btb9C-0000Xn-7I for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 10:01:46 -0400 Original-Received: from [195.159.176.226] (port=59844 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btb9C-0000Vw-13 for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 10:01:42 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1btb8p-0000et-JH for help-gnu-emacs@gnu.org; Mon, 10 Oct 2016 16:01:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ozWua3gsKicpQqu06KBiVIqTfMs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Mon, 10 Oct 2016 10:09:51 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111492 Archived-At: On 2016-10-03, Bostjan Vilfan wrote: > however, I am experiencing difficulties in accessing manuals, other than the > emacs manual and the emacs lisp manual (for example, I would like to access > the org mode manual). Could someone, please, let me know how to set up emacs > so that I can access all manuals in /msys64/mingw64/share/info. ``Info-directory-list`` is the easiest way to extend INFOPATH. With native Emacs and ``cygwin-mount.el`` you may have: --8<---------------cut here---------------start------------->8--- INFOPATH=:/cygdrive/d/home/usr/share/info:/usr/share/info:/usr/local/share/info MANPATH=:/cygdrive/d/home/usr/share/man:/usr/share/man:/usr/local/share/man --8<---------------cut here---------------end--------------->8--- Trailing ``:`` ensure that default search path included in search. In that way these variables can be used both by Cygwin/MSYS ``info``/``emacs`` and native Emacs. See example in: http://hg.defun.work/skel/file/e40a0cc2ec05/.env Because I have personal info pages store and always use ``cygwin-mount.el`` on Windows I have: --8<---------------cut here---------------start------------->8--- (unless (getenv "INFOPATH") (if (eq system-type 'windows-nt) (setenv "INFOPATH" (concat (expand-file-name "~/usr/share/info") ":/usr/share/info:")) (setenv "INFOPATH" (expand-file-name "~/usr/share/info:")))) ;; Assume that cygwin-mount already activated. (when (featurep 'cygwin-mount) (setenv "INFOPATH" "/usr/share/info/:~/usr/share/info/:") ;; Redefine path-separator to UNIX to update Info-directory-list. (let ( (path-separator ":") ) (require 'info) (info-initialize) )) --8<---------------cut here---------------end--------------->8--- -- http://defun.work/