aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorPaul Eggert2016-03-10 07:34:52 -0800
committerPaul Eggert2016-03-10 07:59:19 -0800
commit7352c6c695db8b90b63c2601277d64a32507d2bb (patch)
tree1dc5f7af755a70f67efe13882099ff4920230571 /src/fileio.c
parenta589e9aed5255fb1ebfb38fa4b3c9df5f6ef7448 (diff)
downloademacs-7352c6c695db8b90b63c2601277d64a32507d2bb.tar.gz
emacs-7352c6c695db8b90b63c2601277d64a32507d2bb.zip
Rework C source files to avoid ^(
Work around Bug#22884 by rewording comments and strings to avoid ‘(’ at the start of a line unless it starts a function. This change is a short-term hack; in the longer run we plan to fix cc-mode’s performance for C files that have ‘(’ at the start of a line in a comment or string.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 0372f46cd55..dfab3de9e94 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6,8 +6,8 @@ This file is part of GNU Emacs.
6 6
7GNU Emacs is free software: you can redistribute it and/or modify 7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or 9the Free Software Foundation, either version 3 of the License, or (at
10(at your option) any later version. 10your option) any later version.
11 11
12GNU Emacs is distributed in the hope that it will be useful, 12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of 13but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -450,7 +450,7 @@ DEFUN ("unhandled-file-name-directory", Funhandled_file_name_directory,
450A `directly usable' directory name is one that may be used without the 450A `directly usable' directory name is one that may be used without the
451intervention of any file handler. 451intervention of any file handler.
452If FILENAME is a directly usable file itself, return 452If FILENAME is a directly usable file itself, return
453(file-name-as-directory FILENAME). 453\(file-name-as-directory FILENAME).
454If FILENAME refers to a file which is not accessible from a local process, 454If FILENAME refers to a file which is not accessible from a local process,
455then this should return nil. 455then this should return nil.
456The `call-process' and `start-process' functions use this function to 456The `call-process' and `start-process' functions use this function to
@@ -741,7 +741,7 @@ DEFUN ("make-temp-name", Fmake_temp_name, Smake_temp_name, 1, 1, 0,
741 doc: /* Generate temporary file name (string) starting with PREFIX (a string). 741 doc: /* Generate temporary file name (string) starting with PREFIX (a string).
742The Emacs process number forms part of the result, so there is no 742The Emacs process number forms part of the result, so there is no
743danger of generating a name being used by another Emacs process 743danger of generating a name being used by another Emacs process
744(so long as only a single host can access the containing directory...). 744\(so long as only a single host can access the containing directory...).
745 745
746This function tries to choose a name that has no existing file. 746This function tries to choose a name that has no existing file.
747For this to work, PREFIX should be an absolute file name. 747For this to work, PREFIX should be an absolute file name.
@@ -757,7 +757,7 @@ normally use `make-temp-file' instead. */)
757DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, 757DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0,
758 doc: /* Convert filename NAME to absolute, and canonicalize it. 758 doc: /* Convert filename NAME to absolute, and canonicalize it.
759Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative 759Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative
760(does not start with slash or tilde); both the directory name and 760\(does not start with slash or tilde); both the directory name and
761a directory's file name are accepted. If DEFAULT-DIRECTORY is nil or 761a directory's file name are accepted. If DEFAULT-DIRECTORY is nil or
762missing, the current buffer's value of `default-directory' is used. 762missing, the current buffer's value of `default-directory' is used.
763NAME should be a string that is a valid file name for the underlying 763NAME should be a string that is a valid file name for the underlying
@@ -775,8 +775,8 @@ See also the function `substitute-in-file-name'.
775 775
776For technical reasons, this function can return correct but 776For technical reasons, this function can return correct but
777non-intuitive results for the root directory; for instance, 777non-intuitive results for the root directory; for instance,
778(expand-file-name ".." "/") returns "/..". For this reason, use 778\(expand-file-name ".." "/") returns "/..". For this reason, use
779(directory-file-name (file-name-directory dirname)) to traverse a 779\(directory-file-name (file-name-directory dirname)) to traverse a
780filesystem tree, not (expand-file-name ".." dirname). */) 780filesystem tree, not (expand-file-name ".." dirname). */)
781 (Lisp_Object name, Lisp_Object default_directory) 781 (Lisp_Object name, Lisp_Object default_directory)
782{ 782{
@@ -1459,7 +1459,7 @@ filesystem tree, not (expand-file-name ".." dirname). */)
1459DEAFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, 1459DEAFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0,
1460 "Convert FILENAME to absolute, and canonicalize it.\n\ 1460 "Convert FILENAME to absolute, and canonicalize it.\n\
1461Second arg DEFAULT is directory to start with if FILENAME is relative\n\ 1461Second arg DEFAULT is directory to start with if FILENAME is relative\n\
1462(does not start with slash); if DEFAULT is nil or missing,\n\ 1462\(does not start with slash); if DEFAULT is nil or missing,\n\
1463the current buffer's value of default-directory is used.\n\ 1463the current buffer's value of default-directory is used.\n\
1464Filenames containing `.' or `..' as components are simplified;\n\ 1464Filenames containing `.' or `..' as components are simplified;\n\
1465initial `~/' expands to your home directory.\n\ 1465initial `~/' expands to your home directory.\n\
@@ -2468,7 +2468,7 @@ Use `file-symlink-p' to test for such links. */)
2468DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0, 2468DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0,
2469 doc: /* Return t if FILENAME can be executed by you. 2469 doc: /* Return t if FILENAME can be executed by you.
2470For a directory, this means you can access files in that directory. 2470For a directory, this means you can access files in that directory.
2471(It is generally better to use `file-accessible-directory-p' for that 2471\(It is generally better to use `file-accessible-directory-p' for that
2472purpose, though.) */) 2472purpose, though.) */)
2473 (Lisp_Object filename) 2473 (Lisp_Object filename)
2474{ 2474{
@@ -5329,8 +5329,8 @@ DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime,
5329Useful if the buffer was not read from the file normally 5329Useful if the buffer was not read from the file normally
5330or if the file itself has been changed for some known benign reason. 5330or if the file itself has been changed for some known benign reason.
5331An argument specifies the modification time value to use 5331An argument specifies the modification time value to use
5332(instead of that of the visited file), in the form of a list 5332\(instead of that of the visited file), in the form of a list
5333(HIGH LOW USEC PSEC) or an integer flag as returned by 5333\(HIGH LOW USEC PSEC) or an integer flag as returned by
5334`visited-file-modtime'. */) 5334`visited-file-modtime'. */)
5335 (Lisp_Object time_flag) 5335 (Lisp_Object time_flag)
5336{ 5336{