diff options
| author | Paul Eggert | 2016-03-10 07:34:52 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-03-10 07:59:19 -0800 |
| commit | 7352c6c695db8b90b63c2601277d64a32507d2bb (patch) | |
| tree | 1dc5f7af755a70f67efe13882099ff4920230571 /src/fileio.c | |
| parent | a589e9aed5255fb1ebfb38fa4b3c9df5f6ef7448 (diff) | |
| download | emacs-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.c | 22 |
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 | ||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | 7 | GNU Emacs is free software: you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation, either version 3 of the License, or | 9 | the Free Software Foundation, either version 3 of the License, or (at |
| 10 | (at your option) any later version. | 10 | your option) any later version. |
| 11 | 11 | ||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | 12 | GNU Emacs is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| @@ -450,7 +450,7 @@ DEFUN ("unhandled-file-name-directory", Funhandled_file_name_directory, | |||
| 450 | A `directly usable' directory name is one that may be used without the | 450 | A `directly usable' directory name is one that may be used without the |
| 451 | intervention of any file handler. | 451 | intervention of any file handler. |
| 452 | If FILENAME is a directly usable file itself, return | 452 | If FILENAME is a directly usable file itself, return |
| 453 | (file-name-as-directory FILENAME). | 453 | \(file-name-as-directory FILENAME). |
| 454 | If FILENAME refers to a file which is not accessible from a local process, | 454 | If FILENAME refers to a file which is not accessible from a local process, |
| 455 | then this should return nil. | 455 | then this should return nil. |
| 456 | The `call-process' and `start-process' functions use this function to | 456 | The `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). |
| 742 | The Emacs process number forms part of the result, so there is no | 742 | The Emacs process number forms part of the result, so there is no |
| 743 | danger of generating a name being used by another Emacs process | 743 | danger 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 | ||
| 746 | This function tries to choose a name that has no existing file. | 746 | This function tries to choose a name that has no existing file. |
| 747 | For this to work, PREFIX should be an absolute file name. | 747 | For this to work, PREFIX should be an absolute file name. |
| @@ -757,7 +757,7 @@ normally use `make-temp-file' instead. */) | |||
| 757 | DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, | 757 | DEFUN ("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. |
| 759 | Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative | 759 | Second 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 |
| 761 | a directory's file name are accepted. If DEFAULT-DIRECTORY is nil or | 761 | a directory's file name are accepted. If DEFAULT-DIRECTORY is nil or |
| 762 | missing, the current buffer's value of `default-directory' is used. | 762 | missing, the current buffer's value of `default-directory' is used. |
| 763 | NAME should be a string that is a valid file name for the underlying | 763 | NAME 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 | ||
| 776 | For technical reasons, this function can return correct but | 776 | For technical reasons, this function can return correct but |
| 777 | non-intuitive results for the root directory; for instance, | 777 | non-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 |
| 780 | filesystem tree, not (expand-file-name ".." dirname). */) | 780 | filesystem 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). */) | |||
| 1459 | DEAFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, | 1459 | DEAFUN ("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\ |
| 1461 | Second arg DEFAULT is directory to start with if FILENAME is relative\n\ | 1461 | Second 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\ |
| 1463 | the current buffer's value of default-directory is used.\n\ | 1463 | the current buffer's value of default-directory is used.\n\ |
| 1464 | Filenames containing `.' or `..' as components are simplified;\n\ | 1464 | Filenames containing `.' or `..' as components are simplified;\n\ |
| 1465 | initial `~/' expands to your home directory.\n\ | 1465 | initial `~/' expands to your home directory.\n\ |
| @@ -2468,7 +2468,7 @@ Use `file-symlink-p' to test for such links. */) | |||
| 2468 | DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0, | 2468 | DEFUN ("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. |
| 2470 | For a directory, this means you can access files in that directory. | 2470 | For 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 |
| 2472 | purpose, though.) */) | 2472 | purpose, though.) */) |
| 2473 | (Lisp_Object filename) | 2473 | (Lisp_Object filename) |
| 2474 | { | 2474 | { |
| @@ -5329,8 +5329,8 @@ DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, | |||
| 5329 | Useful if the buffer was not read from the file normally | 5329 | Useful if the buffer was not read from the file normally |
| 5330 | or if the file itself has been changed for some known benign reason. | 5330 | or if the file itself has been changed for some known benign reason. |
| 5331 | An argument specifies the modification time value to use | 5331 | An 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 | { |