unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] term.el make bold face customizable
@ 2009-09-23 13:16 Ivan Kanis
  2009-09-23 16:41 ` Dan Nicolaescu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ivan Kanis @ 2009-09-23 13:16 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

Hi Dan,

Could you apply the following trivial patch?

Kind regards,
-- 
Ivan
Kanis http://kanis.fr

If you want others to be happy, practice compassion.
If you want to be happy, practice compassion.
    -- Dalai Lama 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: term.patch --]
[-- Type: text/x-diff, Size: 1238 bytes --]

--- tmp/term.el	2009-09-23 15:04:37.000000000 +0200
+++ hg/lisp/misc/term.el	2009-09-23 15:10:06.000000000 +0200
@@ -482,6 +482,9 @@
   :type '(choice (const nil) file)
   :group 'term)
 
+(defvar term-bold-attribute '(:weight bold)
+  "Set to '(:weight normal) to disable bold")
+
 (defvar term-prompt-regexp "^"
   "Regexp to recognize prompts in the inferior process.
 Defaults to \"^\", the null string at BOL.
@@ -3228,8 +3231,8 @@
 			    term-default-bg-color
 			  (elt ansi-term-color-vector term-ansi-current-bg-color))))
 	    (when term-ansi-current-bold
-	      (setq term-current-face
-		    (append '(:weight bold) term-current-face)))
+	      (setq term-current-face 
+		    (append term-bold-attribute term-current-face)))
 	    (when term-ansi-current-underline
 	      (setq term-current-face
 		    (append '(:underline t) term-current-face))))
@@ -3257,7 +3260,7 @@
 			(elt ansi-term-color-vector term-ansi-current-bg-color))))
 	  (when term-ansi-current-bold
 	    (setq term-current-face
-		  (append '(:weight bold) term-current-face)))
+		  (append term-bold-attribute term-current-face)))
 	  (when term-ansi-current-underline
 	    (setq term-current-face
 		  (append '(:underline t) term-current-face))))))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-24  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 13:16 [PATCH] term.el make bold face customizable Ivan Kanis
2009-09-23 16:41 ` Dan Nicolaescu
2009-09-23 20:52 ` Stefan Monnier
2009-09-24  1:16 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).