Re: FAQ entries about emacs
On Feb 23 14:41, Dr. Volker Zell wrote: > Try this one: > > --- faq-using.xml.orig2009-02-22 20:36:51.078125000 +0100 > +++ faq-using.xml 2009-02-23 13:41:38.359375000 +0100 > @@ -806,13 +806,46 @@ Thanks! I've checked this in and uploaded it to http://cygwin.com/1.7/faq/faq.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: FAQ entries about emacs
> Corinna Vinschen writes: > Thank you! Unfortunately I have a problem. The patch applies cleanly, > but the result doesn't build. The easy part was to fix the usage of > `&' in the screen sections, they just have to be converted to `&'. > But the really big problem is that the and markers > are not correctly balanced. I tried to fix that myself, but it occured > to me that I'm not sure what your exact intention was. Can you have > another look, please? Try this one: --- faq-using.xml.orig 2009-02-22 20:36:51.078125000 +0100 +++ faq-using.xml 2009-02-23 13:41:38.359375000 +0100 @@ -806,13 +806,46 @@ -What about XEmacs? +Is there a Cygwin port of XEmacs? -For a concise description of the current situation with XEmacs, see -this message from the Cygwin mailing list: -http://cygwin.com/ml/cygwin/2002-11/msg00609.html";>http://cygwin.com/ml/cygwin/2002-11/msg00609.html. +Yes. It can be used in three different modes: + +X11 (http://cygwin.com/xfree/";>http://cygwin.com/xfree/) GUI + +You have to set the DISPLAY environment variable +before starting xemacs. + + bash$ DISPLAY=127.0.0.1:0 xemacs & + + +Windows native GUI + +You have to unset the DISPLAY environment variable +before starting xemacs. + + bash$ DISPLAY= xemacs & + + +Console mode + +Start xemacs with -nw in a terminal (native or X11) window + + bash$ xemacs -nw + +The current stable Cygwin version of XEmacs is 21.4.x. But there is also a +Cygwin test release version (21.5.x) available for download via setup.exe. +To use all the standard packages with XEmacs you should download the following +two packages: + +xemacs-sumo - XEmacs standard packages +xemacs-mule-sumo - XEmacs MULE (MUlti Lingual Emacs) packages + +An alternative native distribution of XEmacs for +Windows based systems can be downloaded from +http://xemacs.org/Download/win32/index.html";>http://xemacs.org/Download/win32/index.html. +It uses an InnoSetup Kit based installer. Ciao Volker
Re: FAQ entries about emacs
Hi Volker, On Feb 22 21:37, Dr. Volker Zell wrote: > > Corinna Vinschen writes: > > > Hi Volker, > > can you do me a favor? Can you have a look into the FAQ entries "Is > > there a Cygwin port of GNU Emacs?" and the next one "What about NT > > Emacs?" and suggest a rewrite? The information given in these two FAQ > > entries is certainly outdated, but I'm not quite sure how to rephrase > > them. What especially bugs me is the reference to X11 which, as far as > > I know, is not correct for XEmacs. Maybe (but that's just a vague idea > > from an Emacs non-user) it might be a good idea to pull the two FAQ > > entries together into one "Is there a Cygwin port of Emacs?" and just > > talk about XEmacs and GNU emacs, whatever the actual difference is. > > --- /o/download/faq-using.xml.orig2009-02-22 20:36:51.078125000 +0100 > +++ /o/download/faq-using.xml 2009-02-22 21:34:36.359375000 +0100 > @@ -806,12 +806,50 @@ Thank you! Unfortunately I have a problem. The patch applies cleanly, but the result doesn't build. The easy part was to fix the usage of `&' in the screen sections, they just have to be converted to `&'. But the really big problem is that the and markers are not correctly balanced. I tried to fix that myself, but it occured to me that I'm not sure what your exact intention was. Can you have another look, please? Thank you, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: FAQ entries about emacs
> Corinna Vinschen writes: > Hi Volker, > can you do me a favor? Can you have a look into the FAQ entries "Is > there a Cygwin port of GNU Emacs?" and the next one "What about NT > Emacs?" and suggest a rewrite? The information given in these two FAQ > entries is certainly outdated, but I'm not quite sure how to rephrase > them. What especially bugs me is the reference to X11 which, as far as > I know, is not correct for XEmacs. Maybe (but that's just a vague idea > from an Emacs non-user) it might be a good idea to pull the two FAQ > entries together into one "Is there a Cygwin port of Emacs?" and just > talk about XEmacs and GNU emacs, whatever the actual difference is. --- /o/download/faq-using.xml.orig 2009-02-22 20:36:51.078125000 +0100 +++ /o/download/faq-using.xml 2009-02-22 21:34:36.359375000 +0100 @@ -806,12 +806,50 @@ -What about XEmacs? +Is there a Cygwin port of XEmacs? -For a concise description of the current situation with XEmacs, see -this message from the Cygwin mailing list: -http://cygwin.com/ml/cygwin/2002-11/msg00609.html";>http://cygwin.com/ml/cygwin/2002-11/msg00609.html. +Yes. It can be used in three different modes: + +X11 (http://cygwin.com/xfree/";>http://cygwin.com/xfree/) GUI + +You have to set the DISPLAY environment variable +before starting xemacs. + + bash$ DISPLAY=127.0.0.1:0 xemacs & + + +Windows native GUI + +You have to unset the DISPLAY environment variable +before starting xemacs. + + + bash$ DISPLAY= xemacs & + +Console mode + +Start xemacs with -nw in a terminal (native or X11) window + + + bash$ xemacs -nw + + +The current stable Cygwin version of XEmacs is 21.4.x. But there is also a +Cygwin test release version (21.5.x) available for download via setup.exe. + +To use all the standard packages with XEmacs you should download the following +two packages: + +xemacs-sumo - XEmacs standard packages +xemacs-mule-sumo - XEmacs MULE (MUlti Lingual Emacs) packages + + +An alternative native distribution of XEmacs for +Windows based systems can be downloaded from +http://xemacs.org/Download/win32/index.html";>. It uses an +InnoSetup Kit based installer. + > Thanks in advance, > Corinna Ciao Volker
Re: FAQ entries about emacs
On Feb 13 21:08, Jari Aalto wrote: > Corinna Vinschen writes: http://cygwin.com/acronyms/#PCYMTNQREAIYR > Is there a Cygwin port of GNU Emacs > > - Change URL to point to NT Emacs FAQ's entry 'Where can I get > pre-compiled versions' instead of direct FTP link. > > What about NT Emacs? > > - Rewrite list setup > - Add environment variables section > - Offer two choices, A and B, where > B introduces M-x my-bash function. Thanks, applied. There was just a tiny bug in the code. It used an ampersand directly instead of using the HTML code "$amp;". I also moved the XEmacs section before the NT Emacs stuff and fixed the reference ("see below" -> "see above"). After all, we're talking about Cygwin in the first place, right? Now it would be cool if Volker could write a few words about the state of XEmacs :-} Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: FAQ entries about emacs
Corinna Vinschen writes: > Hi Volker, > > can you do me a favor? Can you have a look into the FAQ entries "Is > there a Cygwin port of GNU Emacs?" and the next one "What about NT > Emacs?" and suggest a rewrite? The information given in these two FAQ > entries is certainly outdated, but I'm not quite sure how to rephrase > them. What especially bugs me is the reference to X11 which, as far as > I know, is not correct for XEmacs. Here are few improvements. Diff is against CVS. Jari >From 463f84b9937e93064d813ec22968c384b1525dad Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 13 Feb 2009 20:52:05 +0200 Subject: [PATCH] faq-using.xml: Expand Emacs entries Is there a Cygwin port of GNU Emacs - Change URL to point to NT Emacs FAQ's entry 'Where can I get pre-compiled versions' instead of direct FTP link. What about NT Emacs? - Rewrite list setup - Add environment variables section - Offer two choices, A and B, where B introduces M-x my-bash function. Signed-off-by: Jari Aalto --- faq-using.xml | 92 +++- 1 files changed, 77 insertions(+), 15 deletions(-) diff --git a/faq-using.xml b/faq-using.xml index ea5caa9..fabde7d 100644 --- a/faq-using.xml +++ b/faq-using.xml @@ -809,10 +809,11 @@ Consider using XEmacs for now. What about NT Emacs? -If you want GNU Emacs with a native Microsoft GUI interface, then -you can either use XEmacs (see below), or you can fetch a native NT Emacs -from http://ftp.gnu.org/pub/gnu/emacs/windows/";>http://ftp.gnu.org/pub/gnu/emacs/windows/. See also the README file you get from the -same place. +If you want GNU Emacs with a native Microsoft GUI interface, +then you can either use XEmacs (see below), or native +NT Emacs: see section +http://www.gnu.org/software/emacs/windows/Getting-Emacs.html#Getting-Emacs";>Where can I get pre-compiled versions? in NT Emacs FAQ. + NT Emacs uses the Windows command shell by default. Since it is not a Cygwin application, it has no knowledge of Cygwin mounts. With those @@ -822,25 +823,86 @@ for the JDEE package (http://jdee.sunsite.dk/";>http://jdee.sunsite.d settings are for Emacs 21.1: + + ;; + ;; Initial setup + ;; + ;; This assumes that Cygwin is installed in C:\cygwin (the ;; default) and that C:\cygwin\bin is not already in your ;; Windows Path (it generally should not be). - ;; + (setq exec-path (cons "C:/cygwin/bin" exec-path)) (setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH"))) - ;; - ;; NT-emacs assumes a Windows command shell, which you change - ;; here. - ;; + + ;; LOGNAME and USER are expected in many Emacs packages + ;; Check these environment variables. + + (if (and (null (getenv "USER")) +;; Windows includes variable USERNAME, which is copied to +;; LOGNAME and USER respectively. +(getenv "USERNAME")) + (setenv "USER" (getenv "USERNAME"))) + + (if (and (getenv "LOGNAME") +;; Bash shell defines only LOGNAME +(null (getenv "USER"))) + (setenv "USER" (getenv "LOGNAME"))) + + (if (and (getenv "USER") +(null (getenv "LOGNAME"))) + (setenv "LOGNAME" (getenv "USER"))) + + ;; ;;; + ;; (A) M-x shell: This change M-x shell permanently + ;; ;;; + + ;; Would call Windows command interpreter. Change it. + (setq shell-file-name "bash") - (setenv "SHELL" shell-file-name) - (setq explicit-shell-file-name shell-file-name) - ;; - ;; This removes unsightly ^M characters that would otherwise - ;; appear in the output of java applications. - ;; + (setenv "SHELL" shell-file-name) + (setq explicit-shell-file-name shell-file-name) + + ;; Remove C-m (^M) characters that appear in output + (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m) + + ;; ;;; + ;; (B) *OR* call following function with M-x my-bash + ;; The M-x shell would continue to run standard Windows shell + ;; ;;; + + (defun my-bash (&optional buffer) + "Run Cygwin Bash shell in optional BUFFER; default *shell-bash*." + (autoload 'comint-check-proc "comint") + (interactive + (let ((name "*shell-bash*")) +(if current-prefix-arg +(setq name (read-string +(format "Cygwin shell buffer (default %s): " name) +(not 'initial-input) +
Re: FAQ entries about emacs
On Feb 12 15:48, Steffen Sledz wrote: > Corinna Vinschen schrieb: > > can you do me a favor? Can you have a look into the FAQ entries "Is > > there a Cygwin port of GNU Emacs?" and the next one "What about NT > > Emacs?" and suggest a rewrite? The information given in these two FAQ > > entries is certainly outdated, but I'm not quite sure how to rephrase > > them. What especially bugs me is the reference to X11 which, as far as > > I know, is not correct for XEmacs. Maybe (but that's just a vague idea > > from an Emacs non-user) it might be a good idea to pull the two FAQ > > entries together into one "Is there a Cygwin port of Emacs?" and just > > talk about XEmacs and GNU emacs, whatever the actual difference is. > > As you know i'm fighting with another problem. That's why i'm toiling to > publish an up-to-date GNU Emacs package. So please mention in FAQ 4.37 that > the current package is very old and unstable. > > In FAQ 4.38 you can refer to http://ftp.gnu.org/pub/gnu/emacs/windows/ and > the README in this directory. Since emacs-21.3 there is an official, native > GNU Emacs for Windows NT/2000/XP/Vista and Windows 95/98/Me. Thank you, I applied a patch along what you write above. For the latest version of these FAQ entries, see http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/doc/faq-using.xml?cvsroot=src Please refer to the latest version on this page for any further update. I guess we also should move the XEmacs entry up so that the native Emacs is referred last. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: FAQ entries about emacs
Corinna Vinschen schrieb: > can you do me a favor? Can you have a look into the FAQ entries "Is > there a Cygwin port of GNU Emacs?" and the next one "What about NT > Emacs?" and suggest a rewrite? The information given in these two FAQ > entries is certainly outdated, but I'm not quite sure how to rephrase > them. What especially bugs me is the reference to X11 which, as far as > I know, is not correct for XEmacs. Maybe (but that's just a vague idea > from an Emacs non-user) it might be a good idea to pull the two FAQ > entries together into one "Is there a Cygwin port of Emacs?" and just > talk about XEmacs and GNU emacs, whatever the actual difference is. As you know i'm fighting with another problem. That's why i'm toiling to publish an up-to-date GNU Emacs package. So please mention in FAQ 4.37 that the current package is very old and unstable. In FAQ 4.38 you can refer to http://ftp.gnu.org/pub/gnu/emacs/windows/ and the README in this directory. Since emacs-21.3 there is an official, native GNU Emacs for Windows NT/2000/XP/Vista and Windows 95/98/Me. Steffen
Re: FAQ entries about emacs
On Feb 12 15:36, Corinna Vinschen wrote: > Hi Volker, > > can you do me a favor? Can you have a look into the FAQ entries "Is > there a Cygwin port of GNU Emacs?" and the next one "What about NT > Emacs?" and suggest a rewrite? Urgh, there's a third one right afterwards called "What about XEmacs?" I missed it on first reading. Obviously it's outdated as well, given the URL from 2002... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
FAQ entries about emacs
Hi Volker, can you do me a favor? Can you have a look into the FAQ entries "Is there a Cygwin port of GNU Emacs?" and the next one "What about NT Emacs?" and suggest a rewrite? The information given in these two FAQ entries is certainly outdated, but I'm not quite sure how to rephrase them. What especially bugs me is the reference to X11 which, as far as I know, is not correct for XEmacs. Maybe (but that's just a vague idea from an Emacs non-user) it might be a good idea to pull the two FAQ entries together into one "Is there a Cygwin port of Emacs?" and just talk about XEmacs and GNU emacs, whatever the actual difference is. Thanks in advance, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat