aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKarl Heuer1994-04-29 03:40:16 +0000
committerKarl Heuer1994-04-29 03:40:16 +0000
commitd7ab90a9b446c8016b31f2623777a206dfcd54dc (patch)
tree04df1ca0af4bce6eef5b28df5ff8951a3fd2f3d8 /src/keymap.c
parent57c9eb68947b563528cc2023f38e6164bc0d9110 (diff)
downloademacs-d7ab90a9b446c8016b31f2623777a206dfcd54dc.tar.gz
emacs-d7ab90a9b446c8016b31f2623777a206dfcd54dc.zip
(describe_buffer_bindings): gcpro stuff. Delete some unused code.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 932aace2782..7169e6cb49f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1752,7 +1752,8 @@ describe_buffer_bindings (arg)
1752 Lisp_Object arg; 1752 Lisp_Object arg;
1753{ 1753{
1754 Lisp_Object descbuf, prefix, shadow; 1754 Lisp_Object descbuf, prefix, shadow;
1755 register Lisp_Object start1, start2; 1755 register Lisp_Object start1;
1756 struct gcpro gcpro1;
1756 1757
1757 char *alternate_heading 1758 char *alternate_heading
1758 = "\ 1759 = "\
@@ -1763,6 +1764,7 @@ nominal alternate\n\
1763 descbuf = XCONS (arg)->car; 1764 descbuf = XCONS (arg)->car;
1764 prefix = XCONS (arg)->cdr; 1765 prefix = XCONS (arg)->cdr;
1765 shadow = Qnil; 1766 shadow = Qnil;
1767 GCPRO1 (shadow);
1766 1768
1767 Fset_buffer (Vstandard_output); 1769 Fset_buffer (Vstandard_output);
1768 1770
@@ -1819,21 +1821,15 @@ nominal alternate\n\
1819 because it takes care of other features when doing so. */ 1821 because it takes care of other features when doing so. */
1820 char *title, *p; 1822 char *title, *p;
1821 1823
1822 if (XTYPE (modes[i]) == Lisp_Symbol) 1824 if (XTYPE (modes[i]) != Lisp_Symbol)
1823 { 1825 abort();
1824 p = title = (char *) alloca (40 + XSYMBOL (modes[i])->name->size); 1826
1825 *p++ = '`'; 1827 p = title = (char *) alloca (40 + XSYMBOL (modes[i])->name->size);
1826 bcopy (XSYMBOL (modes[i])->name->data, p, 1828 *p++ = '`';
1827 XSYMBOL (modes[i])->name->size); 1829 bcopy (XSYMBOL (modes[i])->name->data, p,
1828 p += XSYMBOL (modes[i])->name->size; 1830 XSYMBOL (modes[i])->name->size);
1829 *p++ = '\''; 1831 p += XSYMBOL (modes[i])->name->size;
1830 } 1832 *p++ = '\'';
1831 else
1832 {
1833 p = title = (char *) alloca (40 + 20);
1834 bcopy ("Strangely Named", p, sizeof ("Strangely Named") - 1);
1835 p += sizeof ("Strangely Named") - 1;
1836 }
1837 bcopy (" Minor Mode Bindings", p, sizeof (" Minor Mode Bindings") - 1); 1833 bcopy (" Minor Mode Bindings", p, sizeof (" Minor Mode Bindings") - 1);
1838 p += sizeof (" Minor Mode Bindings") - 1; 1834 p += sizeof (" Minor Mode Bindings") - 1;
1839 *p = 0; 1835 *p = 0;
@@ -1860,6 +1856,7 @@ nominal alternate\n\
1860 "Global Bindings", 0); 1856 "Global Bindings", 0);
1861 1857
1862 Fset_buffer (descbuf); 1858 Fset_buffer (descbuf);
1859 UNGCPRO;
1863 return Qnil; 1860 return Qnil;
1864} 1861}
1865 1862