diff options
| author | Paul Eggert | 2011-04-03 23:29:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-03 23:29:11 -0700 |
| commit | 56201685698d93de22abf64377d4cf5e641ed6b3 (patch) | |
| tree | 9a4be84d37ce5cb91fe47e279d1755d6646ece66 /src | |
| parent | 790771b18cec8904df45088de109b948402827ac (diff) | |
| download | emacs-56201685698d93de22abf64377d4cf5e641ed6b3.tar.gz emacs-56201685698d93de22abf64377d4cf5e641ed6b3.zip | |
* font.c (font_list_entities): Redo for clarity,
so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/font.c | 14 |
2 files changed, 11 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 49ba5ef3462..ebe2e082e66 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-04-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * font.c (font_list_entities): Redo for clarity, | ||
| 4 | so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX. | ||
| 5 | |||
| 1 | 2011-04-03 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-04-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars. | 8 | * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars. |
diff --git a/src/font.c b/src/font.c index 5d67c0032e6..e01f67a95f6 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -2697,14 +2697,12 @@ font_list_entities (Lisp_Object frame, Lisp_Object spec) | |||
| 2697 | for (i = FONT_FOUNDRY_INDEX; i <= FONT_REGISTRY_INDEX; i++) | 2697 | for (i = FONT_FOUNDRY_INDEX; i <= FONT_REGISTRY_INDEX; i++) |
| 2698 | ASET (scratch_font_spec, i, AREF (spec, i)); | 2698 | ASET (scratch_font_spec, i, AREF (spec, i)); |
| 2699 | for (i = FONT_WEIGHT_INDEX; i < FONT_EXTRA_INDEX; i++) | 2699 | for (i = FONT_WEIGHT_INDEX; i < FONT_EXTRA_INDEX; i++) |
| 2700 | { | 2700 | if (i != FONT_SPACING_INDEX) |
| 2701 | ASET (scratch_font_spec, i, Qnil); | 2701 | { |
| 2702 | if (! NILP (AREF (spec, i))) | 2702 | ASET (scratch_font_spec, i, Qnil); |
| 2703 | need_filtering = 1; | 2703 | if (! NILP (AREF (spec, i))) |
| 2704 | if (i == FONT_DPI_INDEX) | 2704 | need_filtering = 1; |
| 2705 | /* Skip FONT_SPACING_INDEX */ | 2705 | } |
| 2706 | i++; | ||
| 2707 | } | ||
| 2708 | ASET (scratch_font_spec, FONT_SPACING_INDEX, AREF (spec, FONT_SPACING_INDEX)); | 2706 | ASET (scratch_font_spec, FONT_SPACING_INDEX, AREF (spec, FONT_SPACING_INDEX)); |
| 2709 | ASET (scratch_font_spec, FONT_EXTRA_INDEX, AREF (spec, FONT_EXTRA_INDEX)); | 2707 | ASET (scratch_font_spec, FONT_EXTRA_INDEX, AREF (spec, FONT_EXTRA_INDEX)); |
| 2710 | 2708 | ||