1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

7381 commits

Author SHA1 Message Date
Martin Rudalics
56f2de103f * frame.c (delete_frame): New function derived from
Fdelete_frame to handle Qnoelisp value for FORCE argument.
Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
(Fdelete_frame): Call delete_frame.  Remove line from doc-string
saying that FORCE non-nil doesn't run `delete-frame-functions'.
* frame.h: Extern delete_frame.
* window.c (window_loop):
* terminal.c (delete_terminal):
* xterm.c (x_connection_closed):
* xfns.c (Fx_hide_tip):
* w32fns.c (Fx_hide_tip): Call delete_frame instead of
Fdelete_frame.
2008-12-22 09:40:33 +00:00
Jason Rumney
1fc200d61f (uniscribe_encode_char): Return FONT_INVALID_CHAR
when character maps to .notdef character.
2008-12-21 15:52:26 +00:00
Stefan Monnier
5e252df234 (cmd_error_internal): Don't exit in daemon mode, bug#1310. 2008-12-21 04:13:46 +00:00
Jason Rumney
99b72cc426 (Fmake_terminal_frame): Raise an error when called from
a graphical frame on Windows.
2008-12-20 16:00:39 +00:00
Jason Rumney
54ea0c877f *** empty log message *** 2008-12-20 15:46:24 +00:00
Jan Djärv
acc49a520a *** empty log message *** 2008-12-20 15:31:27 +00:00
Chong Yidong
6ea151235e * minibuf.c (Fread_buffer): Doc fix. 2008-12-20 10:24:41 +00:00
Jason Rumney
b2dab6c8f7 (decode_coding): Clear chars_at_source flag when using charbuf. 2008-12-20 08:01:12 +00:00
Dan Nicolaescu
6d1921bece (serial_configure): Fix typo. 2008-12-19 23:06:39 +00:00
Dan Nicolaescu
f4f634e8de * sysdep.c (system_process_attributes): Add implementation for Solaris.
* s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2008-12-19 20:58:37 +00:00
Dan Nicolaescu
53934c983b Include alloca.h. 2008-12-19 20:52:15 +00:00
Dan Nicolaescu
06e111a6ef Reorganize implementation of Flist_system_processes and
Fsystem_process_attributes.  No functional changes.
* process.c: Don't #include pwd.h, grp.h and limits.h.
(Flist_system_processes): Just call list_system_processes.
(Fsystem_process_attributes): Just call system_process_attributes.
(procfs_list_system_processes, time_from_jiffies)
(ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
(procfs_get_total_memory, procfs_system_process_attributes): Move ...

* sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
(list_system_processes): Rename from
procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
Provide a do nothing implementation.
(system_process_attributes): Rename from
procfs_list_system_processes.
(ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
(procfs_get_total_memory):  Enclose in #ifdef GNU_LINUX.

* w32.c (list_system_processes): Rename from
w32_list_system_processes.
(system_process_attributes): Rename from
w32_system_process_attributes.

* s/gnu-linux.h (LISTPROC, PROCATTR): Remove.

* process.h (w32_list_system_processes)
(w32_system_process_attributes): Remove.
(list_system_processes, system_process_attributes): New
prototypes.

* config.nt (LISTPROC, PROCATTR): Remove.
2008-12-19 19:50:35 +00:00
Kenichi Handa
6a705b232b (xfont_decode_coding_xlfd): New function.
(xfont_encode_coding_xlfd): New function.
(xfont_list_pattern): Decode XLFD by iso-8859-1.
(xfont_list): Decode and encode XLFD by iso-8859-1.
(xfont_match): Likewise.
(xfont_list_family): Likewise.
(xfont_open): Likewise.
2008-12-19 05:42:14 +00:00
Glenn Morris
5582fbc7bd Format and file name fixes, for AUTHORS. 2008-12-19 03:07:25 +00:00
Juanma Barranquero
f013149203 Fix typos and author's names. 2008-12-19 01:50:43 +00:00
Jan Djärv
bfd203253d (xg_frame_resized): Remove check if rows/columns have
changed.
(xg_tool_bar_proxy_callback): Put focus on the frame after we have
clicked on a detached tool bar button.
2008-12-18 18:48:08 +00:00
Jan Djärv
5a13094105 (xg_frame_resized): Remove check if rows/columns have
changed.
2008-12-18 17:45:28 +00:00
Dan Nicolaescu
fd95644b93 * emacs.c (main): Print and error and exit when no data is read
from the pipe.

* startup.el (command-line): Do not mention the server name in
case the user has not mentioned it, print a more explicit message.

* emacsclient.c (start_daemon_and_retry_set_socket): Improve error
checking.
2008-12-18 08:48:26 +00:00
Juanma Barranquero
d483550724 Fix typos. 2008-12-17 15:25:54 +00:00
Jason Rumney
e6eee6aec1 (w32font_has_char): Always return -1. 2008-12-17 14:41:44 +00:00
Kenichi Handa
a35dd56b88 (font_open_entity): Fix previous change. 2008-12-16 11:30:23 +00:00
Dan Nicolaescu
0e3635c29a Include <limits.h>. 2008-12-16 08:04:45 +00:00
Chong Yidong
b5356c3948 * font.c (font_update_drivers): Fix mistake in reconstructing the
driver list.

* font.c (font_clear_cache): Fix format of font cache data.
2008-12-16 03:32:46 +00:00
Chong Yidong
e2cbc40157 * xftfont.c (xftfont_open): Free Xft font pattern if
XftFontOpenPattern fails.

* xterm.c (x_free_frame_resources): Remove extraneous call to
free_frame_faces.
2008-12-15 01:57:19 +00:00
Chong Yidong
b131d53521 * xterm.c (x_delete_display): Move xim_close_dpy call to
x_delete_terminal.
(x_delete_terminal): Call xim_close_dpy.
2008-12-13 22:08:58 +00:00
Jason Rumney
e6df533648 * w32font.c (intern_font_name): New function.
(add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
(w32font_open_internal, Fx_select_font): Decode font name.
(fill_in_logfont, list_all_matching_fonts): Encode font name.

* w32font.h (intern_font_name): Declare new function.

* w32uniscribe.c (add_opentype_font_name_to_list):
Use intern_font_name.
2008-12-13 17:56:27 +00:00
Chong Yidong
9f2554de93 * frame.c (Fdelete_frame): Call free_font_driver_list.
* font.c (free_font_driver_list): Implement missing function.
2008-12-13 15:40:22 +00:00
Chong Yidong
3d9bec9a6b * font.c (free_font_driver_list): Implement missing function. 2008-12-13 15:39:39 +00:00
Chong Yidong
20d68145d2 * w32term.c (w32_term_init): Don't initialize the image cache
here; it will be done in init_frame_faces.

* xterm.h (struct xim_inst_t): Definition moved from xterm.c.
(struct x_display_info): Remove unused member null_pixel.  New
member xim_callback_data.

* xterm.c (struct xim_inst_t): Definition moved to xterm.h.
(xim_initialize): Save pointer to callback function data.
(xim_close_dpy): Free callback function data.  Call XCloseIM,
reverting 2008-11-04 change by David Smith.
(x_term_init): Don't initialize the image cache here; it will be
done in init_frame_faces.  Remove ancient "null_pixel" cruft.
(x_delete_display): Free x_dnd_atoms member.
2008-12-13 05:39:41 +00:00
Kenichi Handa
96f9306b8b (font_rescale_ratio): Moved to font.c. 2008-12-13 03:29:30 +00:00
Chong Yidong
8d5b496470 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame. 2008-12-13 01:20:43 +00:00
Dan Nicolaescu
97c6058a7a (init_tty): Move setting the terminal name before the
potential user: maybe_fatal.
2008-12-12 00:54:31 +00:00
Chong Yidong
ec4e88d751 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
all callers changed.  Call free_frame_faces to free the face cache.
2008-12-11 20:38:26 +00:00
Jason Rumney
8ec71e2341 (fill_in_logfont): Don't assume symbol script means SYMBOL_CHARSET. 2008-12-11 14:58:04 +00:00
Jason Rumney
b4233ec94b (uniscribe_encode_char): Increase glyph buffer size for surrogates. 2008-12-11 13:02:52 +00:00
Juanma Barranquero
011a014396 Move decoding of locale info from Lisp to C.
* src/w32proc.c (Fw32_get_locale_info): Decode long form of locale name.

* lisp/w32-fns.el (w32-list-locales): Revert part of 2008-10-17 change;
  decoding of long locale info is now done in `w32-get-locale-info'.
2008-12-11 09:40:44 +00:00
Juanma Barranquero
3c309f345b * process.c (Fsystem_process_attributes, syms_of_process):
Fix typo in name of Ssystem_process_attributes.
  Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2008-12-11 08:46:35 +00:00
Juanma Barranquero
fedc6ab555 * syntax.c (Fmodify_syntax_entry): Doc fix. 2008-12-11 01:49:46 +00:00
Juanma Barranquero
ba3de0e8f9 * font.c (Ffont_spec): Move usage to end of docstring. 2008-12-10 19:25:26 +00:00
Juanma Barranquero
e3eea1fca2 Fix whitespace breakage by bug#870 (and it wasn't even me, this time). 2008-12-10 16:31:26 +00:00
Jason Rumney
9d32f81899 (add_font_entity_to_list): Limit unicode-sip fonts to those that
contain characters beyond the bmp.
2008-12-10 16:10:36 +00:00
Jason Rumney
174f1c745d (Qcham): New symbol.
(font_supported_scripts): Add cham, and comments for other new
scripts in bitfield from OpenType spec.
2008-12-10 15:37:46 +00:00
Juanma Barranquero
2ae37cf085 Fix typos. 2008-12-10 10:44:34 +00:00
Kenichi Handa
7b6494787a (fc_charset_table): Add "unicode-sip".
(ftfont_spec_pattern): Lookup fc_charset_table for the regisry
Qunicode_sip.
2008-12-10 06:01:44 +00:00
Juanma Barranquero
2133e2d138 * coding.c (QCdefault_char): Rename from QCdefalut_char.
(Fcoding_system_put): Use QCdefault_char.
  (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2008-12-10 01:04:19 +00:00
Juanma Barranquero
4ccfa1c0d1 Fix typos. 2008-12-10 00:53:33 +00:00
Chong Yidong
74d819ebdb * xftfont.c (syms_of_xftfont): Fix typo. 2008-12-09 23:54:20 +00:00
Chong Yidong
9af886ee0f * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead
buffer.
2008-12-09 23:07:56 +00:00
Dan Nicolaescu
7c19d3aedb (main): Close daemon_pipe on exec. 2008-12-08 16:22:40 +00:00
Chong Yidong
567826bbb2 * termchar.h (struct tty): New members termcap_term_buffer and
termcap_strings_buffer.

* term.c (encode_terminal_code): Free any previous memory blocks
before calling xmalloc for encode_terminal_src or
encode_terminal_dst.
(maybe_fatal): Buffer argument deleted.  Don't free buffer here.
All callers changed.
(init_tty): Store termcap data and string buffers in new struct
tty members termcap_term_buffer and termcap_strings_buffer.
(delete_tty): Free them.
(syms_of_term): Initialize encode_terminal_src and
encode_terminal_dst.
2008-12-08 14:43:45 +00:00