Chong Yidong
bf86d09c11
(fontset_find_font): Fix handling of non-cons return
...
value of fontset_get_font_group.
(fontset_font): Revert last change.
2009-01-26 15:50:43 +00:00
Chong Yidong
5be8fcc0d2
* fontset.c (fontset_find_font): Fix handling of non-cons return
...
value of fontset_get_font_group.
(fontset_font): Revert last change.
2009-01-26 15:50:18 +00:00
Jason Rumney
19ae3e619f
(w32font_list_internal): Return quickly if registry is
...
unknown. Simplify final return.
(add_font_entity_to_list): Break complex logic down into more
manageable chunks. Move unknown registry check to
w32font_list_internal.
2009-01-26 14:32:34 +00:00
Juanma Barranquero
64cc3cf608
Add bug references.
2009-01-25 22:58:22 +00:00
Juanma Barranquero
d8038940d1
Add bug references.
2009-01-25 22:22:59 +00:00
Adrian Robert
8612b71a44
Changes to remove Feval calls from GUI under NS.
...
* nsterm.h: Move KEY_NS_... definitions here from nsterm.m. Add
NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
* nsterm.m: Move KEY_NS_... definitions to nsterm.h.
(EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
(EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
instead of NON_ASCII_KEYSTROKE_EVENT.
(EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
(EmacsApp-applicationShouldTerminate:): Query user.
(EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
instead of Feval.
* termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
* keyboard.c (kbd_buffer_get_event): Check for it.
(keys_of_keyboard): Define lispy keys for
ns-put/unput-working-text.
* nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
versions.
(EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2009-01-25 19:43:31 +00:00
Chong Yidong
707ea971f2
(buffer_posn_from_coords): Use Fset_buffer instead of setting
...
current_buffer directly.
2009-01-25 17:00:55 +00:00
Chong Yidong
6288ae552a
* dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
...
setting current_buffer directly.
2009-01-25 17:00:25 +00:00
Chong Yidong
8657206e1d
(fontset_font): If we know there is no font, don't do any work.
2009-01-24 22:42:02 +00:00
Chong Yidong
5ce8730828
* fontset.c (fontset_font): If we know there is no font, don't do any
...
work.
2009-01-24 22:41:46 +00:00
Chong Yidong
e39280819e
(font_parse_xlfd): Handle patterns of length < 2.
2009-01-24 03:17:42 +00:00
Chong Yidong
289e7f8fbe
* font.c (font_parse_xlfd): Handle patterns of length < 2.
2009-01-24 03:17:32 +00:00
Adrian Robert
cfa6accb56
fix comments in last change
2009-01-23 14:53:11 +00:00
Adrian Robert
27521ca69b
* nsterm.m (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change of 2008-11-15 to other terms. (Bug#615)
2009-01-23 14:32:47 +00:00
Adrian Robert
e0d2e69ae3
* nsimage.m (setPixmapData:): Set to ignore image DPI.
2009-01-23 14:08:24 +00:00
Adrian Robert
d900b2af45
* nsterm.m (EmacsView-readSelectionFromPasteboard:) (writeSelectionToPasteboard:types:): New stubbed-out methods for NSServicesRequests protocol. (Bug#1435)
2009-01-23 10:31:54 +00:00
Adrian Robert
3436b70cbe
* emacs.c (ns_no_defaults): New declaration. (main): Use it. * nsterm.h (ns_no_defaults): New declaration. * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults. * nsterm.m (ns_no_defaults): New variable. (ns_initialize): Don't read defaults when ns_no_defaults.
2009-01-23 09:58:02 +00:00
Adrian Robert
b3243e6f1a
* emacs.c (main): Do fork+exec under --daemon in Cocoa.
2009-01-23 09:12:53 +00:00
Chong Yidong
4c1616bee4
(mark_stack): Use "flushw" instead of "ta 3" assembly call for
...
Sparc64.
2009-01-23 04:38:18 +00:00
Chong Yidong
3ac71f5da0
* alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
...
call for Sparc64.
2009-01-23 04:37:58 +00:00
Juanma Barranquero
3a88a8258c
Fix typos.
2009-01-22 14:41:39 +00:00
Adrian Robert
3fe53a835d
Remove '23' comments that indicated code added during update from emacs-20 -> emacs-23.
2009-01-22 13:55:44 +00:00
Adrian Robert
575fb8bdb4
* nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2009-01-22 13:31:54 +00:00
Adrian Robert
c7cef62d4d
* nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:): Display all shortcuts, including those w/o super modifier.
2009-01-22 12:23:47 +00:00
Adrian Robert
10f87c6f1d
fix date in last commit
2009-01-22 11:41:24 +00:00
Adrian Robert
a3b53a857d
* nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for ns_alternate_modifier. (Bug#1217)
2009-01-22 11:39:10 +00:00
Chong Yidong
67fbc0cb3a
(Vwrite_region_post_annotation_function)
...
(Vwrite_region_annotation_buffers): New vars.
(build_annotations_unwind): Just reset
Vwrite_region_annotation_buffers.
(Fwrite_region): Initialize Vwrite_region_annotation_buffers.
Call write-region-post-annotation-function.
(build_annotations): Add to Vwrite_region_annotation_buffers if
buffer changes.
2009-01-22 04:42:51 +00:00
Chong Yidong
918b848ba1
* fileio.c (Vwrite_region_post_annotation_function)
...
(Vwrite_region_annotation_buffers): New vars.
(build_annotations_unwind): Just reset
Vwrite_region_annotation_buffers.
(Fwrite_region): Initialize Vwrite_region_annotation_buffers.
Call write-region-post-annotation-function.
(build_annotations): Add to Vwrite_region_annotation_buffers if
buffer changes.
2009-01-22 04:42:41 +00:00
Adrian Robert
a39e2539a3
* nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on Tiger. * nsfns.m (ns_do_applescript): Conditionalize typeUTF16ExternalRepresentation on Tiger.
2009-01-22 00:00:13 +00:00
Adrian Robert
d3810c2118
* nsimage.m (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color values in onTiger section. * nsterm.m (ns_defined_color): Fix settings of the XColor variable fields: red,green,blue scale to 2-byte, pixel's components to 1-byte. (Bug#1663)
2009-01-21 22:28:45 +00:00
Adrian Robert
e336ab4926
fix typo in comment
2009-01-21 22:26:32 +00:00
Adrian Robert
35ed44db5a
* nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window. (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
2009-01-21 18:56:41 +00:00
Adrian Robert
6049d3a0bb
* nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues. * nsterm.m (EmacsPrefsController-setPanelFromDefaultValues) New function. (EmacsPrefsController-resetToDefaults:): Use it.
2009-01-21 18:13:26 +00:00
Adrian Robert
e889fa0685
(EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
2009-01-21 17:56:37 +00:00
Adrian Robert
4c7077c3f0
* nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore DPI. (Bug#1316)
2009-01-21 17:28:05 +00:00
Adrian Robert
a9b4df6950
* nsterm.m: (x_set_frame_alpha): Add prototype. (ns_fake_keydown, EmacsView-keyUp:): New variable and function to handle Ctrl-tab. (ns_get_color): Use unsigned long long for scanned hex string value. (ns_term_shutdown): Abort on non SIGTERM signals.
2009-01-21 17:09:28 +00:00
Adrian Robert
cbe0b5bfa9
* nsmenu.m (NSMENUPROFILE): Change #if style.
2009-01-21 16:34:24 +00:00
Chong Yidong
05802645c6
(font_spec_from_name): Return Qnil if font name could not be parsed.
...
(font_parse_name): Treat a `?' character as part of an XLFD.
2009-01-19 16:42:44 +00:00
Chong Yidong
21bdb81a75
(Finternal_set_lisp_face_attribute, Fx_list_fonts): Check return value of font_spec_from_name.
...
(Fx_list_fonts): Doc fix.
2009-01-19 16:41:16 +00:00
Chong Yidong
7f82490bfe
* xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
...
Check return value of font_spec_from_name.
(Fx_list_fonts): Doc fix.
* font.c (font_spec_from_name): Return Qnil if font name could not
be parsed.
(font_parse_name): Treat a `?' character as part of an XLFD.
2009-01-19 16:40:30 +00:00
Chong Yidong
753169bd17
(Fsubstring): Doc fix.
2009-01-19 15:13:31 +00:00
Chong Yidong
e301e634f2
* fns.c (Fsubstring): Doc fix.
2009-01-19 15:05:32 +00:00
Kenichi Handa
1c0db158ed
(ftfont_lookup_cache): Check the return value of FcFontList.
...
(ftfont_list): Likewise.
2009-01-19 12:08:31 +00:00
Juanma Barranquero
fff4e45990
* dbusbind.c (Fdbus_register_signal):
...
* process.c (conv_sockaddr_to_lisp):
* w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2009-01-18 03:58:09 +00:00
Juanma Barranquero
acf2090118
* callproc.c (Fgetenv_internal): Doc fix.
2009-01-18 03:28:35 +00:00
Chong Yidong
c8bcd18afb
(x_make_gc): Don't allocate stipple member for gc_values; it is not
...
even used.
2009-01-16 15:10:28 +00:00
Chong Yidong
e7abcdfba9
* xfns.c (x_make_gc): Don't allocate stipple member for gc_values; it
...
is not even used.
2009-01-16 15:09:39 +00:00
Glenn Morris
b60861e61f
(Ffont_variation_glyphs): Silence compiler.
2009-01-16 03:26:29 +00:00
Juanma Barranquero
8db52afe7b
* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
...
Reported by David Robinow <drobinow@gmail.com>.
2009-01-15 18:04:34 +00:00
Kenichi Handa
4cddb209b4
(detect_coding_system): Fix handling of null_byte_fount.
2009-01-15 07:13:39 +00:00