AKF_SDS | 20 May 2013 04:57

ssh fails with "Bad file descriptor" on Interix (SFU)

Be forewarned, this is a bit complex...

I'm running Emacs v23.1 on Windows XP. Within Emacs I'm running
Gentoo-Prefix via Interix v3.5. With this setup ssh hangs without output. I
ran ssh with truss and received the output below. What stuck out to me was
the repetition of:
    close(/some number/) close failed: errno 9, Bad file descriptor

No other utilities have this issue. Has anyone seen this bug before? Can
anyone point me in the direction of a fix?

tracing pid 1795
getdata() getdata returned 0
getrlimit() getrlimit returned 0
pthread_inform_signals() pthread_inform_signals returned 0
unixpath2win() unixpath2win returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
open("/var/run/ld32.so.hints", 0x1) open failed: errno 2, No such file or
directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libssl.so.1.0.0", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libssl.so.1.0.0", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libssl.so.1.0.0", 0x1) open failed: errno 2, No such
(Continue reading)

benjamin.wootton | 9 May 2013 17:55

SIGINT on Windows

Hi guys

After an upgrade to Windows 7 Ctrl-C Ctrl-C has stopped working for me within shells i.e. it doesn't kill the running process. Instead it just prints C-c C-c to the buffer.

I've tried:

·         various versions of emacs

·         shell, eshell, term, ansi-term

·         calling cygwin bash as opposed to the normal Windows cmd.exe

·         adding the CYGWIN=tty env variable

 

But no beans. I simply cannot kill my long running processes.

Any ideas for this as it's killing my productivity!

Thanks!

 

Ben

 

Visit our website at http://www.ubs.com 

This message contains confidential information and is intended only 
for the individual named. If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system. 

E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission. 
If verification is required please request a hard-copy version. This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments. 

UBS Limited is authorised by the Prudential Regulation Authority 
and regulated by the Financial Conduct Authority and the Prudential 
Regulation Authority.

UBS AG is a public company incorporated with limited liability in 
Switzerland domiciled in the Canton of Basel-City and the Canton of 
Zurich respectively registered at the Commercial Registry offices in 
those Cantons with Identification No: CH-270.3.004.646-4 and having 
respective head offices at Aeschenvorstadt 1, 4051 Basel and 
Bahnhofstrasse 45, 8001 Zurich, Switzerland and is authorised and 
regulated by the Financial Market Supervisory Authority in 
Switzerland.  Registered in the United Kingdom as a foreign company 
with No: FC021146 and having a UK Establishment registered at 
Companies House, Cardiff, with No: BR 004507.  The principal office 
of UK Establishment: 1 Finsbury Avenue, London EC2M 2PP.  In the 
United Kingdom, UBS AG is authorised by the Prudential Regulation 
Authority and subject to regulation by the Financial Conduct 
Authority and limited regulation by the Prudential Regulation 
Authority.  Details about the extent of our regulation by the 
Prudential Regulation Authority are available from us on request.

UBS reserves the right to retain all messages. Messages are protected 
and accessed only in legally justified cases. 
Ken Goldman | 6 May 2013 22:09
Picon
Favicon

UltraVNC and C-A chords

(Sending to an emacs group, because who else tries to do this)

I'm running UltraVNC from Windows 7 to Linux.  UltraVNC does not pass 
chords like C-A-q and C-A-\.

Any work around?

Tony Cappellini | 28 Apr 2013 06:07
Picon

OS specific behavior with dired



I'm relatively new to emacs, and wanted to start with my init.el empty,
so that I could modify it gradually and learn how the changes affect the behavior of emacs.

With that in mind, my init.el is still pretty lean and basic.
I also use the same init.el file between my Windows machines and my Macbook Pro.

I'm using Emacs 23.3 on both Windows & Mac

I have not modified the behavior of dired, but it behaves a little differently for each OS.
On the Mac, dired opens up two vertical windows, on Windows it opens up two horizontal windows.
While that isn't significantly different, It  makes me wonder what other gotchas are waiting to cause me problems
learning to use Emacs.

So- to start, I'd like to modify init.el so that dired opens vertical windows for both machines.
I already have code in my init.el to execute Windows specific and Mac specific changes (f needed)

1. How do I modify dired's behavior so that vertical windows are always opened?
2. How do I modify dired so that it doesn't keep switching from one window to the other when I click on a directory name? There's no reason why dired doesn't re-use the same window. With that in mind If I want to go back to the
previous selection, how would I do this?

Thanks


bsamek | 20 Apr 2013 04:02
Picon

Not all files displayed in directory listing

If I do 'M-x shell' and type 'dir', it doesn't display every file. The java
executables are missing (http://i.imgur.com/7JwyDED.png). I also can't
invoke 'java' from the Emacs shell. What's going on?

Thanks,

Brian

--
View this message in context: http://emacs.1067599.n5.nabble.com/Not-all-files-displayed-in-directory-listing-tp284073.html
Sent from the Emacs - Windows - Help mailing list archive at Nabble.com.

m silverstri | 19 Apr 2013 19:59
Picon
Gravatar

Add 'emacs' as file association in Ubuntu

Hi,

I download, compile and install 'emacs 24.3' on my ubuntu machine.
I can run it via command prompt, but who can I add 'emacs' as one of the "Open with Other application" applications inubuntu nautilus?

I can't select 'emacs' when I right click a file from ubuntu nautilus.

Thank you.

Tony Cappellini | 18 Apr 2013 02:25
Picon

Project files with emacs


I'm relatively new to emacs, but have used it on & off over the years.
At this point in time, I'm starting from scratch and have gone through the tutorial, specific chapters of 2 different books on emacs,
and a number of emacs websites. Many of emacs features I don't need, but the ones I do need I"m having problems getting them to work.


I've done a fair amount of googling too, so I've come to the conclusion that I'm probably using the wrong nomenclature to do my searching.

Many "programmers editors" have the notion of a "project file", which associates many files to a project.
I haven't been able to find out how to do this in emacs.

I work with a several proprietary scripting languages which don't need to be compiled, so make file and compilation are not an issue.
(I'm also working with Python files too, but getting Python mode working has been such a problem , that I'm getting ready to bail on emacs and use vim)

I'd just like to be able to associate several files with a project, so that they all get reopened the next time I'm working on that project.

Would someone point me to a website or docs on how to do this with emacs?

Thanks
Ken Goldman | 2 Apr 2013 17:54
Picon
Favicon

emacs 24 - mouse drag does not highlight

Something else changed between 23 and 24.  How do I get the 23
behavior back?

In 24, if I down-mouse-1 and start to drag to select a region, the 
region is not highlighted until I release the mouse.  In 23, it 
highlighted as I dragged, what I consider normal for both Windows and Linux.

I don't have anything in .emacs for mouse-1.

C-h k mouse-1 says this when I release it:
<down-mouse-1> at that spot runs the command mouse-drag-region

I have this in .emacs to make cut and paste work for Windows 7 and emacs 24.

(setq select-active-regions nil)
(setq mouse-drag-copy-region t)

Also, transient-mark-mode is t.

Stephen Leake | 30 Mar 2013 07:15
Favicon

Re: emacs support for multiple clipboard formats

"Buchs, Kevin" <buchs.kevin <at> mayo.edu> writes:

> Thanks for the response. For example, visit http://sphinx-doc.org/ in a
> web browser (Chrome in my case). Select the contents of the page and
> Copy. Now if you go to paste into MS Word or Libre Office and choose
> Paste Special, you will see one of the available formats is HTML. If you
> paste it you will get working hyperlinks. Now, pasting into emacs, you
> get none of that but only the literal text, as Emacs is using only the
> Text format of the clipboard. You can reproduce such a paste in
> LibreOffice if you choose Paste Special and then text format. So,
> Windows is offering up several formats on the clipboard at once. 

Actually, it's Chrome that's offering several formats, and
LibreOffice that knows how to handle the formats. Windows clipboard
makes that possible, as does X clipboard.

> I was wondering if any work has been done to access the other formats,
> like HTML, which as you say is all ASCII text. It would be super to
> paste such HTML into org-mode, for example, and have it just pick up
> the hyperlinks.

So the issue is how to get Emacs to understand how to request the set of
available formats from the clipboard, and how to select one. Also then
to present that list to the user.

Have you tried this on X windows? I would not be surprised if Emacs on X
understands multi-format clipboards.

--

-- 
-- Stephe

Buchs, Kevin | 29 Mar 2013 14:57
Favicon

emacs support for multiple clipboard formats

One of the cases where I seem to resort to tools other than emacs for capturing information involve copying from a web browser with text with hyperlinks. Has anyone opened a door to emacs accepting clipboard input in html format or other non-plain-text?

 

Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 | buchs.kevin <at> mayo.edu

Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | http://www.mayo.edu

 

Christoph | 19 Mar 2013 03:52
Picon

Emacs 24.3 Windows Binaries released

The Emacs 24.3 Windows Binaries have been published in http://ftp.gnu.org/gnu/emacs/windows/ The binaries were built with gcc 4.7.2 on Windows 7 using the following libraries: giflib-4.1.4-1 gnutls-3.0.9 jpeg-6b-4 libXpm-3.5.8 libpng-1.4.3-1 tiff-3.8.2-1 zlib-1.2.5-2libiconv-1.13.1-1libxml2-2.7.8
See the README.W32 file included in the distribution for more information on how to obtain binaries necessary to make use of certain Emacs features. Please report any bugs that you come across via M-x report-emacs-bugs, or email emacs-devel <at> gnu.org For questions, please email emacs-devel <at> gnu.org


Gmane