* Docstring for system-type
@ 2005-01-11 22:41 Stefan Monnier
2005-01-12 4:12 ` Steven Tamm
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2005-01-11 22:41 UTC (permalink / raw)
I can never remember which value of `system-type' is used for which system,
so I think the docstring should simply list them.
Any objection/addition/adjustment/clarification ?
Stefan
--- orig/src/emacs.c
+++ mod/src/emacs.c
@@ -1,6 +1,6 @@
/* Fully extensible Emacs, running on Unix, intended for GNU.
- Copyright (C) 1985,86,87,93,94,95,97,98,1999,2001,02,03,2004
- Free Software Foundation, Inc.
+ Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001,
+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -2439,7 +2439,16 @@
Many arguments are deleted from the list as they are processed. */);
DEFVAR_LISP ("system-type", &Vsystem_type,
- doc: /* Value is symbol indicating type of operating system you are using. */);
+ doc: /* Value is symbol indicating type of operating system you are using.
+Special values:
+ `ms-dos' compiled as an MS-DOS application.
+ `windows-nt' compiled as a native W32 application.
+ `cygwin' compiled using the Cygwin library.
+ `vax-vms' or `axp-vms': Running on a (Open)VMS system.
+ `macos' compiled for Mac OS 9.
+ `darwin' compiled for Mac OS X.
+ `gnu/linux' compiled for the GNU/Linux system.
+Anything else indicates some sort of Unix system. */);
Vsystem_type = intern (SYSTEM_TYPE);
DEFVAR_LISP ("system-configuration", &Vsystem_configuration,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Docstring for system-type
2005-01-11 22:41 Docstring for system-type Stefan Monnier
@ 2005-01-12 4:12 ` Steven Tamm
2005-01-12 18:36 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Steven Tamm @ 2005-01-12 4:12 UTC (permalink / raw)
Cc: emacs-devel
The darwin string should say "Compile for Mac OS X or Darwin" since it
works perfectly on GNU-Darwin x86.
-Steven
On Jan 11, 2005, at 2:41 PM, Stefan Monnier wrote:
> I can never remember which value of `system-type' is used for which
> system,
> so I think the docstring should simply list them.
>
> Any objection/addition/adjustment/clarification ?
>
>
> Stefan
>
>
> --- orig/src/emacs.c
> +++ mod/src/emacs.c
> @@ -1,6 +1,6 @@
> /* Fully extensible Emacs, running on Unix, intended for GNU.
> - Copyright (C) 1985,86,87,93,94,95,97,98,1999,2001,02,03,2004
> - Free Software Foundation, Inc.
> + Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 1998,
> 1999, 2001,
> + 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
>
> This file is part of GNU Emacs.
>
> @@ -2439,7 +2439,16 @@
> Many arguments are deleted from the list as they are processed. */);
>
> DEFVAR_LISP ("system-type", &Vsystem_type,
> - doc: /* Value is symbol indicating type of operating system
> you are using. */);
> + doc: /* Value is symbol indicating type of operating system
> you are using.
> +Special values:
> + `ms-dos' compiled as an MS-DOS application.
> + `windows-nt' compiled as a native W32 application.
> + `cygwin' compiled using the Cygwin library.
> + `vax-vms' or `axp-vms': Running on a (Open)VMS system.
> + `macos' compiled for Mac OS 9.
> + `darwin' compiled for Mac OS X.
> + `gnu/linux' compiled for the GNU/Linux system.
> +Anything else indicates some sort of Unix system. */);
> Vsystem_type = intern (SYSTEM_TYPE);
>
> DEFVAR_LISP ("system-configuration", &Vsystem_configuration,
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Docstring for system-type
2005-01-12 4:12 ` Steven Tamm
@ 2005-01-12 18:36 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2005-01-12 18:36 UTC (permalink / raw)
Cc: emacs-devel
> The darwin string should say "Compile for Mac OS X or Darwin" since it
> works perfectly on GNU-Darwin x86.
Thanks, I didn't know about GNU-Darwin.
Hmmm.... does a GNU-Darwin system also unconditionally use utf-8
encoding for file names, like Mac OS X?
I was thinking of using a change along the lines of (still unstested):
Stefan
--- orig/lisp/international/mule-cmds.el
+++ mod/lisp/international/mule-cmds.el
@@ -1863,7 +1864,8 @@
(set-default-coding-systems nil)
(setq default-sendmail-coding-system 'iso-latin-1)
- (setq default-file-name-coding-system 'iso-latin-1)
+ (setq default-file-name-coding-system
+ (if (eq system-type 'darwin) 'utf-8 'iso-latin-1))
;; Preserve eol-type from existing default-process-coding-systems.
;; On non-unix-like systems in particular, these may have been set
;; carefully by the user, or by the startup code, to deal with the
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-12 18:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11 22:41 Docstring for system-type Stefan Monnier
2005-01-12 4:12 ` Steven Tamm
2005-01-12 18:36 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.