all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17476: 24.3.91; [PATCH] unimplemented info entry
@ 2014-05-12 15:54 Shigeru Fukaya
  2014-05-12 16:54 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Shigeru Fukaya @ 2014-05-12 15:54 UTC (permalink / raw)
  To: 17476

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

Emacs info doesn't recognize info file entries without parentheses in
dir node.  In Cygwin, libc and libm entries in dir are just like:;

* libc::            The ANSI C library.
* libm::            An ANSI-C conforming mathematical library.

Cygwin info command treat them as info files.
With the attached patch, Emacs regards the above format in a dir node
as info file names.

-- Shigeru


[-- Attachment #2: info.diff --]
[-- Type: application/octet-stream, Size: 1207 bytes --]

--- orig/info.el	2014-03-21 14:34:40.000000000 +0900
+++ ./info.el	2014-05-13 00:33:22.388414600 +0900
@@ -2633,8 +2633,10 @@ Because of ambiguities, this should be c
      (or (and (not (equal (match-string-no-properties 2) ""))
 	      (match-string-no-properties 2))
 	 ;; If the node name is the menu entry name (using `entry::').
-	 (buffer-substring-no-properties
-	  (match-beginning 0) (1- (match-beginning 1)))))))
+	 ;; In "dir" node, `* name::' to "(name)" node.
+	 (format (if (equal Info-current-file "dir") "(%s)" "%s")
+		 (buffer-substring-no-properties
+		  (match-beginning 0) (1- (match-beginning 1))))))))
 
 ;; No one calls this.
 ;;(defun Info-menu-item-sequence (list)
@@ -3898,7 +3900,11 @@ If FORK is non-nil, it is passed to `Inf
 	  (setq node nil))))
      ;; menu item: node name
      ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::"))
-      (Info-goto-node node fork))
+      ;; `* name::' to "(name)" in "dir" node.
+      (Info-goto-node (if (equal Info-current-node "dir")
+			  (format "(%s)" node)
+			node)
+		      fork))
      ;; menu item: node name or index entry
      ((Info-get-token (point) "\\* +" "\\* +\\(.*\\): ")
       (beginning-of-line)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-12 19:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-12 15:54 bug#17476: 24.3.91; [PATCH] unimplemented info entry Shigeru Fukaya
2014-05-12 16:54 ` Eli Zaretskii
2014-05-12 17:34   ` Eli Zaretskii
2014-05-12 17:53   ` Shigeru Fukaya
2014-05-12 18:20     ` Shigeru Fukaya
2014-05-12 18:30     ` Eli Zaretskii
2014-05-12 19:01     ` Andreas Schwab

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.