diff options
| author | Stefan Monnier | 2011-03-06 16:22:16 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-06 16:22:16 -0500 |
| commit | 0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d (patch) | |
| tree | 306b87fc2903ad23343f3c84be1cccfa72e5a97e /src/print.c | |
| parent | 798cb64441228d473f7bdd213183c70fb582595c (diff) | |
| parent | 892777baa1739fa5f1f2d1c2975488c3e6f57bae (diff) | |
| download | emacs-0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d.tar.gz emacs-0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d.zip | |
Merge from trunk
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/src/print.c b/src/print.c index 00847d67318..602575b5b08 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1630,26 +1630,6 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag | |||
| 1630 | { | 1630 | { |
| 1631 | PRINTCHAR ('('); | 1631 | PRINTCHAR ('('); |
| 1632 | 1632 | ||
| 1633 | /* If the first element is a backquote form, | ||
| 1634 | print it old-style so it won't be misunderstood. */ | ||
| 1635 | if (print_quoted && CONSP (XCAR (obj)) | ||
| 1636 | && CONSP (XCDR (XCAR (obj))) | ||
| 1637 | && NILP (XCDR (XCDR (XCAR (obj)))) | ||
| 1638 | && EQ (XCAR (XCAR (obj)), Qbackquote)) | ||
| 1639 | { | ||
| 1640 | Lisp_Object tem; | ||
| 1641 | tem = XCAR (obj); | ||
| 1642 | PRINTCHAR ('('); | ||
| 1643 | |||
| 1644 | print_object (Qbackquote, printcharfun, 0); | ||
| 1645 | PRINTCHAR (' '); | ||
| 1646 | |||
| 1647 | print_object (XCAR (XCDR (tem)), printcharfun, 0); | ||
| 1648 | PRINTCHAR (')'); | ||
| 1649 | |||
| 1650 | obj = XCDR (obj); | ||
| 1651 | } | ||
| 1652 | |||
| 1653 | { | 1633 | { |
| 1654 | EMACS_INT print_length; | 1634 | EMACS_INT print_length; |
| 1655 | int i; | 1635 | int i; |
| @@ -1853,25 +1833,25 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag | |||
| 1853 | if (!NILP (h->test)) | 1833 | if (!NILP (h->test)) |
| 1854 | { | 1834 | { |
| 1855 | strout (" test ", -1, -1, printcharfun, 0); | 1835 | strout (" test ", -1, -1, printcharfun, 0); |
| 1856 | print_object (h->test, printcharfun, 0); | 1836 | print_object (h->test, printcharfun, escapeflag); |
| 1857 | } | 1837 | } |
| 1858 | 1838 | ||
| 1859 | if (!NILP (h->weak)) | 1839 | if (!NILP (h->weak)) |
| 1860 | { | 1840 | { |
| 1861 | strout (" weakness ", -1, -1, printcharfun, 0); | 1841 | strout (" weakness ", -1, -1, printcharfun, 0); |
| 1862 | print_object (h->weak, printcharfun, 0); | 1842 | print_object (h->weak, printcharfun, escapeflag); |
| 1863 | } | 1843 | } |
| 1864 | 1844 | ||
| 1865 | if (!NILP (h->rehash_size)) | 1845 | if (!NILP (h->rehash_size)) |
| 1866 | { | 1846 | { |
| 1867 | strout (" rehash-size ", -1, -1, printcharfun, 0); | 1847 | strout (" rehash-size ", -1, -1, printcharfun, 0); |
| 1868 | print_object (h->rehash_size, printcharfun, 0); | 1848 | print_object (h->rehash_size, printcharfun, escapeflag); |
| 1869 | } | 1849 | } |
| 1870 | 1850 | ||
| 1871 | if (!NILP (h->rehash_threshold)) | 1851 | if (!NILP (h->rehash_threshold)) |
| 1872 | { | 1852 | { |
| 1873 | strout (" rehash-threshold ", -1, -1, printcharfun, 0); | 1853 | strout (" rehash-threshold ", -1, -1, printcharfun, 0); |
| 1874 | print_object (h->rehash_threshold, printcharfun, 0); | 1854 | print_object (h->rehash_threshold, printcharfun, escapeflag); |
| 1875 | } | 1855 | } |
| 1876 | 1856 | ||
| 1877 | strout (" data ", -1, -1, printcharfun, 0); | 1857 | strout (" data ", -1, -1, printcharfun, 0); |
| @@ -1890,9 +1870,9 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag | |||
| 1890 | if (!NILP (HASH_HASH (h, i))) | 1870 | if (!NILP (HASH_HASH (h, i))) |
| 1891 | { | 1871 | { |
| 1892 | if (i) PRINTCHAR (' '); | 1872 | if (i) PRINTCHAR (' '); |
| 1893 | print_object (HASH_KEY (h, i), printcharfun, 1); | 1873 | print_object (HASH_KEY (h, i), printcharfun, escapeflag); |
| 1894 | PRINTCHAR (' '); | 1874 | PRINTCHAR (' '); |
| 1895 | print_object (HASH_VALUE (h, i), printcharfun, 1); | 1875 | print_object (HASH_VALUE (h, i), printcharfun, escapeflag); |
| 1896 | } | 1876 | } |
| 1897 | 1877 | ||
| 1898 | if (size < real_size) | 1878 | if (size < real_size) |