aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/minibuf.c29
2 files changed, 35 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0a04daf0c5b..b71af77179c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,23 +1,28 @@
12008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
4 if some non-hidden buffers are selected by string&pred.
5
12008-05-19 Kenichi Handa <handa@m17n.org> 62008-05-19 Kenichi Handa <handa@m17n.org>
2 7
3 * font.c (font_list_entities): Fix handling of cache. 8 * font.c (font_list_entities): Fix handling of cache.
4 (font_matching_entity): Likewise. 9 (font_matching_entity): Likewise.
5 10
6 * ftfont.c (cs_iso8859_1): Deleted. 11 * ftfont.c (cs_iso8859_1): Delete.
7 (ft_face_cache): New variable. 12 (ft_face_cache): New variable.
8 (struct ftfont_info): New member fc_charset_idx; 13 (struct ftfont_info): New member fc_charset_idx;
9 (ftfont_build_basic_charsets): Deleted. 14 (ftfont_build_basic_charsets): Delete.
10 (fc_charset_table): New variable. 15 (fc_charset_table): New variable.
11 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME 16 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12 . FC_CHARSET_IDX) as :font-entity property in the font entity. 17 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13 Callers changed. 18 Callers changed.
14 (ftfont_lookup_cache, ftfont_get_charset): New funcitons. 19 (ftfont_lookup_cache, ftfont_get_charset): New funcitons.
15 (ftfont_spec_pattern): New argument fc_charset_idx. Check 20 (ftfont_spec_pattern): New argument fc_charset_idx.
16 registry more rigidly. Callers changed. 21 Check registry more rigidly. Change callers.
17 (ftfont_open, ftfont_close, ftfont_has_char): Adjustd for the 22 (ftfont_open, ftfont_close, ftfont_has_char): Adjustd for the
18 change of :font-entity property of the font. 23 change of :font-entity property of the font.
19 24
20 * xftfont.c (xftfont_open): Ajusted for the change of :font-entity 25 * xftfont.c (xftfont_open): Ajuste for the change of :font-entity
21 property of the font. 26 property of the font.
22 27
232008-05-18 Juanma Barranquero <lekktu@gmail.com> 282008-05-18 Juanma Barranquero <lekktu@gmail.com>
diff --git a/src/minibuf.c b/src/minibuf.c
index 5a7a4b28449..907c21cff44 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -781,10 +781,10 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
781 Lisp_Object histval; 781 Lisp_Object histval;
782 782
783 /* If variable is unbound, make it nil. */ 783 /* If variable is unbound, make it nil. */
784 if (EQ (SYMBOL_VALUE (Vminibuffer_history_variable), Qunbound))
785 Fset (Vminibuffer_history_variable, Qnil);
786 784
787 histval = Fsymbol_value (Vminibuffer_history_variable); 785 histval = find_symbol_value (Vminibuffer_history_variable);
786 if (EQ (histval, Qunbound))
787 Fset (Vminibuffer_history_variable, Qnil);
788 788
789 /* The value of the history variable must be a cons or nil. Other 789 /* The value of the history variable must be a cons or nil. Other
790 values are unacceptable. We silently ignore these values. */ 790 values are unacceptable. We silently ignore these values. */
@@ -1959,7 +1959,28 @@ The arguments STRING and PREDICATE are as in `try-completion',
1959 if (NILP (flag)) 1959 if (NILP (flag))
1960 return Ftry_completion (string, Vbuffer_alist, predicate); 1960 return Ftry_completion (string, Vbuffer_alist, predicate);
1961 else if (EQ (flag, Qt)) 1961 else if (EQ (flag, Qt))
1962 return Fall_completions (string, Vbuffer_alist, predicate, Qt); 1962 {
1963 Lisp_Object res = Fall_completions (string, Vbuffer_alist, predicate);
1964 if (SCHARS (string) > 0)
1965 return res;
1966 else
1967 { /* Strip out internal buffers. */
1968 Lisp_Object bufs = res;
1969 /* First, look for a non-internal buffer in `res'. */
1970 while (CONSP (bufs) && SREF (XCAR (bufs), 0) == ' ')
1971 bufs = XCDR (bufs);
1972 if (NILP (bufs))
1973 /* All bufs in `res' are internal, so don't trip them out. */
1974 return res;
1975 res = bufs;
1976 while (CONSP (XCDR (bufs)))
1977 if (SREF (XCAR (XCDR (bufs)), 0) == ' ')
1978 XSETCDR (bufs, XCDR (XCDR (bufs)));
1979 else
1980 bufs = XCDR (bufs);
1981 return res;
1982 }
1983 }
1963 else /* assume `lambda' */ 1984 else /* assume `lambda' */
1964 return Ftest_completion (string, Vbuffer_alist, predicate); 1985 return Ftest_completion (string, Vbuffer_alist, predicate);
1965} 1986}