texinfo: Allow markup in the arguments of `@pxref'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 21 Mar 2013 15:37:48 +0000 (16:37 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 21 Mar 2013 17:52:29 +0000 (18:52 +0100)
* module/texinfo.scm (texi-command-specs)[pxref]: Change to
  `INLINE-TEXT-ARGS'.
* test-suite/tests/texinfo.test ("test-texinfo->stexinfo")["@pxref{Locales,
  @code{setlocale}}"]: New test.

module/texinfo.scm
test-suite/tests/texinfo.test

index edee5b3..cb7a775 100644 (file)
@@ -216,7 +216,8 @@ lambda. Only present for @code{INLINE-ARGS}, @code{EOL-ARGS},
     (value              INLINE-ARGS . (key))
     (ref                INLINE-ARGS . (node #:opt name section info-file manual))
     (xref               INLINE-ARGS . (node #:opt name section info-file manual))
-    (pxref              INLINE-ARGS . (node #:opt name section info-file manual))
+    (pxref              INLINE-TEXT-ARGS
+                        . (node #:opt name section info-file manual))
     (url                ALIAS       . uref)
     (uref               INLINE-ARGS . (url #:opt title replacement))
     (anchor             INLINE-ARGS . (name))
index 9776f89..ebe4671 100644 (file)
                           (name "foo")
                           (arguments "bar " (code "baz"))))
                (para "text that should be in a para")))
+  (test-body "@pxref{Locales, @code{setlocale}}"
+             '((para (pxref (% (node "Locales")
+                               (name (code "setlocale")))))))
   )