diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-30 14:22:58 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-30 14:22:58 -0800 |
commit | 4eec7f8b2b465c6fc2c09d37d4da2b540f607df0 (patch) | |
tree | 9f4e30300e4f96dd3c72f5f435032f8180ce1a6c /src/buffer.c | |
parent | fcabb1a6e66f7e6cf4fe0984c4d5c169f4decd8a (diff) | |
parent | 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (diff) | |
download | emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.tar.gz emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.tar.bz2 emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.zip |
Use SSDATA when the context wants char *.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 9b036a1a6db..2c6eb7b84e3 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1638,7 +1638,7 @@ the current buffer's major mode. */) CHECK_BUFFER (buffer); if (STRINGP (XBUFFER (buffer)->name) - && strcmp (SDATA (XBUFFER (buffer)->name), "*scratch*") == 0) + && strcmp (SSDATA (XBUFFER (buffer)->name), "*scratch*") == 0) function = find_symbol_value (intern ("initial-major-mode")); else { @@ -5229,7 +5229,7 @@ init_buffer (void) because of the ange-ftp completion handler. However, it is not necessary to turn / into /:/. So avoid doing that. */ - && strcmp ("/", SDATA (current_buffer->directory))) + && strcmp ("/", SSDATA (current_buffer->directory))) current_buffer->directory = concat2 (build_string ("/:"), current_buffer->directory); @@ -6208,4 +6208,3 @@ keys_of_buffer (void) initialized when that function gets called. */ Fput (intern_c_string ("erase-buffer"), Qdisabled, Qt); } - |