From cd276f6ef3d46505dcaf6245c303713023e74ae2 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sat, 14 Jul 2012 19:44:39 +0800 Subject: [PATCH] Add a new bitmap exclamation-mark --- lisp/ChangeLog | 4 ++++ lisp/fringe.el | 2 +- src/ChangeLog | 4 ++++ src/fringe.c | 17 +++++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2915af65d15..e2964ddb1b5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-07-14 Leo Liu + + * fringe.el: New bitmap exclamation-mark. + 2012-07-14 Jan Djärv * progmodes/cc-cmds.el (c-defun-name): Recognize Objective-C methods diff --git a/lisp/fringe.el b/lisp/fringe.el index 0c7e7eb194c..329370b5fe5 100644 --- a/lisp/fringe.el +++ b/lisp/fringe.el @@ -43,7 +43,7 @@ ;; Define the built-in fringe bitmaps and setup default mappings (when (boundp 'fringe-bitmaps) - (let ((bitmaps '(question-mark + (let ((bitmaps '(question-mark exclamation-mark left-arrow right-arrow up-arrow down-arrow left-curly-arrow right-curly-arrow left-triangle right-triangle diff --git a/src/ChangeLog b/src/ChangeLog index 29ec8ffb6d2..eca3f526bc1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-07-14 Leo Liu + + * fringe.c: Add a new bitmap exclamation-mark. + 2012-07-14 Eli Zaretskii * gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference. diff --git a/src/fringe.c b/src/fringe.c index 4ab9c770326..8de14ef4544 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -107,6 +107,22 @@ struct fringe_bitmap static unsigned short question_mark_bits[] = { 0x3c, 0x7e, 0x7e, 0x0c, 0x18, 0x18, 0x00, 0x18, 0x18}; +/* A exclamation mark. */ +/* + ...XX... + ...XX... + ...XX... + ...XX... + ...XX... + ...XX... + ...XX... + ........ + ...XX... + ...XX... +*/ +static unsigned short exclamation_mark_bits[] = { + 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18}; + /* An arrow like this: `<-'. */ /* ...xx... @@ -432,6 +448,7 @@ static struct fringe_bitmap standard_bitmaps[] = { { NULL, 0, 0, 0, 0, 0 }, /* NO_FRINGE_BITMAP */ { FRBITS (question_mark_bits), 8, 0, ALIGN_BITMAP_CENTER, 0 }, + { FRBITS (exclamation_mark_bits), 8, 0, ALIGN_BITMAP_CENTER, 0 }, { FRBITS (left_arrow_bits), 8, 0, ALIGN_BITMAP_CENTER, 0 }, { FRBITS (right_arrow_bits), 8, 0, ALIGN_BITMAP_CENTER, 0 }, { FRBITS (up_arrow_bits), 8, 0, ALIGN_BITMAP_TOP, 0 }, -- 2.39.2