emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/aptel/dynamic-modules-rc3 b8286d2 08/25: doc.c: do


From: Teodor Zlatanov
Subject: [Emacs-diffs] feature/aptel/dynamic-modules-rc3 b8286d2 08/25: doc.c: don't prefix doc path by ../etc/ for modules
Date: Wed, 04 Feb 2015 22:56:12 +0000

branch: feature/aptel/dynamic-modules-rc3
commit b8286d22206981b277629eea7f4a8ec219663997
Author: Aurélien Aptel <address@hidden>
Commit: Aurélien Aptel <address@hidden>

    doc.c: don't prefix doc path by ../etc/ for modules
---
 src/doc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/doc.c b/src/doc.c
index bc74553..5290b5d 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -118,11 +118,11 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool 
definition)
     return Qnil;
 
   /* Put the file name in NAME as a C string.
-     If it is relative, combine it with Vdoc_directory.  */
+     If it is relative and not from a module, combine it with Vdoc_directory.  
*/
 
   tem = Ffile_name_absolute_p (file);
   file = ENCODE_FILE (file);
-  if (NILP (tem))
+  if (NILP (tem) && !doc_is_from_module_p (SSDATA (file)))
     {
       Lisp_Object docdir = ENCODE_FILE (Vdoc_directory);
       minsize = SCHARS (docdir);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]