1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 08:41:47 -07:00
Commit graph

28555 commits

Author SHA1 Message Date
Juanma Barranquero
66aa4eb37d Fix typos in comments. 2010-01-17 03:24:22 +01:00
Chong Yidong
617364feb7 * xterm.c (event_handler_gdk): Block input (Bug#5037). 2010-01-16 15:20:32 -05:00
Chong Yidong
4fe22cdf59 Command line arg processing fix (Bug#5392)
* src/emacs.c (standard_args): Adjust arg priorities to reflect how
they are processed in startup.el.

* lisp/startup.el (command-line): Remove unused --icon-type arg.
Handle --display arg, passing it to command-line-1 (Bug#5392).
2010-01-16 14:28:59 -05:00
Eli Zaretskii
f5700c5e7e Reformat copyright line. 2010-01-16 06:58:42 -05:00
Andreas Schwab
e118d2be3b Update $(lisp) and $(shortlisp) to match changes in loadup.el
* Makefile.in (lisp, shortlisp): Update.
2010-01-16 10:40:57 +01:00
Stefan Monnier
523ae620e8 (x_term_init): Instead of inhibiting GC while running Lisp
code, link the new kboard into all_kboard before running Lisp code,
and protect the new terminal with GCPRO (Bug#5365).
(x_term_init): Remove unused var `atom'.
(x_delete_display, x_delete_terminal): Remove unused var `i'.
2010-01-15 23:49:37 -05:00
Jan Djärv
f0d138880a Take desktop panels into account when sizing frames so they fit on the screen.
xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
(Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
to find out usable size of the desktop.  Don't make frames larger than
this. Bug #3643.
2010-01-15 18:04:14 +01:00
Kenichi Handa
fa0cff43e8 from trunk 2010-01-15 14:13:05 +09:00
Kenichi Handa
cc320f07d4 xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed. 2010-01-15 14:09:50 +09:00
Chong Yidong
7ffdf101fb Fix Qnone definition in NS files.
* nsterm.m (Qnone): Define here.
* nsfns.m (Qnone): Move definition to nsterm.m.
2010-01-14 20:46:53 -05:00
Juanma Barranquero
5a89f0a793 Fix typos in comments. 2010-01-14 19:37:23 +01:00
Juanma Barranquero
b643362c6c Fix typos in ChangeLogs and NEWS files. 2010-01-14 19:29:36 +01:00
Kenichi Handa
d12bd91784 Fix handling of euc-xx coding systems. 2010-01-14 20:31:16 +09:00
Kenichi Handa
35fb32880c from trunk 2010-01-14 12:54:04 +09:00
Kenichi Handa
d9a7c14092 Make auto-composition work on all buffers even if they are fundamental mode. 2010-01-14 12:44:36 +09:00
Chong Yidong
63286bb2ec Fix gc bug in terminal allocation.
* xterm.c (x_term_init): Avoid garbage-collecting the new terminal
during call to vendor-specific-keysyms (Bug#5365).
2010-01-13 13:35:36 -05:00
Juanma Barranquero
768c0c0f39 Fix typos in comments and ChangeLogs. 2010-01-13 16:38:28 +01:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
YAMAMOTO Mitsuharu
c2623ee747 Call SIGNAL_THREAD_CHECK from signal handlers.
* keyboard.c (input_available_signal) [SYNC_INPUT]:
Call SIGNAL_THREAD_CHECK (Bug#5333).

* atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
Call SIGNAL_THREAD_CHECK.
2010-01-13 13:42:45 +09:00
Stefan Monnier
0b5397c271 Try to fix bug#5314. This is probably not the final word, tho.
* buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
recent-auto-save-p as a side-effect.
* buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
* buffer.c (Fkill_buffer, reset_buffer):
* editfns.c (Fsubst_char_in_region):
* fileio.c (Finsert_file_contents, Fdo_auto_save)
(Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2010-01-12 23:33:42 -05:00
Kenichi Handa
d1bf28dc12 merge trunk 2010-01-13 10:33:19 +09:00
Kenichi Handa
dc954cb273 Display buffer name, etc. in mode line by composing correctly. 2010-01-13 10:29:58 +09:00
YAMAMOTO Mitsuharu
4a00eacab8 * keyboard.c (read_char): Don't apply previous change when current
buffer is unchanged by command execution.
2010-01-12 19:10:51 +09:00
Jan Djärv
60abb2870b keyboard.c (read_char): Return after executing from special map. 2010-01-12 09:12:52 +01:00
Glenn Morris
893db5bcf0 Replace emacs-pretest-bug with bug-gnu-emacs mailing list.
See http://lists.gnu.org/archive/html/emacs-devel/2009-12/msg00758.html

* emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
bug-gnu-emacs rather than emacs-pretest-bug.

* mail/emacsbug.el (report-emacs-bug-pretest-address): Set
it to bug-gnu-emacs rather than emacs-pretest-bug.

* CONTRIBUTE, NEWS: Use bug-gnu-emacs rather than emacs-pretest-bug
for bug reports for development versions.

* trouble.texi (Checklist): Use bug-gnu-emacs rather than
emacs-pretest-bug for bug reports for development versions.

* emacs-pretesters, make-announcement: Use bug-gnu-emacs rather
than emacs-pretest-bug for bug reports for development versions.

* INSTALL.BZR, README: Use bug-gnu-emacs rather than emacs-pretest-bug
for bug reports for development versions.
2010-01-11 21:11:05 -08:00
Chong Yidong
652fcc7136 * nsterm.m: Use DEFSYM for last change. 2010-01-11 09:58:59 -05:00
Chong Yidong
4d03ece09d * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
initializing the Lisp variables that depend on them.
2010-01-11 09:54:52 -05:00
YAMAMOTO Mitsuharu
1df47e3844 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
Clear areas that will not be updated after change of menu bar lines.
Clear the menu bar window's current matrix when the window gets empty.
2010-01-11 14:19:47 +09:00
Chong Yidong
e398c61cb1 Fix bounds checking for text properties in `format' (Bug#5306).
* intervals.h, textprop.c (extend_property_ranges): Return value
and args changed.  Discard properties that begin at or after the
new end (Bug#5306).

* editfns.c (Fformat): Caller changed.
2010-01-09 17:32:47 -05:00
Chong Yidong
e5a29a1070 Fix for Bug#4113.
* nsterm.m (ns_set_default_prefs): Delete function.
(syms_of_nsterm): Initialize ns_command_modifier,
ns_control_modifier, ns_function_modifier, ns_antialias_text, and
ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2010-01-09 15:31:26 -05:00
Chong Yidong
2f1c63846e * xdisp.c (pos_visible_p): Check for invisible text at the correct pos (Bug#4040). 2010-01-09 14:48:16 -05:00
Eli Zaretskii
d427a9fad2 editfns.c (Ffloat_time): Doc fix. 2010-01-09 16:16:10 +02:00
Jan Djärv
21b9df2f5a (Fx_create_frame): Don't create frame larger than display by default bug#3643. 2010-01-09 14:26:23 +01:00
YAMAMOTO Mitsuharu
4b00d3b159 Make line<->pixel_y conversion macros aware of native menu/tool bars.
They are placed above the internal border.  This supersedes special
treatment of native tool bars in the display code.

This fixes wrong display position of native menu bars and bogus mouse
highlighting of native tool bars, both of which can be found when
internal border width is large.  Also it fixes wrong flashed part on
visible bell with native menu bars.

* frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
(FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
windows above internal border.

* window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
(WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
windows above internal border.

* xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
tool bar windows specially.

* xfns.c (x_set_tool_bar_lines): Take account of menu bar height.

* xterm.c (x_after_update_window_line): Don't treat tool bar windows
specially.
(XTflash): Take account of menu bar height.

* w32term.c (x_after_update_window_line): Don't treat tool bar windows
specially.
2010-01-09 13:16:32 +09:00
Eli Zaretskii
69e2f18578 Fix format. 2010-01-08 23:42:14 +02:00
Jan Djärv
5075d85359 Frame width was not updated in fullscreen when scroll bars where removed/added.
(change_frame_size_1): newwidth == FRAME_COLS  (f) must
also be true before we can return early (bug #5339).
2010-01-08 12:41:57 +01:00
Jan Djärv
32d59dc3db Merge from trunk 2010-01-06 20:42:27 +01:00
Jan Djärv
b7f8e4f578 Forgot one. 2010-01-06 20:41:25 +01:00
Jan Djärv
d0cf45b702 Fix slowdown and wrong font choosed by XSETTINGS changes. bug #5157.
* font.c (font_open_entity): Enable chache and call cached_font_ok
for the driver if defined.
(QCuser_spec): New symbol.
(font_spec_from_name): Save name as user-spec.
(font_load_for_lface): Keep user-spec instead of name.
(font_open_by_name): Save name as user-spec.
(syms_of_font): Initialize QCuser_spec.

* xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
(xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
(syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.

* font.h (struct font_driver): Add cached_font_ok.

* font-setting.el (font-setting-change-default-font): Use user-spec
  instead of name.
2010-01-06 20:38:39 +01:00
Chong Yidong
474217c83c NS fixes for Bug#3233.
* nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
(Fns_display_usable_bounds): Rewrite, computing bounds properly
(Bug#3233).
2010-01-06 09:41:59 -07:00
Jan Djärv
4270727858 Fixing user-spec for fonts instead of using name. 2010-01-06 17:03:26 +01:00
Jan Djärv
c0e6d47dc5 xterm.c (x_clear_frame): Queue draw for scroll bars. 2010-01-06 16:55:00 +01:00
Jan Djärv
2889df585a Merge from mainline. 2010-01-05 15:42:39 +01:00
Jan Djärv
451f23ab90 Remove fprintf 2010-01-05 15:30:22 +01:00
Jan Djärv
7c583cd855 Handle change of internal-border width when maximized.
* xterm.c (x_new_font): Move code for setting rows/cols before
resizing ...
(x_set_window_size): ... to here. bug #2568.

* gtkutil.c (xg_clear_under_internal_border): New function.
(xg_frame_resized, xg_frame_set_char_size): Call
xg_clear_under_internal_border.
(xg_update_scrollbar_pos): Clear under old scroll bar position.
2010-01-05 15:16:30 +01:00
Chong Yidong
03f77f0a44 * keyboard.c (read_key_sequence): Catch keyboard switch after
making a new tty frame (Bug#5095).
2010-01-05 07:04:04 -07:00
Kenichi Handa
2a1ef5be49 fontset.c (fontset_find_font): Fix getting the frame pointer. 2010-01-05 20:49:19 +09:00
Stefan Monnier
e3eb1dae0d (xd_remove_watch): Avoid trying to convert a void* to
Lisp_Object, preferring to convert a lisp_Object to a void* instead.
(Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2010-01-04 12:38:20 -05:00
Michael Albinus
777013f2bf * dbusbind.c (xd_add_watch): Improve debug message.
(xd_remove_watch): Improve debug message.  If DATA is the session
bus, unset D-Bus session environment.
(Fdbus_init_bus): Pass the bus as argument to
dbus_connection_set_watch_functions.  (Bug#5283)
2010-01-03 20:27:17 +01:00
Chong Yidong
87231e2cfe Fix buffer overflow in ns_get_color.
* nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2010-01-01 17:10:50 -05:00