1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
Commit graph

32310 commits

Author SHA1 Message Date
Paul Eggert
4baa020dd9 Add Bug#8828 to my 2011-06-15 entry. 2011-12-31 00:36:43 -08:00
Antoine Levitt
3778cdd8ef Doc fix for window-scroll-functions.
src/xdisp.c (syms_of_xdisp) <window-scroll-functions>: Add warning
 to the doc string advising against its use for altering the way
 windows are scrolled.
2011-12-31 10:16:41 +02:00
Paul Eggert
22bcf20469 Spelling fixes. 2011-12-30 17:27:15 -08:00
Paul Eggert
9858f6c326 Spelling fixes. 2011-12-29 18:52:49 -08:00
Kenichi Handa
0e5317f7e4 coding.c: (Fdefine_coding_system_internal): Make an utf-8 base coding-system ASCII compatible only when it does not produce BOM on encoding (Bug#10383). 2011-12-28 16:55:49 +09:00
Jan Djärv
93d5ca1fbb * xmenu.c (x_menu_wait_for_event): Use xg_select for Gtk3 so menus
can scroll.
(create_and_show_popup_menu): Always use menu_position_func for
Gtk3.

Fixes: debbugs:10361
2011-12-26 19:00:38 +01:00
Andreas Schwab
ca22b78599 * callint.c (Fcall_interactively): Don't truncate prompt string. 2011-12-25 10:06:42 +01:00
Eli Zaretskii
3ba1a2ad82 Add the bug number #10360 to the entry for 2011-12-23T14:51:51Z!eliz@gnu.org.
The real fix for bug 10360 is in 2011-12-23T14:51:51Z!eliz@gnu.org.
2011-12-24 21:24:10 +02:00
Eli Zaretskii
d048e1e6bd Fix assertion violation in pop_it when org-indent-mode is used.
src/xdisp.c (handle_invisible_prop): Handle correctly an invisible
 property that ends at ZV, so that the bidi iteration could be
 resumed from there (after widening).
2011-12-23 16:51:51 +02:00
Jan Djärv
5ccaba1fdb * nsfont.m (ns_spec_to_descriptor): Do not autorelease fdesc. 2011-12-22 14:58:40 +01:00
Paul Eggert
6196cffecf Spelling fixes. 2011-12-21 01:58:39 -08:00
Jan Djärv
204ee57fa0 Fix biggest memory leaks in NS-port. More remain.
* emacs.c (ns_pool): New variable.
(main): Assign ns_pool.
(Fkill_emacs): Call ns_release_autorelease_pool.

* nsfns.m (x_set_background_color): Assign return value from
ns_index_color to face-background instead of NSColor*.
(ns_implicitly_set_icon_type): Fix indentation.
Change assignment in for loop to comparison.

* nsfont.m (ns_spec_to_descriptor): Fix indentation,
autorelease fdesc, release fdAttrs and tdict.
(ns_get_covering_families): Release charset.
(ns_findfonts): Release NSFontDescriptor created with new.
(ns_uni_to_glyphs): Fix indentation.
(setString): Release attrStr before assigning new value.

* nsmenu.m (ns_update_menubar): Call free_menubar_widget_value_tree
before returning.

* nsterm.m (x_free_frame_resources): Release
f->output_data.ns->miniimage
(ns_index_color): Fix indentation.  Do not retain
color_table->colors[i].
2011-12-21 09:04:19 +01:00
Jan Djärv
678f4426c3 Attribute Aquamacs code to David Reitter. 2011-12-21 07:37:49 +01:00
Juanma Barranquero
1154d12e5b Fix typos. 2011-12-19 16:46:50 +01:00
Paul Eggert
99d990817c Spelling fixes. 2011-12-18 22:21:24 -08:00
Jan Djärv
3771cb1735 Fix spelling AquaEmacs => Aquamacs 2011-12-18 15:53:01 +01:00
Jan Djärv
5fecd5fce0 Adapt code from AquaEmacs to handle occasional blank menus.
* nsmenu.m (trackingMenu): New variable.
(NSMenuDidBeginTrackingNotification): Declare if OSX < 10.5 and
NS_IMPL_COCOA.
(trackingNotification): New method (from AquaEmacs).
(menuNeedsUpdate): Expand comment and return if trackingMenu is 0,
from AquaEmacs.
(syms_of_nsmenu): Set trackingMenu to 1 if not NS_IMPL_COCOA.

* nsterm.m (ns_term_init): Subscribe for notifications
NSMenuDidBeginTrackingNotification and NSMenuDidEndTrackingNotification
to method trackingNotification in EmacsMenu.

Fixes: debbugs:7030
2011-12-18 15:50:19 +01:00
Jan Djärv
c803b2b767 NS selection bug fix and cleanup, see thread C-g crash in C-x C-f (OSX Lion).
Thread is on emacs-devel.

* lisp/term/ns-win.el (ns-get-selection-internal)
(ns-store-selection-internal): Declare.
(ns-store-cut-buffer-internal, ns-get-cut-buffer-internal): Declare
as obsolete.
(ns-get-pasteboard, ns-paste-secondary): Use
ns-get-selection-internal.
(ns-set-pasteboard,  ns-copy-including-secondary): Use
ns-store-selection-internal.

* src/nsselect.m (CUT_BUFFER_SUPPORT): Remove define.
(symbol_to_nsstring): Fix indentation.
(ns_symbol_to_pb): New function.
(Fns_get_selection_internal): Renamed from Fns_get_cut_buffer_internal.
(Fns_rotate_cut_buffers_internal): Removed.
(Fns_store_selection_internal): Renamed from
Fns_store_cut_buffer_internal.
(ns_get_foreign_selection, Fx_own_selection_internal)
(Fx_disown_selection_internal, Fx_selection_exists_p)
(Fns_get_selection_internal, Fns_store_selection_internal): Use
ns_symbol_to_pb and check if return value is nil.
(syms_of_nsselect): Remove ifdef CUT_BUFFER_SUPPORT.  Remove
defsubr Sns_rotate_cut_buffers_internal.  Sns_get_cut_buffer_internal
renamed to Sns_get_selection_internal, Sns_store_cut_buffer_internal
renamed to Sns_store_selection_internal.
(ns_handle_selection_request): Move code to Fx_own_selection_internal
and remove this function.
(ns_handle_selection_clear): Remove, never used.
(Fx_own_selection_internal): Move code from ns_handle_selection_request
here.
2011-12-18 14:49:38 +01:00
Ken Brown
e1b01a3a53 * src/fileio.c (check_writable) [CYGWIN]: Return non-zero if UID or
GID is unknown (Bug#10257).
2011-12-17 12:00:49 -05:00
Paul Eggert
301b181a14 Spelling fixes. 2011-12-16 22:51:13 -08:00
Paul Eggert
2adb6e8578 * s/gnu-linux.h: Fix mark_memory typo (Bug#10286).
(GC_MARK_SECONDARY_STACK): Omit removed 3rd arg to mark_memory,
which caused a build failure on GNU/Linux IA-64.  This problem was
introduced by my 2011-10-07 patch.
2011-12-16 17:05:26 -08:00
Juri Linkov
d1d7b339f8 * src/image.c (imagemagick_error): New function.
(imagemagick_load_image): Comment out `MagickSetResolution' call.
Use `imagemagick_error' where ImageMagick functions return
`MagickFalse'.
(Fimagemagick_types): Add `Fnreverse' to return the list in the
proper order.

Fixes: debbugs:10112
2011-12-16 01:28:56 +02:00
Paul Eggert
bbd240ceee Spelling fixes. 2011-12-14 23:24:10 -08:00
Kenichi Handa
100d5755ed xftfont.c (xftfont_draw): Use the font metrics of s->font to fill background (Bug#8992). 2011-12-15 11:12:08 +09:00
Paul Eggert
fac916bfd7 Spelling fixes. 2011-12-14 13:05:20 -08:00
Martin Rudalics
53524d9377 Fix doc-string typo. 2011-12-13 14:58:20 +01:00
Martin Rudalics
61d4b438e6 Fix doc-string of recenter-redisplay. 2011-12-13 14:53:00 +01:00
Martin Rudalics
454592a615 Minor fixes in window handling code and docs.
* window.c (Vwindow_combination_resize)
(Vwindow_combination_limit): Use t instead of non-nil in
doc-strings.
* window.el (delete-other-windows): Use correct frame in call to
window-with-parameter.
* windows.texi (Splitting Windows): Use t instead of non-nil
when describing window-combination-resize.
2011-12-13 14:37:48 +01:00
Paul Eggert
333f9019e2 Spelling fixes. 2011-12-11 21:32:49 -08:00
Kenichi Handa
3633e3aa59 coding.c (Funencodable_char_position): Pay attention to the buffer text relocation (Bug#9389). 2011-12-11 21:08:51 +09:00
Jan Djärv
7b9d523a07 * src/xterm.c (x_term_init): Move call to gdk_window_add_filter before
gtk_init.

Fixes: debbugs:10100
2011-12-10 23:53:28 +01:00
Eli Zaretskii
b73189c64f Fix bug #10263 with assertion violation using telugu-itrans input method.
src/xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if
 IT->string is nil.
2011-12-10 21:54:45 +02:00
Jan Djärv
83faebb47a * nsterm.h (x_free_frame_resources): Declare. 2011-12-10 15:16:35 +01:00
Jan Djärv
f7dfe5d679 Don't crash on bad user input.
* nsfns.m (ns_get_defaults_value): New function.
(Fns_get_resource, x_get_string_resource): Call ns_get_defaults_value.

* nsterm.h (ns_get_defaults_value): Declare.

* nsterm.m (ns_default): Call ns_get_defaults_value.

Fixes: debbugs:10103
2011-12-10 15:01:08 +01:00
Eli Zaretskii
7cd4e72cff Fix bug #10170 with extra scrolling after C-s.
src/xdisp.c (try_scrolling): Don't set scroll_down_p if dy is zero.
2011-12-09 20:40:42 +02:00
YAMAMOTO Mitsuharu
b34d731717 Fix for GNUstep build failure during dumping.
* unexelf.c (unexec) [NS_IMPL_GNUSTEP]: Take account of the case
that where the value of an _OBJC_* symbol points to is in the .bss
section (Bug#10240).
2011-12-09 21:33:20 +09:00
Kenichi Handa
2fac818033 Add a bug number to a ChangeLog entry. 2011-12-09 14:24:26 +09:00
Kenichi Handa
76470ad1a0 coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) after the loop to call ccl_driver at least once. 2011-12-08 14:54:20 +09:00
Kenichi Handa
745fff94a0 ftfont.c (get_adstyle_property): Fix previous change (Bug#10233). 2011-12-08 11:34:09 +09:00
Juanma Barranquero
6e44397c4a src/w32.c: Implement --no-site-lisp on Windows (bug#10208). 2011-12-08 00:14:13 +01:00
Glenn Morris
7efa6272f0 Small init_lread fix for bug#10208
* src/lread.c (init_lread): If no_site_lisp, exclude site-lisp/ in
installation and source directories as well.
2011-12-06 21:16:53 -05:00
Chong Yidong
f6fc4d8702 * src/minibuf.c (Fread_from_minibuffer): Doc fix.
Fixes: debbugs:10228
2011-12-06 16:50:46 +08:00
Glenn Morris
2bf2618007 * src/process.c (start_process_unwind): Treat any pid <= 0, except -2,
as an error, not just -1.
For example, make_process inits the pid to 0.

Fixes: debbugs:10217
2011-12-06 00:17:35 -08:00
Juanma Barranquero
a98edce9ec Fix typos. 2011-12-06 02:30:54 +01:00
Chong Yidong
3a6ad4f050 Handle X selection requests in input-pending-p.
* src/keyboard.c (process_special_events): New function.
(swallow_events, Finput_pending_p): Use it.

Fixes: debbugs:10195
2011-12-05 23:21:48 +08:00
Paul Eggert
75a3b399a3 * coding.c (encode_designation_at_bol): Don't use uninitialized
local variable (Bug#9318).
2011-12-05 01:05:10 -08:00
Paul Eggert
fa46310344 Spelling fixes. 2011-12-05 00:55:25 -08:00
Kenichi Handa
c3c9e25e5d ftfont.c (get_adstyle_property): If the font is not BDF nor PCF, return Qnil (Bug#8046, Bug#10193). 2011-12-05 16:48:29 +09:00
Kenichi Handa
2ab04b9565 merge trunk 2011-12-05 16:03:31 +09:00
Kenichi Handa
a79703f53c src/ChangeLog: Fix previous change. 2011-12-05 16:02:09 +09:00