|
|
Up |
|
|
  |
Author: j2thomasj2thomas Date: Jul 12, 2006 07:27
Alex McDonald wrote:
> But then, English has one distinct advantage; it is possibly the most
> absorbent language there is. It co-opts words freely and without
> hesitation.
I don't know any other language well enough to tell how true that is
for them too.
Computer languages are basicly imperative. You are telling the computer
what to do. Given a list of hardware-specific operations, I think any
turing-complete language should be able to say anything that any other
turing-complete language can say. But they differ in what's *easy* to
say.
Similarly, I think human languages mostly give you similar capabilities
for things that are easy to measure. Things you can point at. Things
where you get quick feedback about whether you misunderstood. About
those things you can usually do easy translation.
But people learn subtle meanings from context. Different cultures give
different subtleties, whether they officially use the same language or
not. And when you learn a different language and a different culture
the details won't quite match up.
|
| Show full article (2.00Kb) |
|
| | 12 Comments |
|
  |
Author: William DafferWilliam Daffer Date: Jul 12, 2006 19:56
> Hi guys,
> I have a question on the M-x term environment
> I'm using ksh and I have some aliases defined in .emacs_ksh.
Are you sourcing this file in your init files anywhere?
> When I invoke M-x term, the aliases are not there.
>
> Should I define the aliases somewhere else?
Is there some reason why you aren't using M-x shell?
whd
--
DISTANCE, n. The only thing that the rich are willing for the poor to
call theirs, and keep.
-- Ambrose Bierce: _The Devil's Dictionary_
|
| |
|
| | 2 Comments |
|
  |
Author: op132650cop132650c Date: Jul 13, 2006 06:27
> Is there some reason why you aren't using M-x shell?
I don't want to detour the attention about the question of William Daffer, but i
also prefer M-x term instead of M-x shell, because the output of M-x shell is
not well formatted compared to M-x term.
Now i put the following question:
What's the difference between M-x shell and M-x term?
How can i configure M-x shell to be well formatted?
One example of the bad formatation of the output of M-x shell, is when i do ls
-la.
I get the following:
]]] file1 ]]] file3^]]] ]]] file5^]]]
]]] file2 ]]] file4^]]] ]]] file6^]]]
With the M-x term i get well formatted:
file1 file3 file5
file2 file4 file6
Citando William Daffer wabcmail.com>:
|
| Show full article (1.47Kb) |
| no comments |
|
  |
Author: yz7502yz7502 Date: Jul 13, 2006 07:03
Hi William,
I used to use M-x shell, but I have one application which requires
X-window, and the dumb term of M-x Shell does not support it.
On the other hand , M-x term seems to miss some env stuff.
Thanks for your reply.
Yadong
|
| |
| no comments |
|
  |
Author: William DafferWilliam Daffer Date: Jul 13, 2006 08:10
> Hi William,
> I used to use M-x shell, but I have one application which requires
> X-window, and the dumb term of M-x Shell does not support it.
>
> On the other hand , M-x term seems to miss some env stuff.
I assume that your test of 'term mode' happened after setting up your
initialization files such that your normal shell saw these new aliases
and then logging out and back in again, or, in some other way making
those aliases available to whatever process started the emacs you
attempted 'M-x term' in, right?
whd
--
RICH, adj. Holding in trust and subject to an accounting the property
of the indolent, the incompetent, the unthrifty, the envious and the
luckless. That is the view that prevails in the underworld, where the
Brotherhood of Man finds its most logical development and candid
advocacy. To denizens of the midworld the word means good and wise.
-- Ambrose Bierce: _The Devil's Dictionary_
|
| |
| no comments |
|
  |
Author: William DafferWilliam Daffer Date: Jul 13, 2006 08:16
op132650c@mail.telepac.pt writes:
>> Is there some reason why you aren't using M-x shell?
>
> I don't want to detour the attention about the question of William
> Daffer, but i also prefer M-x term instead of M-x shell, because the
> output of M-x shell is not well formatted compared to M-x term.
>
> Now i put the following question:
>
> What's the difference between M-x shell and M-x term?
M-x term actually does terminal emulation where M-x shell
doesn't. At least that's the only difference I see from 'info emacs
shell'
|
| Show full article (1.60Kb) |
| no comments |
|
  |
Author: Kevin RodgersKevin Rodgers Date: Jul 13, 2006 08:14
> I have a question on the M-x term environment
> I'm using ksh and I have some aliases defined in .emacs_ksh.
> When I invoke M-x term, the aliases are not there.
>
> Should I define the aliases somewhere else?
If those aliases are not specific to ksh when run under Emacs, then
yes you should define them in the $ENV file. I've used a couple
different approaches to setting ENV in my .profile:
case "$-" in
(*i*) export ENV=$HOME/.kshrc ;;
(*) unset ENV ;;
esac
or:
if [[ -f $HOME/.kshrc ]]; then
export KSHRC=$HOME/.kshrc
export ENV='${KSHRC[(_$-=0)+(_=1)-_${-%%*i*}]}'
fi
|
| Show full article (0.64Kb) |
| no comments |
|
  |
Author: yz7502yz7502 Date: Jul 13, 2006 09:17
William Daffer wrote:
> I assume that your test of 'term mode' happened after setting up your
> initialization files such that your normal shell saw these new aliases
> and then logging out and back in again,
I think this is it.
I did restart emacs, but I don't think I logged out yesterday.
I am very happy to see my aliases after I restarted everything this
morning.
Thank you all.
|
| |
| no comments |
|
  |
|
|
  |
|
|
  |
Author: SergeiSergei Date: Jul 14, 2006 03:35
--- Tim X:
...
> The difference in 'formatting' you have observed is because M-x shell
> doesn't understand ANSI escape codes for colour. When you use the ls
> command and have it configured to display the output using different
> colours for different file types, it does this by using andsi colour
> escape sequences. However, M-x shell does not understand these "out of
> the box".
> There are at least two solutions -
(THREE suggestions snipped :)
[...]
I've put setting LS_COLORS under a condition in my .bashrc :
if [ "$EMACS" != "t" ]
then
PS1="$PS1_long"
if [ "$OSVAR" = "Linux" ]; then
LS_COLORS='...[set it to your liking] ...'
export LS_COLORS
else # Darwin:
|
| Show full article (0.83Kb) |
| no comments |
|
|
|
|