Stephen Leake | 1 Aug 2012 12:21
Favicon

Re: Unable to launch cygwin bash (M-x shell) in win 7 64 bit

Sivaram Neelakantan <nsivaram.net <at> gmail.com> writes:

> Right, thanks for that, I did as you suggested but it didn't work
>
> In the Roaming folder in AppData, created a file ~/.emacs_bash with
> just

Do you have the HOME env set, or are you using the default location
(which is AppData/Roaming)? If you have HOME set to something else,
that's where .emacs needs to go.

If you used Emacs to navigate to ~/, then you've got the right place.

To double check, add an 'echo' statement, and check to see the message
at shell creation.

> PS1="$ "
>
> as the only line in and tried with a new instance of Emacs and M-x
> shell, it still gives
>
>
> bash: cannot set terminal process group (-1): Inappropriate ioctl for device
> bash: no job control in this shell

I get this message as well, but only at shell creation. So I have not
bothered to track it down.

> ]0;/cygdrive/c/gnu/emacs-24.1/bin
> sivaramn <at> HRS3 /cygdrive/c/gnu/emacs-24.1/bin
(Continue reading)

Sivaram Neelakantan | 1 Aug 2012 19:00
Picon

Re: Unable to launch cygwin bash (M-x shell) in win 7 64 bit

On Wed, Aug 01 2012,Stephen Leake wrote:
[snipped 30 lines]

>
> However, I get one default prompt, then the prompt I've set. That's
> because .emacs_bash is run as the first command the shell executes; it
> is created, gives one prompt, then runs .emacs_bash.
>
> So is this only on the first line for you? Do subsequent command lines
> show the prompt you've set?
>
> Can you set PS1 from the command line, after the shell is created?

Looks like (require 'setup-cygwin) was interfering with HOME and other
details and that's why things were getting borked.  Removed the above
package and it reads the .enacs_bash file correctly. 

Thanks, once again, for your help.  I set it to 

PS1="\e[0;31m\u <at> \h:\$ \e[m "

 sivaram
 -- 

Drew Adams | 1 Aug 2012 19:28
Picon
Favicon

Re: Unable to launch cygwin bash (M-x shell) in win 7 64 bit

> Looks like (require 'setup-cygwin) was interfering with HOME and other
> details and that's why things were getting borked.  Removed the above
> package and it reads the .enacs_bash file correctly.

I don't think `setup-cygwin.el' changes HOME.

AFAIK it does not change any env vars except SHELL and PATH.

It adds your Cygwin dir to PATH.  And it sets SHELL, `shell-file-name',
`explicit-shell-file-name', and `ediff-shell' to bash.exe in your Cygwin dir. 

Can you please try to figure out which part of `setup-cygwin.el' interferes with
your settings?  You can do this easily by commenting out different sections -
e.g. bifurcate until you find the offending bit.

Let me know and I'll try to make a reasonable fix to `setup-cygwin.el'.  Thx.

Sivaram Neelakantan | 2 Aug 2012 06:52
Picon

Re: Unable to launch cygwin bash (M-x shell) in win 7 64 bit

On Wed, Aug 01 2012,Drew Adams wrote:

>> Looks like (require 'setup-cygwin) was interfering with HOME and other
>> details and that's why things were getting borked.  Removed the above
>> package and it reads the .enacs_bash file correctly.
>
> I don't think `setup-cygwin.el' changes HOME.
>

I probably should STFU instead of making wild assertions!  You're
right that there was nothing about HOME in it.  However, setup-cygwin
had something that was interfering with the shell invocation, which
again, would be my fault rather than anything of yours.  More below.

[snipped 9 lines]

> Let me know and I'll try to make a reasonable fix to `setup-cygwin.el'.  Thx.

My .emacs snip for cygwin
--8<---------------cut here---------------start------------->8---
(setq exec-path  (cons "C:/gnu/bin/" exec-path))
(setq exec-path (cons "C:/cygwin/usr/bin" (cons "C:/cygwin/bin" exec-path)))
(setq exec-path  (cons "C:/MiKTeX2.9/miktex/bin" exec-path))
(setenv "PATH" (concat
"C:\\MiKTeX2.9\\miktex\\bin;C:\\cygwin\\bin;C:\\cygwin\\usr\\bin;C:\\gnu\\bin\\;" (getenv "PATH")))
(setq shell-file-name "/usr/bin/bash")
(setenv "SHELL" shell-file-name) 
(setq explicit-shell-file-name shell-file-name)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
(require 'cygwin-mount)
(Continue reading)

酒狼 | 4 Aug 2012 17:04
Favicon

I need some help -- I bind the key C-m to function next-line, but it does not work.

it seems like that "ctrl + m" is same as [Enter] in emacs. I add this in file ~/.emacs:
(global-set-key (kbd "C-m") 'next-line)
but it doesn't work. when i hit ctrl and m, it adds a  new line instead of goes to the next line.
and i've try another two style below:
(global-set-key "\C-m" 'next-line) 
(global-set-key [C-m] 'next-line)  

same as above,"ctrl + [" seems to be same as [ESC], in emacs.

I can't find the binding of  the keys above when i hit "C-h b".

so, can somebody just give me a hand?  
thanks.


BTW, other customize keys work ok, that means it's not the config-file's problem.

Fidler,Matt,FORT WORTH,R&D | 6 Aug 2012 16:29

Marmalade

Has anyone uploaded marmalade packages under windows?

 

Matt.

 

Matthew Fidler, M.Stat, Ph.D.

Expert Modeler         

 

Alcon Laboratories, Inc.

6201 South Freeway, Fort Worth, TX 76134-2099, USA

T +1 817 302 5959 | F +1 817 302 1906

matt.fidler <at> alconlabs.com

 

 

 


This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments.

Thank you.
Fidler,Matt,FORT WORTH,R&D | 6 Aug 2012 16:32

Editing Macros in Emacs

I have to do some database programming in Microsoft Access, and was wondering if anyone has been able to change the editor to emacs.

 

Matt.

 

Matthew Fidler, M.Stat, Ph.D.

Expert Modeler         

 

Alcon Laboratories, Inc.

6201 South Freeway, Fort Worth, TX 76134-2099, USA

T +1 817 302 5959 | F +1 817 302 1906

matt.fidler <at> alconlabs.com

 

 

 


This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments.

Thank you.
Masood Ghayoomi | 15 Aug 2012 13:48
Picon

character composition (Arabic BiDi)

Hi,

I have installed Emacs 24 which supports bidirectional texts.
I can type a text with Arabic script in Emacs 24 but the only problem which exists is that the letters are in *dis-joined / decomposed* forms.
Eg: The word کتب is displayed as ک‌ت‌ب
The libotf-dev package is properly installed.
How is it possible to fix this problem to have the character composition in Arabic script?

Best Regards,
Masood.

Jason Rumney | 15 Aug 2012 15:26
Picon

Re: character composition (Arabic BiDi)

Masood Ghayoomi <masood29 <at> gmail.com> writes:

> Hi,
>
> I have installed Emacs 24 which supports bidirectional texts.
> I can type a text with Arabic script in Emacs 24 but the only problem
> which exists is that the letters are in *dis-joined / decomposed*
> forms.
> Eg: The word کتب is displayed as ک‌ت‌ب
> The libotf-dev package is properly installed.

libotf is not used on Windows.  The native equivalent is Uniscribe,
which is installed by default on every version of Windows since XP.  If
you can view Arabic properly in other applications, then your system
should have a good enough version of uniscribe, but there are downloads
available on Microsoft's support pages if you have an old buggy version
(usually this is only a concern for Tibetan, Burmese and some Indic
languages, which were not supported by Windows until later).

This may be due to the font being used - try changing the font to a
specific Arabic font, rather than one for which Arabic happens to be one
of many languages covered. And make sure you are using a modern Truetype
font, not a bitmap font or older Truetype, as only fonts with OpenType
tables will have the neccesary logic built in to join characters.

Also, try searching the archives of emacs-devel on
mail.gnu.org. Something like this has been discussed before, and I know
a solution was found between Eli Zaretskii, the reporter and Kenichi
Handa, but it may have come too late to get into 24.1, and may need some
manual configuration to get working in the released version.

Jeffery Rancier | 16 Aug 2012 16:26

shellex executable

Hello,

 

Does anyone have a copy of this file?

 

Thanks.


Gmane