* Re: Using Cygwin Emacs
@ 2011-05-16 4:35 Sayth Renshaw
2011-05-16 7:27 ` Markus Hoenicka
2011-05-16 10:14 ` Ken Brown
0 siblings, 2 replies; 8+ messages in thread
From: Sayth Renshaw @ 2011-05-16 4:35 UTC (permalink / raw)
To: cygwin
On 5/15/2011 9:27 PM, Sayth Renshaw wrote:
I first the first time today looked more in depth at the packages
available in Cygwin as I was seaching for gdb to use as my debugger in
emacs. I found emacs in the package list!.
Found this wiki page
http://www.emacswiki.org/cgi-bin/wiki?CygwinizedEmacsHOWTO though its
layout is a little bit confused, it tries to advise on using emacs in
cygwin.
That wiki page is way out of date. I would advise you to ignore it. If
you install Cygwin's emacs package, you'll find more up-to-date
information in /usr/share/doc/Cygwin/emacs.README .
Before I venture down this path are there many people using
this package? Is it advantageous to use this package(cygwin)? Or is
there not much upside to a user using the default 23.2 zip package?
There are plenty of Cygwin users who use (Cygwin's) emacs. I don't
understand your last two questions. What do you mean by the "default
23.2 zip package"? But if you want to know what it's like to use
Cygwin's emacs package instead of whatever you're using now, why not
just try it?
Ken Brown
Cygwin's emacs maintainer
I have installed emacs and followed the instruction to create the
emacs-shortcut.
renshaw@RenshawResidence /usr/bin
$ make-emacs-shortcut
*** Info: Created /usr/local/bin/emacs.xml.
*** Info: Created /usr/bin/emacs.lnk.
*** Info: You should move it to the desired location.
*** Info: Feel free to edit its properties
*** Info: or the contents of /usr/local/bin/emacs.xml.
However emacs will not run from the shortcut, so I tried running emacs
from the bash shell, however it gave a message that this required the
bourne shell. Is there a way to set the Bourne shell as default so i
can launch emacs from it?
Sayth
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 4:35 Using Cygwin Emacs Sayth Renshaw
@ 2011-05-16 7:27 ` Markus Hoenicka
2011-05-16 10:14 ` Ken Brown
1 sibling, 0 replies; 8+ messages in thread
From: Markus Hoenicka @ 2011-05-16 7:27 UTC (permalink / raw)
To: cygwin
Ken Brown was heard to say:
> There are plenty of Cygwin users who use (Cygwin's) emacs. I don't
> understand your last two questions. What do you mean by the "default
> 23.2 zip package"? But if you want to know what it's like to use
> Cygwin's emacs package instead of whatever you're using now, why not
> just try it?
>
>
I assume "23.2 zip package" refers to the native NTEmacs port of GNU
Emacs. I've used this port in the past mainly because it offers file
drag&drop support. However, I came across serious speed issues of this
port (see
http://www.mhoenicka.de/system-cgi/blog/index.php?itemid=2022) so I'd
also recommend to use Cygwin's emacs. Works out of the box over here.
regards,
Markus
--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 4:35 Using Cygwin Emacs Sayth Renshaw
2011-05-16 7:27 ` Markus Hoenicka
@ 2011-05-16 10:14 ` Ken Brown
2011-05-16 17:21 ` Lee Maschmeyer
1 sibling, 1 reply; 8+ messages in thread
From: Ken Brown @ 2011-05-16 10:14 UTC (permalink / raw)
To: cygwin
On 5/16/2011 12:35 AM, Sayth Renshaw wrote:
> I have installed emacs and followed the instruction to create the
> emacs-shortcut.
>
> renshaw@RenshawResidence /usr/bin
> $ make-emacs-shortcut
> *** Info: Created /usr/local/bin/emacs.xml.
> *** Info: Created /usr/bin/emacs.lnk.
> *** Info: You should move it to the desired location.
> *** Info: Feel free to edit its properties
> *** Info: or the contents of /usr/local/bin/emacs.xml.
>
> However emacs will not run from the shortcut,
Did you install the mintty and run2 packages? See
/usr/share/doc/Cygwin/emacs.README, under "Runtime requirements".
> so I tried running emacs
> from the bash shell, however it gave a message that this required the
> bourne shell. Is there a way to set the Bourne shell as default so i
> can launch emacs from it?
There's no need to change your default shell; emacs runs fine under
bash. Could there be something in your .emacs file that's causing the
problem? To eliminate this possibility, start emacs with the command
'emacs -Q', preferably in a mintty window. If something goes wrong,
please copy and paste the error message in your reply. Also, please
follow the problem-reporting guidelines at
http://cygwin.com/problems.html
including the part about attaching the output of 'cygcheck -s -v -r'.
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 10:14 ` Ken Brown
@ 2011-05-16 17:21 ` Lee Maschmeyer
2011-05-16 17:38 ` Ken Brown
0 siblings, 1 reply; 8+ messages in thread
From: Lee Maschmeyer @ 2011-05-16 17:21 UTC (permalink / raw)
To: Ken Brown, cygwin
Since the OP mentioned emacs version 22 and since Cygwin's emacs is 23.3.1
(emacs --version), this makes me wonder if more fundamental suggestions
might be needed. If the following is self-evident please pardon me but
perhaps we need to check on some very basic stuff:
1. All installations of Cygwin packages should be done through Cygwin's
setup program. Go to cygwin.com, click on the Install Cygwin link, download
setup.exe and run it. Do this for every installation or update of every
Cygwin component.
2. To get Cygwin's Emacs (23.3.1), open the Editors category and click on
emacs (setup says it's 23.3.2).
3. If that doesn't work, my guess would be to follow the reporting
instructions at the end of every message.
4. And if all else fails, read the friendly manual.
Castigation, denigration and mastication cheerfully accepted(tm),
--
Lee Maschmeyer
Wayne State University Computing Center
5925 Woodward, #281
Detroit MI 48202
USA
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 17:21 ` Lee Maschmeyer
@ 2011-05-16 17:38 ` Ken Brown
0 siblings, 0 replies; 8+ messages in thread
From: Ken Brown @ 2011-05-16 17:38 UTC (permalink / raw)
Cc: cygwin
On 5/16/2011 1:19 PM, Lee Maschmeyer wrote:
> Since the OP mentioned emacs version 22 and since Cygwin's emacs is 23.3.1
> (emacs --version), this makes me wonder if more fundamental suggestions
> might be needed. If the following is self-evident please pardon me but
> perhaps we need to check on some very basic stuff:
>
> 1. All installations of Cygwin packages should be done through Cygwin's
> setup program. Go to cygwin.com, click on the Install Cygwin link, download
> setup.exe and run it. Do this for every installation or update of every
> Cygwin component.
>
> 2. To get Cygwin's Emacs (23.3.1), open the Editors category and click on
> emacs (setup says it's 23.3.2).
>
> 3. If that doesn't work, my guess would be to follow the reporting
> instructions at the end of every message.
>
> 4. And if all else fails, read the friendly manual.
One small correction: Cygwin's current emacs package is 23.3-2. (That's
a hyphen before the 2, not a dot.) But emacs will report its version as
23.3.1. The final ".1" has nothing to do with Cygwin's package
numbering and should be ignored. If you really want to know what it
means, see http://cygwin.com/ml/cygwin/2010-08/msg00891.html .
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Using Cygwin Emacs
@ 2011-05-16 1:28 Sayth Renshaw
2011-05-16 2:27 ` Ken Brown
2011-05-25 8:34 ` Oleksandr Gavenko
0 siblings, 2 replies; 8+ messages in thread
From: Sayth Renshaw @ 2011-05-16 1:28 UTC (permalink / raw)
To: cygwin
I first the first time today looked more in depth at the packages
available in Cygwin as I was seaching for gdb to use as my debugger in
emacs. I found emacs in the package list!.
Found this wiki page
http://www.emacswiki.org/cgi-bin/wiki?CygwinizedEmacsHOWTO though its
layout is a little bit confused, it tries to advise on using emacs in
cygwin. Before I venture down this path are there many people using
this package? Is it advantageous to use this package(cygwin)? Or is
there not much upside to a user using the default 23.2 zip package?
Sayth
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 1:28 Sayth Renshaw
@ 2011-05-16 2:27 ` Ken Brown
2011-05-25 8:34 ` Oleksandr Gavenko
1 sibling, 0 replies; 8+ messages in thread
From: Ken Brown @ 2011-05-16 2:27 UTC (permalink / raw)
To: cygwin
On 5/15/2011 9:27 PM, Sayth Renshaw wrote:
> I first the first time today looked more in depth at the packages
> available in Cygwin as I was seaching for gdb to use as my debugger in
> emacs. I found emacs in the package list!.
>
> Found this wiki page
> http://www.emacswiki.org/cgi-bin/wiki?CygwinizedEmacsHOWTO though its
> layout is a little bit confused, it tries to advise on using emacs in
> cygwin.
That wiki page is way out of date. I would advise you to ignore it. If
you install Cygwin's emacs package, you'll find more up-to-date
information in /usr/share/doc/Cygwin/emacs.README .
> Before I venture down this path are there many people using
> this package? Is it advantageous to use this package(cygwin)? Or is
> there not much upside to a user using the default 23.2 zip package?
There are plenty of Cygwin users who use (Cygwin's) emacs. I don't
understand your last two questions. What do you mean by the "default
23.2 zip package"? But if you want to know what it's like to use
Cygwin's emacs package instead of whatever you're using now, why not
just try it?
Ken Brown
Cygwin's emacs maintainer
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using Cygwin Emacs
2011-05-16 1:28 Sayth Renshaw
2011-05-16 2:27 ` Ken Brown
@ 2011-05-25 8:34 ` Oleksandr Gavenko
1 sibling, 0 replies; 8+ messages in thread
From: Oleksandr Gavenko @ 2011-05-25 8:34 UTC (permalink / raw)
To: cygwin
On 16.05.2011 4:27, Sayth Renshaw wrote:
> Before I venture down this path are there many people using
> this package? Is it advantageous to use this package(cygwin)?
Advantage is in full integration of Emacs and Cygwin tools.
Watching this list I found that many people use Cygwin Emacs package.
> Or is there not much upside to a user using the default 23.2 zip package?
I use native GNU Emacs. It's GIU look more pretty and Emacs understand
Windows-style path is good thing when you need "goto-error" feature
for MSVC compiler, etc...
With "cygwin-mount.el" native Emacs understand Cygwin-style path.
Also I use:
(when (eq system-type 'windows-nt)
;; Workaround for Cygwin shell, when set 'CYGWIN=noglob'. By default
'shell-quote-argument'
;; quoted by double '\' chars, this cause failure.
(defun shell-quote-argument (argument)
(concat "'" argument "'")
)
;; Workaround for Cygwin when 'shell-file-name' is 'bash'.
(setq null-device "/dev/null")
)
;; Use shell from Cygwin/MinGW.
(setq shell-file-name "bash")
(setenv "SHELL" "/bin/bash")
(setq explicit-bash-args '("-i"))
(setq explicit-sh-args '("-i"))
and some utils like "hg" require wrapper to make it .exe. Just compile:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MAX_STR_LEN 500
int main(int argc, char **argv)
{
char cmd[MAX_STR_LEN] = "";
char **cmdarg = malloc((argc+1) * sizeof(char *));
char *start, *end;
start = strrchr(*argv, '/');
if (start)
start++;
else
start = *argv;
end = strrchr(start, '.');
if (end) {
memcpy(cmd, start, end - start);
cmd[end - start] = '\0';
} else
strcpy(cmd, start);
for (int i = 0; i < argc; i++)
cmdarg[i] = argv[i];
cmdarg[argc] = NULL;
return execvp(cmd, cmdarg);
}
and take name to executable as shell/perl/python/... script
with ".exe" suffix.
Also I have troubles with quoting of " and {. For example
to make vc-hg.el work properly I patch it:
--- vc-hg.el 2011-01-08 19:45:14.000000000 +0200
+++ vc-hg-new.el 2011-03-17 17:20:26.187500000 +0200
@@ -218,7 +218,7 @@
vc-hg-program nil t nil
"--config" "alias.parents=parents"
"--config" "defaults.parents="
- "parents" "--template" "{rev}" (file-relative-name file)))
+ "parents" "--template" "\\{rev\\}" (file-relative-name file)))
;; Some problem happened. E.g. We can't find an `hg'
;; executable.
(error nil)))))))
@@ -324,7 +324,7 @@
(defun vc-hg-revision-table (files)
(let ((default-directory (file-name-directory (car files))))
(with-temp-buffer
- (vc-hg-command t nil files "log" "--template" "{rev} ")
+ (vc-hg-command t nil files "log" "--template" "\\{rev\\} ")
(split-string
(buffer-substring-no-properties (point-min) (point-max))))))
That's all you need to friend native Emacs with Cygwin.
I am happy with this setup for 3 year with native Emacs from 22.1 to 23.3.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-05-25 8:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 4:35 Using Cygwin Emacs Sayth Renshaw
2011-05-16 7:27 ` Markus Hoenicka
2011-05-16 10:14 ` Ken Brown
2011-05-16 17:21 ` Lee Maschmeyer
2011-05-16 17:38 ` Ken Brown
-- strict thread matches above, loose matches on Subject: below --
2011-05-16 1:28 Sayth Renshaw
2011-05-16 2:27 ` Ken Brown
2011-05-25 8:34 ` Oleksandr Gavenko
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).