# HG changeset patch
# User David Loeffler <d.loeffler.01@cantab.net>
# Date 1332841672 -3600
# Node ID 9e6c6a0744440b0254ab72303825f73e07526b5b
# Parent  66e568c3d082ee389659bd257efa500e5a8e5955
#12757: fix broken links in the reference manual under sage/modular/

diff --git a/doc/en/reference/libs.rst b/doc/en/reference/libs.rst
--- a/doc/en/reference/libs.rst
+++ b/doc/en/reference/libs.rst
@@ -25,6 +25,7 @@
 .. toctree::
    :maxdepth: 2
    
+   sage/libs/flint/fmpz_poly
    sage/libs/pari/gen
    sage/libs/ntl/all
    sage/libs/mwrank/all
diff --git a/doc/en/reference/structure.rst b/doc/en/reference/structure.rst
--- a/doc/en/reference/structure.rst
+++ b/doc/en/reference/structure.rst
@@ -6,6 +6,8 @@
 
    sage/structure/sage_object
    sage/structure/category_object
+   sage/structure/parent_old
+   sage/structure/parent_base
    sage/structure/parent_gens
    sage/structure/formal_sum
    sage/structure/factorization
diff --git a/sage/libs/flint/fmpz_poly.pyx b/sage/libs/flint/fmpz_poly.pyx
--- a/sage/libs/flint/fmpz_poly.pyx
+++ b/sage/libs/flint/fmpz_poly.pyx
@@ -1,10 +1,11 @@
 """
-FLINT wrapper
+FLINT fmpz_poly class wrapper
 
 AUTHORS: 
-   -- Robert Bradshaw (2007-09-15) Initial version.
-   -- William Stein (2007-10-02) update for new flint; add arithmetic and
-          creation of coefficients of arbitrary size.
+
+- Robert Bradshaw (2007-09-15) Initial version.
+- William Stein (2007-10-02) update for new flint; add arithmetic and creation
+  of coefficients of arbitrary size.
 """
 
 
diff --git a/sage/modular/local_comp/smoothchar.py b/sage/modular/local_comp/smoothchar.py
--- a/sage/modular/local_comp/smoothchar.py
+++ b/sage/modular/local_comp/smoothchar.py
@@ -999,8 +999,8 @@
         Return the character group of the same field, but with values in a
         different coefficient ring. This need not have anything to do with the
         original base ring, and in particular there won't generally be a
-        coercion map from self to the new group -- use :meth:`base_extend` if
-        you want this.
+        coercion map from self to the new group -- use
+        :meth:`~SmoothCharacterGroupGeneric.base_extend` if you want this.
         
         EXAMPLE::
         
@@ -1055,8 +1055,8 @@
         r"""
         Return the ideal `p^c` of ``self.number_field()``. The result is
         cached, since we use the methods
-        :meth:`~sage.rings.number_field.number_field_ideal.idealstar` and
-        :meth:`~sage.rings.number_field.number_field_ideal.ideallog` which
+        :meth:`~sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal.idealstar` and
+        :meth:`~sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal.ideallog` which
         cache a Pari ``bid`` structure.
         
         EXAMPLES::
@@ -1409,8 +1409,8 @@
         Return the character group of the same field, but with values in a
         different coefficient ring. This need not have anything to do with the
         original base ring, and in particular there won't generally be a
-        coercion map from self to the new group -- use :meth:`base_extend` if
-        you want this.
+        coercion map from self to the new group -- use
+        :meth:`~SmoothCharacterGroupGeneric.base_extend` if you want this.
         
         EXAMPLE::
         
@@ -1456,8 +1456,8 @@
         r"""
         Return the ideal `p^c` of ``self.number_field()``. The result is
         cached, since we use the methods
-        :meth:`~sage.rings.number_field.number_field_ideal.idealstar` and
-        :meth:`~sage.rings.number_field.number_field_ideal.ideallog` which
+        :meth:`~sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal.idealstar` and
+        :meth:`~sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal.ideallog` which
         cache a Pari ``bid`` structure.
         
         EXAMPLES::
diff --git a/sage/modular/modform/cuspidal_submodule.py b/sage/modular/modform/cuspidal_submodule.py
--- a/sage/modular/modform/cuspidal_submodule.py
+++ b/sage/modular/modform/cuspidal_submodule.py
@@ -180,10 +180,11 @@
     def change_ring(self, R):
         r"""
         Change the base ring of self to R, when this makes sense. This differs
-        from :meth:`~base_extend` in that there may not be a canonical map from
-        self to the new space, as in the first example below. If this space has
-        a character then this may fail when the character cannot be defined
-        over R, as in the second example.
+        from :meth:`~sage.modular.modform.space.ModularFormsSpace.base_extend`
+        in that there may not be a canonical map from self to the new space, as
+        in the first example below. If this space has a character then this may
+        fail when the character cannot be defined over R, as in the second
+        example.
 
         EXAMPLES::
         
diff --git a/sage/structure/parent_base.pyx b/sage/structure/parent_base.pyx
--- a/sage/structure/parent_base.pyx
+++ b/sage/structure/parent_base.pyx
@@ -1,3 +1,6 @@
+r"""
+Base class for old-style parent objects with a base ring
+"""
 ###############################################################################
 #   Sage: System for Algebra and Geometry Experimentation    
 #       Copyright (C) 2006 William Stein <wstein@gmail.com>
diff --git a/sage/structure/parent_gens.pyx b/sage/structure/parent_gens.pyx
--- a/sage/structure/parent_gens.pyx
+++ b/sage/structure/parent_gens.pyx
@@ -1,5 +1,5 @@
 r"""
-Base class for parent objects with generators
+Base class for old-style parent objects with generators
 
 .. note::
 
@@ -79,8 +79,8 @@
 
 def is_ParentWithGens(x):
     """
-    Return True if x is a parent object with generators, i.e., derives
-    from :mod:`sage.structure.parent.ParentWithGens` and False otherwise.
+    Return True if x is a parent object with generators, i.e., derives from
+    :class:`sage.structure.parent_gens.ParentWithGens` and False otherwise.
     
     EXAMPLES::
     
@@ -96,9 +96,9 @@
 
 def is_ParentWithAdditiveAbelianGens(x):
     """
-    Return True if x is a parent object with additive abelian
-    generators, i.e., derives from
-    :mod:`sage.structure.parent.ParentWithAdditiveAbelianGens` and False
+    Return True if x is a parent object with additive abelian generators, i.e.,
+    derives from
+    :mod:`sage.structure.parent_gens.ParentWithAdditiveAbelianGens` and False
     otherwise.
     
     EXAMPLES::
@@ -113,10 +113,10 @@
 
 def is_ParentWithMultiplicativeAbelianGens(x):
     """
-    Return True if x is a parent object with additive abelian
-    generators, i.e., derives from
-    :mod:`sage.structure.parent.ParentWithMultiplicativeAbelianGens` and False
-    otherwise.
+    Return True if x is a parent object with additive abelian generators, i.e.,
+    derives from
+    :class:`sage.structure.parent_gens.ParentWithMultiplicativeAbelianGens` and
+    False otherwise.
     
     EXAMPLES::
     
diff --git a/sage/structure/parent_old.pyx b/sage/structure/parent_old.pyx
--- a/sage/structure/parent_old.pyx
+++ b/sage/structure/parent_old.pyx
@@ -1,5 +1,5 @@
 r"""
-Base class for parent objects
+Base class for old-style parent objects
 
 CLASS HIERARCHY:
 
@@ -96,7 +96,7 @@
     
     cpdef coerce_map_from_c(self, S):
         """
-        EXAMPLES::
+        EXAMPLES:
 
         Check to make sure that we handle coerce maps from Python
         native types correctly::
