* every release of emacs, i have to fix comint
@ 2019-05-01 22:03 Samuel Wales
2019-05-03 5:56 ` Andreas Seltenreich
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Samuel Wales @ 2019-05-01 22:03 UTC (permalink / raw)
To: help-gnu-emacs
a few releases ago, like 23 or 24, shell mode prompts stopped showing
the beautiful colors set up in .bashrc or .profile or wherever they
are set.
instead, the prompt was set to a new face, in a single color.
to fix it, i have to copy comint.el and quote out a couple of lines,
which i do haphazardly but works.
for example:
;; alpha
'(add-text-properties prompt-start (point) '(rear-nonsticky t)))
is there a variable someplace that says "please don't chnge my bash prompt"?
thanks.
--
The Kafka Pandemic
What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: every release of emacs, i have to fix comint
2019-05-01 22:03 every release of emacs, i have to fix comint Samuel Wales
@ 2019-05-03 5:56 ` Andreas Seltenreich
2019-05-03 23:40 ` Samuel Wales
2019-05-04 10:14 ` Eli Zaretskii
2 siblings, 0 replies; 5+ messages in thread
From: Andreas Seltenreich @ 2019-05-03 5:56 UTC (permalink / raw)
To: Samuel Wales; +Cc: help-gnu-emacs
Samuel Wales writes:
> for example:
>
> ;; alpha
> '(add-text-properties prompt-start (point) '(rear-nonsticky t)))
>
> is there a variable someplace that says "please don't chnge my bash prompt"?
I don't think there is, but I often use Advises to modify the behavior
of Emacs' functions from my ~/.emacs without having to modify the source
itself or having a copy+pasted, outdated version there.
(info "(elisp) Advising Functions")
Maybe that's an option in your case as well?
regards,
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: every release of emacs, i have to fix comint
2019-05-01 22:03 every release of emacs, i have to fix comint Samuel Wales
2019-05-03 5:56 ` Andreas Seltenreich
@ 2019-05-03 23:40 ` Samuel Wales
2019-05-06 7:03 ` Tadeus Prastowo
2019-05-04 10:14 ` Eli Zaretskii
2 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2019-05-03 23:40 UTC (permalink / raw)
To: help-gnu-emacs
i am surprised that nobody else notices the lack of bash prompt
coloring in shell mode?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: every release of emacs, i have to fix comint
2019-05-01 22:03 every release of emacs, i have to fix comint Samuel Wales
2019-05-03 5:56 ` Andreas Seltenreich
2019-05-03 23:40 ` Samuel Wales
@ 2019-05-04 10:14 ` Eli Zaretskii
2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2019-05-04 10:14 UTC (permalink / raw)
To: help-gnu-emacs
> From: Samuel Wales <samologist@gmail.com>
> Date: Wed, 1 May 2019 15:03:22 -0700
>
> a few releases ago, like 23 or 24, shell mode prompts stopped showing
> the beautiful colors set up in .bashrc or .profile or wherever they
> are set.
>
> instead, the prompt was set to a new face, in a single color.
>
> to fix it, i have to copy comint.el and quote out a couple of lines,
> which i do haphazardly but works.
>
> for example:
>
> ;; alpha
> '(add-text-properties prompt-start (point) '(rear-nonsticky t)))
>
> is there a variable someplace that says "please don't chnge my bash prompt"?
It seems the prompt highlighting was originally controlled by a user
option, but then was made unconditional 17 years ago.
I suggest to file a feature request bug report to make the
highlighting conditional again.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: every release of emacs, i have to fix comint
2019-05-03 23:40 ` Samuel Wales
@ 2019-05-06 7:03 ` Tadeus Prastowo
0 siblings, 0 replies; 5+ messages in thread
From: Tadeus Prastowo @ 2019-05-06 7:03 UTC (permalink / raw)
To: Samuel Wales; +Cc: help-gnu-emacs
On Sat, May 4, 2019 at 1:40 AM Samuel Wales <samologist@gmail.com> wrote:
>
> i am surprised that nobody else notices the lack of bash prompt
> coloring in shell mode?
I noticed it when I used Emacs 24 shipped with Ubuntu 16.04. I got
the color back by something like what you do but more elaborate based
on git://git.sv.gnu.org/emacs.git at commit
792d44b3c31d2a682607ab8b79ae7d26b7402f41 that solves
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20084.
But, since Emacs 25, I have no need to do what you do anymore because
it has been fixed. To get the coloring, I have the following in my
.emacs:
(custom-set-faces '(comint-highlight-prompt ((t nil))))
HTH.
--
Best regards,
Tadeus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-05-06 7:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-01 22:03 every release of emacs, i have to fix comint Samuel Wales
2019-05-03 5:56 ` Andreas Seltenreich
2019-05-03 23:40 ` Samuel Wales
2019-05-06 7:03 ` Tadeus Prastowo
2019-05-04 10:14 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.