1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00
Commit graph

7920 commits

Author SHA1 Message Date
Juanma Barranquero
feabfb6c72 * frame.c (xrdb_get_resource): Return nil for empty string resources;
some parts of Emacs code (like font selection) don't grok them.  See
  http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2009-09-24 16:59:14 +00:00
Andreas Schwab
de59072a63 (decode_coding_iso_2022): Fix operator precedence. 2009-09-24 08:18:40 +00:00
Juanma Barranquero
a489517b88 * dired.c (Fdirectory_files): Fix typo in docstring. 2009-09-24 01:04:27 +00:00
Adrian Robert
0592970cad * nsterm.m (EV_TIMESTAMP, x_set_window_size)
(EmacsApp-application:openFiles:): Remove GNUstep conditionals.
	(EmacsScroller-setPosition:portion:whole:): Remove -display call
	under GNUstep.
	(EmacsView-initFrameFromEmacs:): Set autoresizing mask.

	* nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
	glyph advancement.
2009-09-23 18:21:50 +00:00
Adrian Robert
e14f0a78d6 * nsfont.m (Vns_reg_to_script): New lisp variable.
(syms_of_nsfont): Declare it.
	(ns_registry_to_script): New function.
	(ns_get_req_script): Call it.
	(ns_findfonts): Don't give up on non-unicode registry.

	* font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2009-09-23 02:38:08 +00:00
Adrian Robert
b3aac06a8c * nsterm.m (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY. 2009-09-23 01:07:45 +00:00
Adrian Robert
48e8a88b2b * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
* nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
	deleted (bug #4492).
2009-09-22 19:49:57 +00:00
Stefan Monnier
5b650faa35 (find_handler_clause): Make stack-trace-on-error work in batch mode (bug#4228). 2009-09-20 17:05:00 +00:00
Adrian Robert
0bae4e09ed * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more carefully. 2009-09-18 23:54:04 +00:00
Chong Yidong
d798ba8712 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400). 2009-09-18 23:39:44 +00:00
Chong Yidong
fcfe06f3f3 * syntax.c (Fchar_syntax): Minor doc fix (Bug#119). 2009-09-18 23:39:04 +00:00
Adrian Robert
4acaaa2b24 * nsfns.m (x-focus-frame): Activate the app first. 2009-09-18 23:36:29 +00:00
Adrian Robert
6516d10a49 * nsterm.m (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
don't update the NSWindow itself.
  	   (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
	    state detection and store user rect ourselves. (Bug #3581)
2009-09-18 21:27:11 +00:00
Adrian Robert
cff1115627 * emacs.c (main) [HAVE_NS]: fix error printf in daemon case. 2009-09-18 21:12:09 +00:00
Adrian Robert
8aad0aea8b * nsfns.m (x-close-connection): Drop PSFlush() under OS X. 2009-09-18 15:34:23 +00:00
Adrian Robert
3164272821 * emacs.c (inhibit_x_resources): Update doc string for NS.
(main) [HAVE_NS]: Don't process --no-init-file option.  Remove
	legacy code for -NXHost.

	* nsterm.h (ns_no_defaults): Remove.

	* nsterm.m (ns_no_defaults): Remove.
	(ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
	(ns_use_qd_smoothing): Remove legacy variable.

	* nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
	ns_use_qd_smoothing.

	* nsfns.m (x_get_string_resource): Ape just-previous changes to other
	platform versions.  Drop support for emacs-20-style face specs.
2009-09-18 15:14:14 +00:00
Juanma Barranquero
8686ac7162 The --quick command line option now ignores X resources and Registry settings.
* etc/NEWS: Mention new behavior of -Q and new variable `inhibit-x-resources'.

* lisp/startup.el (emacs-quick-startup): Remove variable and all uses.
  (command-line): Set `inhibit-x-resources' instead.
  (command-line-1): Use `inhibit-x-resources' instead.

* src/emacs.c (inhibit_x_resources): New variable.
  (main) [HAVE_NS]: Don't process --quick command line option.
  (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.

* src/lisp.h (inhibit_x_resources): Declare it extern.

* src/w32reg.c (x_get_string_resource):
* src/xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2009-09-17 23:04:41 +00:00
Eli Zaretskii
e227ba05ec (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add lisp/term/internal.elc. 2009-09-17 18:06:57 +00:00
Stefan Monnier
742d40e805 (x_get_resource_string): Re-add for non-toolkit builds (bug#4461). 2009-09-17 16:41:55 +00:00
Dan Nicolaescu
005bd5a263 * puresize.h (BASE_PURESIZE): Increase to 1290000.
* Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
(OBJECTS_MACHINE): Remove, unused.

* configure.in (OTHER_FILES): Define using autoconf not cpp.
2009-09-17 06:10:44 +00:00
Stefan Monnier
f9af971957 (x_get_resource_string): Remove unused. 2009-09-16 20:36:54 +00:00
Jan Djärv
0307c7d29f * xterm.c (x_new_font): Call change_frame_size before calling
x_set_window_size, in case frame size won't change.

* frame.c (x_set_font): Remove dead code.
2009-09-15 18:49:56 +00:00
Stefan Monnier
428b13d63c (Fload): Also run do-after-load-evaluation while dumping. 2009-09-15 03:45:51 +00:00
Stefan Monnier
5766c380ee * lread.c (Fload): Don't output a message after loading an obsolete
package any more (done in Lisp now).
* subr.el (do-after-load-evaluation): Warn the user after loading an
obsolete package.
2009-09-12 03:35:40 +00:00
Chong Yidong
2fd0161b9d * fns.c (syms_of_fns): Doc fix (Bug#4227). 2009-09-12 01:30:51 +00:00
Stefan Monnier
bc5e75b616 (Fwhere_is_internal): Use nconc2. 2009-09-12 01:21:30 +00:00
Alan Mackenzie
c31c985eab *** empty log message *** 2009-09-11 20:04:12 +00:00
Andreas Schwab
78012bd2ec (display_mode_element): Detect cycles. 2009-09-11 16:46:08 +00:00
Stefan Monnier
9d88933246 (where_is_internal): Don't erroneously return nil right after
filling the cache.
(where_is_internal_1): Fix up typo.
2009-09-11 05:10:15 +00:00
Glenn Morris
7ab5d78004 (Fx_parse_geometry): Unify the X and NS versions so that they share a
common doc-string.
2009-09-11 03:34:14 +00:00
Stefan Monnier
66d77eda77 (get_keymap): Return the actual keymap symbol rather than t for autoloaded
keymaps when autoloading is not allowed (bug#4393).
2009-09-11 02:14:05 +00:00
Stefan Monnier
5238a7490e *** empty log message *** 2009-09-11 01:11:37 +00:00
Adrian Robert
599498c31f fix typo (wrong name) in my 2009-09-09 entry 2009-09-10 19:17:56 +00:00
Stefan Monnier
50d4ba3993 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
(parse_menu_item): Streamline since bindings are recomputed all the
time anyway.  Don't bother checking Vdefine_key_rebound_commands any
more and don't support lmenu's menu-alias any more either.
* subr.el (define-key-rebound-commands): Mark obsolete.
* startup.el (precompute-menubar-bindings): Remove.
(normal-top-level): Remove obsolete code that tried to precompute
menubar bindings.
* loadup.el (define-key-rebound-commands): Don't bother fiddling with
define-key-rebound-commands and precompute-menubar-bindings.
2009-09-10 18:19:03 +00:00
Stefan Monnier
a88a5372fd * keymap.c (where_is_internal_data): Make noindirect a boolean.
(where_is_internal): Strip it down to only traverse the keymaps.
Move the cache handling from Fwhere_is_internal to here.
(Fwhere_is_internal): Move the handling of remapping and the choice of
the best binding from where_is_internal to here.
Unify the cached/noncached paths, so remapping is also handled
correctly when the cache is used, and so the cache can be used to
speed up remap-handling when applicable.
Give preference to non-remapped bindings.
* doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
non-remapped bindings.
* keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
command remapping.
2009-09-10 16:19:52 +00:00
Stefan Monnier
19f48442c8 (display_mode_element): Move list length limit from 50 to
5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2009-09-10 03:20:51 +00:00
Adrian Robert
c1905ca3e6 * nsfont.m (ns_get_family): Don't force first letter to uppercase. 2009-09-09 15:05:47 +00:00
Stefan Monnier
f9b7b5acb5 (where_is_internal): Filter out shadowed remappings.
Assume that where_is_internal returns unshadowed bindings to simplify
the code and get rid of the gotos.  Use ASIZE.
2009-09-09 02:38:50 +00:00
Jan Djärv
4da146f2c2 (x_focus_changed): If we get a focusout and pointer
is invisible, make it visible.
2009-09-04 05:33:49 +00:00
Jan Djärv
04f4b72d09 * xterm.h: Remove condition for declaration of
x_*_window_to_frame.
2009-09-04 04:40:17 +00:00
Stefan Monnier
7cef7ce343 (Fsend_string_to_terminal): Make it work again on the initial terminal as well. 2009-09-03 00:36:11 +00:00
Jan Djärv
a54fa5b720 * xterm.h: Rename x_non_menubar_window_to_frame to
x_menubar_window_to_frame

* xterm.c: Remove declarations also in xterm.h
(XTmouse_position): Do not return valid positions
for clicks in the menubar and the toolbar for Gtk+.

* xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
if the widget for the event has the same top level as a frame,
return the frame.
(x_menubar_window_to_frame): Detect menu bar even with Gtk+
internal windows, bug #4122.
(x_non_menubar_window_to_frame): Remove.
2009-09-02 17:03:20 +00:00
Glenn Morris
5a021dd062 (default-major-mode): Move most of the doc from here...
(major-mode): ... to here.
2009-09-02 03:11:15 +00:00
Nick Roberts
548fe2f3ed *** empty log message *** 2009-08-30 04:50:49 +00:00
Eli Zaretskii
e0840eefe1 (redisplay_internal): Remove redundant test and collapse both branches
into one.
2009-08-29 17:36:30 +00:00
Stefan Monnier
82e98df4df * NEWS: Declare unibyte sessions obsolete.
* emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
(main): Use enable-multibyte-characters rather than
default-enable-multibyte-characters.  Output a warning message when
running a unibyte session.
* mule.texi (Enabling Multibyte):
* cmdargs.texi (General Variables): Remove EMACS_UNIBYTE.
(Initial Options): Remove --(no-)multibyte, --(no-)unibyte.
2009-08-29 02:25:29 +00:00
YAMAMOTO Mitsuharu
890617cbfd [temacs] Undef HAVE_POSIX_MEMALIGN. 2009-08-28 22:50:11 +00:00
Eli Zaretskii
e7adeadcd3 (clean): Add buildobj.h. 2009-08-28 14:01:04 +00:00
Teodor Zlatanov
3ed8bbdc5f (print_object): Set escapeflag to 1 when printing
hashtable keys and values.
2009-08-28 10:16:03 +00:00
Eli Zaretskii
8a0b709a07 Mention bug numbers in last cmds.c log entry. 2009-08-28 08:55:23 +00:00