]> git.eshelyaron.com Git - emacs.git/commitdiff
(print): If print_escapes_newlines, print '\f' as "\\f".
authorRoland McGrath <roland@gnu.org>
Tue, 8 Feb 1994 22:42:28 +0000 (22:42 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 8 Feb 1994 22:42:28 +0000 (22:42 +0000)
(syms_of_print): Update docstring.

src/print.c

index 1ea6d8573ef278b453862f3b45831b6212ce7598..8e4a05fe3af071c2bd263b72f98c4a0634ce9fa4 100644 (file)
@@ -1,5 +1,5 @@
 /* Lisp object printing and output streams.
-   Copyright (C) 1985, 1986, 1988, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1985, 1986, 1988, 1993, 1994 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -793,6 +793,11 @@ print (obj, printcharfun, escapeflag)
                  PRINTCHAR ('\\');
                  PRINTCHAR ('n');
                }
+             else if (c == '\f' && print_escape_newlines)
+               {
+                 PRINTCHAR ('\\');
+                 PRINTCHAR ('f');
+               }
              else
                {
                  if (c == '\"' || c == '\\')
@@ -1069,7 +1074,8 @@ A value of nil means no limit.");
   Vprint_level = Qnil;
 
   DEFVAR_BOOL ("print-escape-newlines", &print_escape_newlines,
-    "Non-nil means print newlines in strings as backslash-n.");
+    "Non-nil means print newlines in strings as backslash-n.
+Also print formfeeds as backslash-f.");
   print_escape_newlines = 0;
 
   /* prin1_to_string_buffer initialized in init_buffer_once in buffer.c */