* how do i find out the platform emacs runs on? @ 2003-11-24 4:42 leo 2003-11-24 6:11 ` Ola Nilsson ` (2 more replies) 0 siblings, 3 replies; 23+ messages in thread From: leo @ 2003-11-24 4:42 UTC (permalink / raw) hello i use emacs at work (pc) and at home (mac) and want to use the same .emacs file with some conditionals. so how do i find out if emacs runs on the pc or onthe mac? cheers, leo ps: first attempt was the variable window-system, but that doesn't work when i invoke emacs as a terminal app. ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-24 4:42 how do i find out the platform emacs runs on? leo @ 2003-11-24 6:11 ` Ola Nilsson 2003-11-25 3:53 ` leo 2003-11-26 9:32 ` seki 2003-11-24 6:20 ` Eli Zaretskii [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org> 2 siblings, 2 replies; 23+ messages in thread From: Ola Nilsson @ 2003-11-24 6:11 UTC (permalink / raw) "leo" <halloleo@noospaam.myrealbox.com> writes: > i use emacs at work (pc) and at home (mac) and want to use the same .emacs > file with some conditionals. > > so how do i find out if emacs runs on the pc or onthe mac? I use this in my .emacs. However, I've yet to learn more about elisp, so there might be better ways: (if (eq system-type 'windows-nt) (require 'cygwin-mount) ) Regards, -- /Ola Nilsson ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-24 6:11 ` Ola Nilsson @ 2003-11-25 3:53 ` leo 2003-11-26 9:32 ` seki 1 sibling, 0 replies; 23+ messages in thread From: leo @ 2003-11-25 3:53 UTC (permalink / raw) thanks a lot! that's exactly what i need! leo "Ola Nilsson" <sds024five1@sydpost.nospam.nu> wrote in message news:871xryxpmo.fsf@helmut.nilsson.homedns.org... > "leo" <halloleo@noospaam.myrealbox.com> writes: > > > i use emacs at work (pc) and at home (mac) and want to use the same .emacs > > file with some conditionals. > > > > so how do i find out if emacs runs on the pc or onthe mac? > > I use this in my .emacs. However, I've yet to learn more about elisp, so there > might be better ways: > > (if (eq system-type 'windows-nt) > (require 'cygwin-mount) > ) > > Regards, > -- > /Ola Nilsson ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-24 6:11 ` Ola Nilsson 2003-11-25 3:53 ` leo @ 2003-11-26 9:32 ` seki 2003-11-26 17:21 ` Kevin Rodgers 2003-11-26 17:36 ` Phillip Lord 1 sibling, 2 replies; 23+ messages in thread From: seki @ 2003-11-26 9:32 UTC (permalink / raw) Ola Nilsson wrote: > > (if (eq system-type 'windows-nt) > (require 'cygwin-mount) > ) > I try to have one .emacs between Mac OSX, Linux and NT, here what i defined : ;windows (if (eq system-type 'windows-nt) (progn ... )) ;linux (if (eq system-type 'linux) (progn ... )) ;mac (if (eq system-type 'darwin) (progn ... )) for macintosh, i use darwin, as it works both for console and windowed system. If you want also to check between console and graphical : test if window-system is not nil (for example to define a default-frame-alist) Sébastien Kirche ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-26 9:32 ` seki @ 2003-11-26 17:21 ` Kevin Rodgers 2003-11-26 17:35 ` Edi Weitz 2003-11-26 17:36 ` Phillip Lord 1 sibling, 1 reply; 23+ messages in thread From: Kevin Rodgers @ 2003-11-26 17:21 UTC (permalink / raw) seki wrote: > I try to have one .emacs between Mac OSX, Linux and NT, here what i > defined : > ;windows > (if (eq system-type 'windows-nt) > (progn > ... > )) > > ;linux > (if (eq system-type 'linux) > (progn > ... > )) > > ;mac > (if (eq system-type 'darwin) > (progn > ... > )) i.e. (cond ((eq system-type 'windows-nt) ...) ((eq system-type 'linux) ...) ((eq system-type 'darwin) ...)) -- Kevin Rodgers ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-26 17:21 ` Kevin Rodgers @ 2003-11-26 17:35 ` Edi Weitz 0 siblings, 0 replies; 23+ messages in thread From: Edi Weitz @ 2003-11-26 17:35 UTC (permalink / raw) On Wed, 26 Nov 2003 10:21:45 -0700, Kevin Rodgers <ihs_4664@yahoo.com> wrote: > (cond ((eq system-type 'windows-nt) > ...) > ((eq system-type 'linux) > ...) > ((eq system-type 'darwin) > ...)) or (case system-type ((windows-nt) ...) ((linux) ...) ((darwin) ...)) after (require 'cl) Edi. ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-26 9:32 ` seki 2003-11-26 17:21 ` Kevin Rodgers @ 2003-11-26 17:36 ` Phillip Lord 2003-11-26 22:29 ` Ehud Karni 2003-11-27 10:02 ` Sébastien Kirche 1 sibling, 2 replies; 23+ messages in thread From: Phillip Lord @ 2003-11-26 17:36 UTC (permalink / raw) >>>>> "seki" == seki <sebastien.kirche.no@spam.free.fr> writes: seki> Ola Nilsson wrote: >> >> (if (eq system-type 'windows-nt) (require 'cygwin-mount) ) >> seki> I try to have one .emacs between Mac OSX, Linux and NT, here seki> what i defined : seki> ;windows seki> (if (eq system-type 'windows-nt) seki> (progn seki> ... seki> )) seki> ;linux seki> (if (eq system-type 'linux) seki> (progn seki> ... seki> )) seki> ;mac seki> (if (eq system-type 'darwin) seki> (progn seki> ... seki> )) seki> for macintosh, i use darwin, as it works both for console and seki> windowed system. If you want also to check between console seki> and graphical : test if window-system is not nil (for example seki> to define a default-frame-alist) One important question to ask though, is why are you doing this? In general its better to ask Emacs for its capabilities rather than its platform. Checking between console and windowing environment seems a good way to do things. This way if Emacs on different systems gains new functionality, it should all just work. Of course there are times when you might just not be bothered to do this, or when its too much effort (checking whether external programs like diff are available for instance). Cheers Phil ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-26 17:36 ` Phillip Lord @ 2003-11-26 22:29 ` Ehud Karni 2003-11-27 10:02 ` Sébastien Kirche 1 sibling, 0 replies; 23+ messages in thread From: Ehud Karni @ 2003-11-26 22:29 UTC (permalink / raw) Cc: help-gnu-emacs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 26 Nov 2003 17:36:02 +0000, Phillip Lord <p.lord@russet.org.uk> wrote: > > One important question to ask though, is why are you doing this? In > general its better to ask Emacs for its capabilities rather than its > platform. I have an .emacs files that runs on 3 systems: GNU/Linux, windows-NT and Cygwin (on windows). I set some Emacs variables and some environment variables. It has nothing to do with the Emacs capabilities and everything with the OS capabilities/behavior. e.g. I set the `desktop-basefilename' differently for windows-NT and Cygwin because they have different path structure (X:\... vs. /X/...). > Checking between console and windowing environment seems a good way to > do things. > > This way if Emacs on different systems gains new functionality, it > should all just work. Only if it is purely Emacs dependent, When it is dependent on the OS or the display or any other factor, you should check for the specific element that differentiate between these situations. > Of course there are times when you might just not be bothered to do > this, or when its too much effort (checking whether external programs > like diff are available for instance). There are times, you just can not check (e.g. if the test might hang the system or block Emacs forever). Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD4DBQE/xSlNLFvTvpjqOY0RAkiwAJ9CvKnQJvZrRAkhrFrmAfUlUrhtuACWITmC a+49x1lzx3g+u6afFXhIFw== =VwGE -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-26 17:36 ` Phillip Lord 2003-11-26 22:29 ` Ehud Karni @ 2003-11-27 10:02 ` Sébastien Kirche 1 sibling, 0 replies; 23+ messages in thread From: Sébastien Kirche @ 2003-11-27 10:02 UTC (permalink / raw) Le mercredi, 26 nov 2003, à 18:36 Europe/Paris, Phillip Lord a écrit : > One important question to ask though, is why are you doing this? In > general its better to ask Emacs for its capabilities rather than its > platform. > > Checking between console and windowing environment seems a good way to > do things. > > This way if Emacs on different systems gains new functionality, it > should all just work. > > Of course there are times when you might just not be bothered to do > this, or when its too much effort (checking whether external programs > like diff are available for instance). > Well, i actually do that for platform specific (headaches cause) settings. Mostly keyboard remapping, and some defuns. With the keep in mind to have only one .emacs that i have just to copy from one platform to another if i made new settings. If you see a smarter way to do that, i am open to any suggestion, as i am still a learning user for emacs, especially for elisp. I pasted the actual portion of .emacs (rewritten thanks to Kevin Rogers) relative to that. I left the french comments, but i guess still understandable for english people :) Thanks Sébastien Kirche ;======= SPECIFIQUE PLATEFORME ========================================================== (cond ((eq system-type 'darwin) ; réglages pour le mac (progn ;(message "on est sous mac") ;(setq mac-command-key-is-meta nil) (set-keyboard-coding-system 'mac-roman) ;(set-frame-font "fontset-mac") (if window-system (setq default-frame-alist '((width . 100) (height . 44) (top . 50);pixels (left . 50);pixels (font . "fontset-mac"))) ) (global-set-key (kbd "<kp-delete>") 'delete-char) ;touche suppr (global-set-key (kbd "<kp-divide>") "/") ;touche division sur pavé num (inactif sur mon poste ?) (global-set-key (kbd "<C-kp-home>") (kbd "<C-home>"));idem / (global-set-key (kbd "<C-kp-end>") (kbd "<C-end>")) ;idem / ;(global-set-key "€" (sk-insere-euro t));j'arrive pas avec l'euro ;(^[ (defvar sw-last-applescript nil "Stores the last Applescript command executed from Emacs.") (defvar sw-applescript-buffer-name "*AppleScript output*" "Name for the buffer to display AppleScript output.") (defun sw-applescript-run-buffer () "Execute the whole buffer as an Applescript" (interactive) (setq sw-last-applescript (buffer-string)) (sw-run-and-display-applescript (buffer-string))) (defun sw-applescript-run-region () "Execute the region as an Applescript" (interactive) (let ((region (buffer-substring (region-beginning) (region-end)))) (setq sw-last-applescript region) (sw-run-and-display-applescript region))) (defun sw-run-last-applescript () "Run the last Applescript command again" (interactive) (sw-run-and-display-applescript sw-last-applescript)) (defun sw-run-and-display-applescript (code) "Switch to the AppleScript buffer, erase it, run the code and display the results." (switch-to-buffer (get-buffer-create sw-applescript-buffer-name)) (erase-buffer) (insert (do-applescript code))) )) ;================================================================= ((eq system-type 'windows-nt); réglages pour windows (progn ;(message "on est sous ouin-ouin") (global-set-key [128] 'sk-insere-euro); C-h l donne \200 pour l'euro soit 128 en décimal ();rien d'autre ) ) ;================================================================= ((eq system-type 'linux); réglages pour Linux (progn ;(message "on est avec le pingouin") ();nada ) )) ;================================================================= ; fonction pour insérer l'euro (fonction à 10^[€ ? ;o)^[ (defun sk-insere-euro (&optional arg) "Insère le symbole Euro ISO 8859-15. Avec un préfixe, insère la version Unicode." (interactive "*P") (if arg (insert (make-char 'mule-unicode-0100-24ff 116 76)) (insert (make-char 'latin-iso8859-15 164)))) -- E pluribus UNIX ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-11-24 4:42 how do i find out the platform emacs runs on? leo 2003-11-24 6:11 ` Ola Nilsson @ 2003-11-24 6:20 ` Eli Zaretskii [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 23+ messages in thread From: Eli Zaretskii @ 2003-11-24 6:20 UTC (permalink / raw) > From: "leo" <halloleo@noospaam.myrealbox.com> > Newsgroups: gnu.emacs.help > Date: Mon, 24 Nov 2003 15:42:22 +1100 > > so how do i find out if emacs runs on the pc or onthe mac? The variables `system-configuration' and/or `system-type' will tell you. > ps: first attempt was the variable window-system, but that doesn't work when > i invoke emacs as a terminal app. The command "M-x apropos-variable RET system RET" will show you a list of all the variables that are useful for this and similar purposes. No need to guess or try-and-err. ^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <mailman.485.1069658500.399.help-gnu-emacs@gnu.org>]
* apropos apropos [was: how do i find out the platform emacs runs on?] [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org> @ 2003-11-24 9:39 ` Alan Mackenzie 2003-11-24 12:46 ` Eli Zaretskii ` (2 more replies) 2003-12-01 9:03 ` how do i find out the platform emacs runs on? Svend Tollak Munkejord 1 sibling, 3 replies; 23+ messages in thread From: Alan Mackenzie @ 2003-11-24 9:39 UTC (permalink / raw) Eli Zaretskii <eliz@elta.co.il> wrote on 24 Nov 2003 08:20:30 +0200: > The command "M-x apropos-variable RET system RET" will show you a list > of all the variables that are useful for this and similar purposes. No > need to guess or try-and-err. Hey, I never knew about `apropos-variable`. In fact, it never occurred to me, until now, to try C-h a apropos. There's a whole wealth of apropos-commands there, waiting to be discovered! When I type C-h, only `apropos-command' is mentioned in the list of options. (Yes, I know, that's because it's the only one with an entry in the C-h keymap.) As a matter of interest, how should I have discovered the existence of these commands? Could it be that the "help" system could do with enhancement? -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a"). ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] 2003-11-24 9:39 ` apropos apropos [was: how do i find out the platform emacs runs on?] Alan Mackenzie @ 2003-11-24 12:46 ` Eli Zaretskii 2003-11-24 18:45 ` Kevin Rodgers [not found] ` <mailman.496.1069681832.399.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 23+ messages in thread From: Eli Zaretskii @ 2003-11-24 12:46 UTC (permalink / raw) > From: Alan Mackenzie<none@example.invalid> > Newsgroups: gnu.emacs.help > Date: Mon, 24 Nov 2003 09:39:16 +0000 > > As a matter of interest, how should I have discovered the existence of > these commands? Help->Search Documentation from the menubar could be one way to find out. However, I know about these commands for such a long time that I cannot even remember how I learned about their existence. Probably, from NEWS or something. > Could it be that the "help" system could do with enhancement? It is IMHO a trivium that any help system of any software could do with enhancement ;-) The question is: how? Please feel free to suggest improvements if you have specific ideas. ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] 2003-11-24 9:39 ` apropos apropos [was: how do i find out the platform emacs runs on?] Alan Mackenzie 2003-11-24 12:46 ` Eli Zaretskii @ 2003-11-24 18:45 ` Kevin Rodgers 2003-11-24 21:03 ` Alan Mackenzie [not found] ` <mailman.496.1069681832.399.help-gnu-emacs@gnu.org> 2 siblings, 1 reply; 23+ messages in thread From: Kevin Rodgers @ 2003-11-24 18:45 UTC (permalink / raw) Alan Mackenzie wrote: > Hey, I never knew about `apropos-variable`. In fact, it never occurred > to me, until now, to try C-h a apropos. There's a whole wealth of > apropos-commands there, waiting to be discovered! > > When I type C-h, only `apropos-command' is mentioned in the list of > options. (Yes, I know, that's because it's the only one with an entry in > the C-h keymap.) > > As a matter of interest, how should I have discovered the existence of > these commands? C-h a apropos ; i.e. M-x apropos-command RET apropos -- Kevin Rodgers ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] 2003-11-24 18:45 ` Kevin Rodgers @ 2003-11-24 21:03 ` Alan Mackenzie 2003-11-25 17:40 ` Kevin Rodgers 0 siblings, 1 reply; 23+ messages in thread From: Alan Mackenzie @ 2003-11-24 21:03 UTC (permalink / raw) Kevin Rodgers <ihs_4664@yahoo.com> wrote on Mon, 24 Nov 2003 11:45:19 -0700: > Alan Mackenzie wrote: >> Hey, I never knew about `apropos-variable`. In fact, it never occurred >> to me, until now, to try C-h a apropos. There's a whole wealth of >> apropos-commands there, waiting to be discovered! >> When I type C-h, only `apropos-command' is mentioned in the list of >> options. (Yes, I know, that's because it's the only one with an entry in >> the C-h keymap.) >> As a matter of interest, how should I have discovered the existence of >> these commands? > C-h a apropos ; i.e. M-x apropos-command RET apropos No, I meant what should have prompted me to try C-h a apropos? I've been aware of C-h a for a long time. Damn useful thing it is, too. But I'd NO idea that there might have been other aproposals, thus no reason to try C-h a apropos. Now I know. :-) > -- > Kevin Rodgers -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a"). ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] 2003-11-24 21:03 ` Alan Mackenzie @ 2003-11-25 17:40 ` Kevin Rodgers 0 siblings, 0 replies; 23+ messages in thread From: Kevin Rodgers @ 2003-11-25 17:40 UTC (permalink / raw) Alan Mackenzie wrote: > Kevin Rodgers <ihs_4664@yahoo.com> wrote on Mon, 24 Nov 2003 11:45:19 -0700: >>C-h a apropos ; i.e. M-x apropos-command RET apropos > > No, I meant what should have prompted me to try C-h a apropos? I've been > aware of C-h a for a long time. Damn useful thing it is, too. But I'd > NO idea that there might have been other aproposals, thus no reason to > try C-h a apropos. If you're interested in the online documentation, you should read the Help section of the manual (available online naturally, via C-h i). It lists `C-h a' and `M-x apropos-documentation' along with many other commands, and has an entire Apropos subsection (and 8 other subsections). I think I found out about the other apropos commands long ago by typing `M-x apropos ?'. But maybe I'm just curious. -- Kevin Rodgers ^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <mailman.496.1069681832.399.help-gnu-emacs@gnu.org>]
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] [not found] ` <mailman.496.1069681832.399.help-gnu-emacs@gnu.org> @ 2003-11-29 10:50 ` Alan Mackenzie 2003-11-30 6:53 ` Eli Zaretskii 0 siblings, 1 reply; 23+ messages in thread From: Alan Mackenzie @ 2003-11-29 10:50 UTC (permalink / raw) Eli Zaretskii <eliz@elta.co.il> wrote on 24 Nov 2003 14:46:26 +0200: >> From: Alan Mackenzie<none@example.invalid> >> Newsgroups: gnu.emacs.help >> Date: Mon, 24 Nov 2003 09:39:16 +0000 >> As a matter of interest, how should I have discovered the existence of >> these commands? > Help->Search Documentation from the menubar could be one way to find > out. OK. I don't actually have a menubar (on a Linux console), but I suppose that's my problem these days. :-) > However, I know about these commands for such a long time that I cannot > even remember how I learned about their existence. Probably, from NEWS > or something. >> Could it be that the "help" system could do with enhancement? > It is IMHO a trivium that any help system of any software could do with > enhancement ;-) The question is: how? Please feel free to suggest > improvements if you have specific ideas. I've tried to reconstruct how I discovered the help system when I was new to Emacs. I think that, having discovered C-h ?, I implicitly (but mistakenly) understood that _ALL_ the help commands were listed by C-h ?. Thus when I might have wanted `apropos-variable', I would have scanned through C-h ?, failed to see it, then assumed it didn't exist. Maybe inserting something like "Full details of these commands, and further advanced help commands can be found in the Emacs manual." at the bottom of the C-h ? page would help here. Incidentally, on the manual page "Help", the first item in the menu is: * Help Summary:: Brief list of all Help commands. However, on the "Help Summary" page, there is no mention of M-x apropos-variable and friends. -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a"). ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: apropos apropos [was: how do i find out the platform emacs runs on?] 2003-11-29 10:50 ` Alan Mackenzie @ 2003-11-30 6:53 ` Eli Zaretskii 0 siblings, 0 replies; 23+ messages in thread From: Eli Zaretskii @ 2003-11-30 6:53 UTC (permalink / raw) > From: Alan Mackenzie<none@example.invalid> > Newsgroups: gnu.emacs.help > Date: Sat, 29 Nov 2003 10:50:33 +0000 > > > Help->Search Documentation from the menubar could be one way to find > > out. > > OK. I don't actually have a menubar (on a Linux console), but I suppose > that's my problem these days. :-) You can still ``see'' the menu bar via M-`. > Maybe inserting something like "Full details of these commands, and > further advanced help commands can be found in the Emacs manual." at the > bottom of the C-h ? page would help here. It's probably time to move this discussion to emacs-devel@gnu.org. > Incidentally, on the manual page "Help", the first item in the menu is: > > * Help Summary:: Brief list of all Help commands. > > However, on the "Help Summary" page, there is no mention of M-x > apropos-variable and friends. That section only lists the "C-h" commands. The text before the menu you referred to describes the recommended way of finding the information efficiently. The various `apropos-*' commands are listed in the node "Apropos" (reachable via the menu mentioned above). ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org> 2003-11-24 9:39 ` apropos apropos [was: how do i find out the platform emacs runs on?] Alan Mackenzie @ 2003-12-01 9:03 ` Svend Tollak Munkejord 2003-12-01 13:17 ` Eli Zaretskii ` (2 more replies) 1 sibling, 3 replies; 23+ messages in thread From: Svend Tollak Munkejord @ 2003-12-01 9:03 UTC (permalink / raw) On 2003-11-24, Eli Zaretskii <eliz@elta.co.il> wrote: >> From: "leo" <halloleo@noospaam.myrealbox.com> >> Newsgroups: gnu.emacs.help >> Date: Mon, 24 Nov 2003 15:42:22 +1100 >> >> so how do i find out if emacs runs on the pc or onthe mac? > > The variables `system-configuration' and/or `system-type' will tell you. > >> ps: first attempt was the variable window-system, but that doesn't work >> when i invoke emacs as a terminal app. > > The command "M-x apropos-variable RET system RET" will show you a list > of all the variables that are useful for this and similar purposes. > No need to guess or try-and-err. Here (GNU Emacs 21.3) "M-x apropos-variable RET system RET" lists cperl-help-system file-coding-system-alist Variable: Alist to decide a coding system to use for a file I/O operation. file-name-coding-system Variable: *Coding system for encoding file names. keyboard-coding-system Variable: Specify coding system for keyboard input. sendmail-coding-system Variable: *Coding system for encoding the outgoing mail. Nothing about `system-type'. It is listed (among many other items) with "M-x apropos RET system RET", though. -- Svend Tollak Munkejord ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-12-01 9:03 ` how do i find out the platform emacs runs on? Svend Tollak Munkejord @ 2003-12-01 13:17 ` Eli Zaretskii 2003-12-01 19:15 ` Kevin Rodgers [not found] ` <mailman.851.1070328153.399.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 23+ messages in thread From: Eli Zaretskii @ 2003-12-01 13:17 UTC (permalink / raw) > From: Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> > Newsgroups: gnu.emacs.help > Date: Mon, 01 Dec 2003 10:03:48 +0100 > > > > The command "M-x apropos-variable RET system RET" will show you a list > > of all the variables that are useful for this and similar purposes. > > No need to guess or try-and-err. > > Here (GNU Emacs 21.3) "M-x apropos-variable RET system RET" lists > > cperl-help-system > file-coding-system-alist > Variable: Alist to decide a coding system to use for a file I/O operation. > file-name-coding-system > Variable: *Coding system for encoding file names. > keyboard-coding-system > Variable: Specify coding system for keyboard input. > sendmail-coding-system > Variable: *Coding system for encoding the outgoing mail. > > Nothing about `system-type'. You missed the doc string of apropos-variable. If you read it, you will see the answer to this problem. ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-12-01 9:03 ` how do i find out the platform emacs runs on? Svend Tollak Munkejord 2003-12-01 13:17 ` Eli Zaretskii @ 2003-12-01 19:15 ` Kevin Rodgers [not found] ` <mailman.851.1070328153.399.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 23+ messages in thread From: Kevin Rodgers @ 2003-12-01 19:15 UTC (permalink / raw) Svend Tollak Munkejord wrote: > On 2003-11-24, Eli Zaretskii <eliz@elta.co.il> wrote: >>The command "M-x apropos-variable RET system RET" will show you a list >>of all the variables that are useful for this and similar purposes. >>No need to guess or try-and-err. >> > > Here (GNU Emacs 21.3) "M-x apropos-variable RET system RET" lists ... > Nothing about `system-type'. It is listed (among many other items) with > "M-x apropos RET system RET", though. That's because the system-* Lisp variables are not user variables (aka options): they can't be set with `M-x set-variable'. To see all such Lisp variables, use `C-h v system ?' instead. -- Kevin Rodgers ^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <mailman.851.1070328153.399.help-gnu-emacs@gnu.org>]
* Re: how do i find out the platform emacs runs on? [not found] ` <mailman.851.1070328153.399.help-gnu-emacs@gnu.org> @ 2003-12-02 8:20 ` Svend Tollak Munkejord 2003-12-02 17:24 ` Eli Zaretskii [not found] ` <mailman.924.1070390102.399.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 23+ messages in thread From: Svend Tollak Munkejord @ 2003-12-02 8:20 UTC (permalink / raw) On 2003-12-01, Eli Zaretskii <eliz@elta.co.il> wrote: >> From: Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> >> Newsgroups: gnu.emacs.help >> Date: Mon, 01 Dec 2003 10:03:48 +0100 >>> >>> The command "M-x apropos-variable RET system RET" will show you a list >>> of all the variables that are useful for this and similar purposes. >>> No need to guess or try-and-err. >> >> Here (GNU Emacs 21.3) "M-x apropos-variable RET system RET" lists [...] >> Nothing about `system-type'. > > You missed the doc string of apropos-variable. If you read it, you > will see the answer to this problem. OK, thanks. I probably misunderstood you :-) -- Svend Tollak Munkejord ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: how do i find out the platform emacs runs on? 2003-12-02 8:20 ` Svend Tollak Munkejord @ 2003-12-02 17:24 ` Eli Zaretskii [not found] ` <mailman.924.1070390102.399.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 23+ messages in thread From: Eli Zaretskii @ 2003-12-02 17:24 UTC (permalink / raw) > From: Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> > Newsgroups: gnu.emacs.help > Date: Tue, 02 Dec 2003 09:20:38 +0100 > > >> Nothing about `system-type'. > > > > You missed the doc string of apropos-variable. If you read it, you > > will see the answer to this problem. > > OK, thanks. I probably misunderstood you :-) What I meant to tell you, in case it still isn't clear, that invoking apropos-variable with a numeric prefix argument will show you the variables like system-type. That is, try C-u M-x apropos-variable RET system RET ^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <mailman.924.1070390102.399.help-gnu-emacs@gnu.org>]
* Re: how do i find out the platform emacs runs on? [not found] ` <mailman.924.1070390102.399.help-gnu-emacs@gnu.org> @ 2003-12-03 8:42 ` Svend Tollak Munkejord 0 siblings, 0 replies; 23+ messages in thread From: Svend Tollak Munkejord @ 2003-12-03 8:42 UTC (permalink / raw) On 2003-12-02, Eli Zaretskii <eliz@elta.co.il> wrote: >> From: Svend Tollak Munkejord <stm+direct_reply@bacchus.pvv.org> >> Newsgroups: gnu.emacs.help >> Date: Tue, 02 Dec 2003 09:20:38 +0100 >> >>>> Nothing about `system-type'. >>> >>> You missed the doc string of apropos-variable. If you read it, you >>> will see the answer to this problem. >> >> OK, thanks. I probably misunderstood you :-) > > What I meant to tell you, in case it still isn't clear, that invoking > apropos-variable with a numeric prefix argument will show you the > variables like system-type. That is, try > > C-u M-x apropos-variable RET system RET I did miss that. Thanks a lot! :-) -- Svend Tollak Munkejord ^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2003-12-03 8:42 UTC | newest] Thread overview: 23+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-11-24 4:42 how do i find out the platform emacs runs on? leo 2003-11-24 6:11 ` Ola Nilsson 2003-11-25 3:53 ` leo 2003-11-26 9:32 ` seki 2003-11-26 17:21 ` Kevin Rodgers 2003-11-26 17:35 ` Edi Weitz 2003-11-26 17:36 ` Phillip Lord 2003-11-26 22:29 ` Ehud Karni 2003-11-27 10:02 ` Sébastien Kirche 2003-11-24 6:20 ` Eli Zaretskii [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org> 2003-11-24 9:39 ` apropos apropos [was: how do i find out the platform emacs runs on?] Alan Mackenzie 2003-11-24 12:46 ` Eli Zaretskii 2003-11-24 18:45 ` Kevin Rodgers 2003-11-24 21:03 ` Alan Mackenzie 2003-11-25 17:40 ` Kevin Rodgers [not found] ` <mailman.496.1069681832.399.help-gnu-emacs@gnu.org> 2003-11-29 10:50 ` Alan Mackenzie 2003-11-30 6:53 ` Eli Zaretskii 2003-12-01 9:03 ` how do i find out the platform emacs runs on? Svend Tollak Munkejord 2003-12-01 13:17 ` Eli Zaretskii 2003-12-01 19:15 ` Kevin Rodgers [not found] ` <mailman.851.1070328153.399.help-gnu-emacs@gnu.org> 2003-12-02 8:20 ` Svend Tollak Munkejord 2003-12-02 17:24 ` Eli Zaretskii [not found] ` <mailman.924.1070390102.399.help-gnu-emacs@gnu.org> 2003-12-03 8:42 ` Svend Tollak Munkejord
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).