aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2001-11-26 23:37:01 +0000
committerStefan Monnier2001-11-26 23:37:01 +0000
commit394e256115f5b9ace4bfe715cba6fc8e6095f283 (patch)
tree108fb82e55d9cdc9c9259f2a104c43df03f26daa /src
parent845975f566069b9b48c21dc2ba239d23c2bd823c (diff)
downloademacs-394e256115f5b9ace4bfe715cba6fc8e6095f283.tar.gz
emacs-394e256115f5b9ace4bfe715cba6fc8e6095f283.zip
(syms_of_syntax): Remove defsubr of Sdescribe_syntax.
(describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/syntax.c b/src/syntax.c
index d82c88dcf18..30b9eb1f4c4 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1170,49 +1170,6 @@ DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value,
1170 1170
1171 return syntax; 1171 return syntax;
1172} 1172}
1173
1174
1175static void
1176describe_syntax (value, args)
1177 Lisp_Object value, args;
1178{
1179 Findent_to (make_number (16), make_number (1));
1180 Finternal_describe_syntax_value (value);
1181 insert_string ("\n");
1182}
1183
1184
1185static Lisp_Object
1186describe_syntax_1 (vector)
1187 Lisp_Object vector;
1188{
1189 struct buffer *old = current_buffer;
1190 set_buffer_internal (XBUFFER (Vstandard_output));
1191 describe_vector (vector, Qnil, Qnil, describe_syntax,
1192 0, Qnil, Qnil, NULL, 0);
1193 while (! NILP (XCHAR_TABLE (vector)->parent))
1194 {
1195 vector = XCHAR_TABLE (vector)->parent;
1196 insert_string ("\nThe parent syntax table is:");
1197 describe_vector (vector, Qnil, Qnil, describe_syntax,
1198 0, Qnil, Qnil, NULL, 0);
1199 }
1200
1201 call0 (intern ("help-mode"));
1202 set_buffer_internal (old);
1203 return Qnil;
1204}
1205
1206DEFUN ("describe-syntax", Fdescribe_syntax, Sdescribe_syntax, 0, 0, "",
1207 doc: /* Describe the syntax specifications in the syntax table.
1208The descriptions are inserted in a buffer, which is then displayed. */)
1209 ()
1210{
1211 internal_with_output_to_temp_buffer
1212 ("*Help*", describe_syntax_1, current_buffer->syntax_table);
1213
1214 return Qnil;
1215}
1216 1173
1217int parse_sexp_ignore_comments; 1174int parse_sexp_ignore_comments;
1218 1175
@@ -3038,7 +2995,6 @@ See the info node `(elisp)Syntax Properties' for a description of the
3038 defsubr (&Smatching_paren); 2995 defsubr (&Smatching_paren);
3039 defsubr (&Sstring_to_syntax); 2996 defsubr (&Sstring_to_syntax);
3040 defsubr (&Smodify_syntax_entry); 2997 defsubr (&Smodify_syntax_entry);
3041 defsubr (&Sdescribe_syntax);
3042 defsubr (&Sinternal_describe_syntax_value); 2998 defsubr (&Sinternal_describe_syntax_value);
3043 2999
3044 defsubr (&Sforward_word); 3000 defsubr (&Sforward_word);