aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorJoakim Verona2012-08-19 02:44:11 +0200
committerJoakim Verona2012-08-19 02:44:11 +0200
commit5436d1df5e2ba0b4d4f72b03a1cd09b20403654b (patch)
tree532faa27319b3bb199d414dc85e63a58246d30b0 /src/doc.c
parentd02344322b0d2fea8dd9ad9dd0a6c70e058f967b (diff)
parente757f1c6f393cf82057dbee0a4325b07f0fd55c4 (diff)
downloademacs-5436d1df5e2ba0b4d4f72b03a1cd09b20403654b.tar.gz
emacs-5436d1df5e2ba0b4d4f72b03a1cd09b20403654b.zip
upstream
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index d17e90f11c0..ed311d918d7 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -22,11 +22,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23#include <sys/types.h> 23#include <sys/types.h>
24#include <sys/file.h> /* Must be after sys/types.h for USG*/ 24#include <sys/file.h> /* Must be after sys/types.h for USG*/
25#include <ctype.h>
26#include <setjmp.h> 25#include <setjmp.h>
27#include <fcntl.h> 26#include <fcntl.h>
28#include <unistd.h> 27#include <unistd.h>
29 28
29#include <c-ctype.h>
30
30#include "lisp.h" 31#include "lisp.h"
31#include "character.h" 32#include "character.h"
32#include "buffer.h" 33#include "buffer.h"
@@ -597,9 +598,9 @@ the same file name is found in the `doc-directory'. */)
597 { 598 {
598 ptrdiff_t len; 599 ptrdiff_t len;
599 600
600 while (*beg && isspace (*beg)) ++beg; 601 while (*beg && c_isspace (*beg)) ++beg;
601 602
602 for (end = beg; *end && ! isspace (*end); ++end) 603 for (end = beg; *end && ! c_isspace (*end); ++end)
603 if (*end == '/') beg = end+1; /* skip directory part */ 604 if (*end == '/') beg = end+1; /* skip directory part */
604 605
605 len = end - beg; 606 len = end - beg;