aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-05-05 18:52:57 +0000
committerRichard M. Stallman1996-05-05 18:52:57 +0000
commitfb859603163458157f107bae728cfefabff41c1a (patch)
treee3a1f7e5c07cd1b206818c1c3ee0b57d5507d1bf /src
parent55b933cf8f89bfdd8bcd8f201238da6e6a122c57 (diff)
downloademacs-fb859603163458157f107bae728cfefabff41c1a.tar.gz
emacs-fb859603163458157f107bae728cfefabff41c1a.zip
(Fmsdos_long_file_names): New function.
(syms_of_dosfns): defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/dosfns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dosfns.c b/src/dosfns.c
index 6030f0696c3..11e30c07591 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -241,6 +241,18 @@ Return nil if startup screen is not available.")
241 return Qt; 241 return Qt;
242} 242}
243 243
244DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names,
245 0, 0, 0,
246 "Return non-nil if long file names are supported. on MSDOS.")
247 ()
248{
249#if __DJGPP__ >= 2
250 return (! NILP (Fgetenv ("LFN")) ? Qt : Qnil);
251#else
252 return Qnil;
253#endif
254}
255
244 256
245/* country info */ 257/* country info */
246int dos_country_code; 258int dos_country_code;
@@ -320,6 +332,7 @@ syms_of_dosfns ()
320 defsubr (&Smsdos_set_keyboard); 332 defsubr (&Smsdos_set_keyboard);
321 defsubr (&Sinsert_startup_screen); 333 defsubr (&Sinsert_startup_screen);
322 defsubr (&Smsdos_mouse_disable); 334 defsubr (&Smsdos_mouse_disable);
335 defsubr (&Smsdos_long_file_names);
323#ifndef HAVE_X_WINDOWS 336#ifndef HAVE_X_WINDOWS
324 defsubr (&Smsdos_mouse_p); 337 defsubr (&Smsdos_mouse_p);
325 defsubr (&Sset_mouse_position); 338 defsubr (&Sset_mouse_position);