Jan Djärv
980d78b358
* configure.ac: Require OSX >= 10.6 even if --with-ns is not given.
2014-10-14 17:31:44 +02:00
Dmitry Antipov
bb75cdf9c7
Cleanup terminal handling code.
...
* dispextern.h (get_named_tty): Remove prototype but...
* termhooks.h (get_named_terminal): ...resurrect it under
more meaningful name.
(get_terminal): Likewise, but with...
(decode_live_terminal): ...this name.
(decode_tty_terminal): Add prototype.
* term.c (get_tty_terminal): Remove.
(get_named_tty): Remove.
(Ftty_display_color_p, Ftty_display_color_cells, Ftty_type)
(Fcontrolling_tty_p, Fsuspend_tty, Fresume_tty):
Use decode_tty_terminal.
(Ftty_no_underline, Ftty_top_frame): Use decode_live_terminal.
* terminal.c (get_terminal): Refactor to...
(decode_terminal, decode_live_terminal): ...new functions.
(decode_tty_terminal): Replacement for get_tty_terminal.
(get_named_terminal): Likewise for get_named_tty.
* coding.c (Fset_terminal_coding_system_internal)
(Fterminal_coding_system, Fset_keyboard_coding_system_internal):
(Fkeyboard_coding_system):
* composite.c (Fcomposition_get_gstring):
* dispnew.c (Fsend_string_to_terminal):
* frame.c (Fmake_terminal_frame):
* nsfns.m (check_ns_display_info):
* w32fns.c, xfns.c (check_x_display_info):
* xselect.c (frame_for_x_selection): Use decode_live_terminal.
* keyboard.c (handle_interrupt_signal, handle_interrupt)
(Fset_quit_char): Use get_named_terminal.
(Fset_output_flow_control, Fset_input_meta_mode):
Use decode_tty_terminal.
2014-10-14 16:45:41 +04:00
Michael Albinus
5fa75d8eba
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
...
Reduce the amount of set environment variable commands.
2014-10-14 13:59:16 +02:00
Jan Djärv
3f8c645caa
* configure.ac: apple-darwin powerpc is unported.
2014-10-14 07:07:21 +02:00
Glenn Morris
2cae8632b7
Merge from emacs-24; up to 2014-07-27T01:00:26Z!fgallina@gnu.org
2014-10-13 16:55:41 -04:00
Glenn Morris
440cb8f6cc
Tweak previous authors.el change
2014-10-13 15:52:43 -04:00
Glenn Morris
7dbd8a2cb6
Small authors.el updates
...
* lisp/emacs-lisp/authors.el (authors-aliases, authors-fixed-case)
(authors-obsolete-files-regexps): Additions.
(authors-no-scan-regexps): New constant.
(authors-no-scan-file-p): New function.
(authors): Respect authors-no-scan-file-p.
2014-10-13 15:32:14 -04:00
Glenn Morris
2bcc04b3fc
ChangeLog fix
...
Ref: http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00165.html
http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=65cf7047bf885959a5e03b5aa9346b55a600fcab
2014-10-13 15:17:46 -04:00
Bastien Guerry
212ecd45e3
Fix org/ChangeLog wrt latest Org Sync.
2014-10-13 18:44:30 +02:00
Eli Zaretskii
2b882ee755
Fix bug #18699 with startup aborts of 32-bit MinGW64 build.
...
src/w32term.h (ALIGN_STACK): Use _WIN64, not _W64, to distinguish
between 32-bit and 64-bit MinGW builds.
2014-10-13 15:44:03 +03:00
Jan Djärv
07bcae0d0b
* NEWS: Move and clarify OSX >= 10.6.
2014-10-13 08:09:05 +02:00
Glenn Morris
7410c4e872
Merge from emacs-24; up to 2014-07-26T12:14:42Z!schwab@linux-m68k.org
2014-10-12 18:47:48 -07:00
Glenn Morris
be3e1b61b5
Update doc/ make dist rules
...
* emacs/Makefile.in (dist):
* lispintro/Makefile.in (dist):
* lispref/Makefile.in (dist):
* misc/Makefile.in (dist): Update for new output variables.
2014-10-12 18:40:56 -07:00
Glenn Morris
b1d5ab0352
Merge from emacs-24; up to 2014-07-26T11:58:24Z!schwab@linux-m68k.org
2014-10-12 15:56:45 -07:00
Bastien Guerry
e175fabcdd
Sync Org 8.2.10
2014-10-13 00:25:24 +02:00
Paul Eggert
ec11ab9b78
* editfns.c (dump_tz_string): No longer const.
...
It might be modified.
2014-10-12 13:36:49 -07:00
Paul Eggert
cc541e588a
Spelling fixes.
2014-10-12 13:09:15 -07:00
Glenn Morris
2222349c25
* admin/make-tarball.txt: Small additions.
2014-10-12 11:41:05 -07:00
Michael Albinus
dfbb4d511e
* net/tramp-sh.el (tramp-get-remote-id): Check also for "gid".
2014-10-12 20:27:37 +02:00
Paul Eggert
80b20192ee
* nsmenu.m (clear): Assume OS X 10.6 or later.
2014-10-12 11:02:47 -07:00
Fabián Ezequiel Gallina
b1be0eda33
Fix import completion.
...
* lisp/progmodes/python.el (python-shell-completion-get-completions):
Fix import case regexp.
Fixes: debbugs:18582
2014-10-12 12:12:04 -03:00
Paul Eggert
b73d3f5834
Update doc to say Mac OS X 10.6 or later now required.
...
* doc/emacs/macos.texi (Mac OS / GNUstep, Mac / GNUstep Basics)
(Mac / GNUstep Customization):
* nextstep/README: Mac OS X 10.6 or later now required.
2014-10-12 07:56:58 -07:00
Jan Djärv
9a265587d2
Require OSX >= 10.6. Remove PowerPC unexec code.
...
* configure.ac: Require OSX 10.6. Remove NSInteger test,
use nsfont for Gnustep, macfont for OSX.
* etc/NEWS: OSX required is 10.6 or newer.
* src/Makefile.in: Replace nsfont.o macfont.o with ns_fontfile in
comment.
* src/macfont.h (MAC_FONT_FORMAT_ATTRIBUTE, MAC_FONT_FORMAT_BITMAP)
(mac_font_copy_non_synthetic_table): Remove versions for OSX < 10.6
* src/nsfns.m: Always include src/macfont.h on COCOA.
(ns_filename_from_panel, ns_directory_from_panel)
(Fx_create_frame, Fns_popup_font_panel, ns_run_file_dialog)
(Fns_read_file_name, Fns_list_services): Remove code for OSX < 10.6
* src/nsterm.m: Always include src/macfont.h on COCOA.
(ns_update_auto_hide_menu_bar, ns_draw_fringe_bitmap)
(ns_dumpglyphs_image, ns_check_menu_open)
(applicationDidFinishLaunching)
(antialiasThresholdDidChange:)
(keyDown:, toggleFullScreen:, setPosition:portion:whole:): Remove
checks for OSX <= 10.5/10.6.
(changeFont:): Use macfont on COCOA, nsfont on GNUSTEP.
(syms_of_nsterm): Call syms_of_macfont on COCOA, syms_of_nsfont on
GNUSTEP.
* src/macfont.m: Remove >= 1050 check.
(macfont_create_family_with_symbol)
(macfont_get_glyph_for_character)
(mac_font_get_glyphs_for_variants)
(mac_ctfont_create_available_families, syms_of_macfont): Remove
code for OSX < 10.6.
(mac_font_family_group, mac_font_family_compare): Remove, only used
for OSX < 10.6.
* src/nsimage.m (allocInitFromFile:): Remove code for OSX < 10.6.
* src/nsmenu.m (NSMenuDidBeginTrackingNotification): Remove.
(x_activate_menubar, trackingNotification:): Remove check for
OSX >= 10.5.
(menuNeedsUpdate:): Remove check for OSX < 10.5.
* src/nsterm.h (MAC_OS_X_VERSION_10_4, MAC_OS_X_VERSION_10_5): Remove.
(NS_HAVE_NSINTEGER): Remove block.
Remove >= OSX 10.6 tests.
* src/unexmacosx.c: Remove include ppc/reloc.h.
(unrelocate, copy_dysymtab): Remove PPC code.
(rebase_reloc_address): Remove, only used for PPC:
2014-10-12 10:35:50 +02:00
Paul Eggert
4c4c5b9121
Fix putenv race conditions with undefined behavior.
...
Do all putenv calls before Emacs creates any threads.
Use a safer way to modify the TZ environment variable in the
presence of multiple threads. For further thread-safety,
prefer localtime_r and gmtime_r to localtime and gmtime,
and prefer struct tm's tm_gmtoff (if available) to calling
both localtime_r and gmtime_r.
* configure.ac (LOCALTIME_CACHE): Remove.
We needn't worry about SunOS 4 any more; Sun dropped support in 2003.
All uses of LOCALTIME_CACHE removed. This simplifies the fix.
(tzalloc): Add check for this function.
* admin/merge-gnulib (GNULIB_MODULES): Add time_r, since Emacs now
calls localtime_r and gmtime_r directly.
* src/dbusbind.c (Fdbus__init_bus): Move xputenv call from here ...
(init_dbusbind): ... to this new function.
* src/emacs.c (main) [HAVE_DBUS]: Call it before creating threads.
* src/xterm.c (x_term_init): Move xputenv call from here ...
(init_xterm): ... to this new function.
* src/emacs.c (main) [USE_GTK]: Call it before creating threads.
* src/editfns.c (HAVE_TM_GMTOFF): Default to false.
(dump_tz_string): New constant.
(init_editfns): Use it. This centralizes the dump_tz stuff.
Call set_time_zone_rule here, so that its xputenv is done
before Emacs goes multithreaded.
(mktime_z) [!HAVE_TZALLOC]: New function, which is typically
thread-safe enough for Emacs.
(format_time_string, Fdecode_time, Fcurrent_time_string)
(Fcurrent_time_zone):
Prefer localtime_r and gmtime_r, which are more thread-safe, to
localtime and gmtime. Remove now-unnecessary calls to block_input.
(tm_gmtoff): New static function.
(Fdecode_time, Fcurrent_time_zone): Use it.
(Fencode_time): Use mktime_z, for better thread-safety.
(set_time_zone_rule): Now static. Rewrite to be mostly thread-safe,
i.e., not quite thread-safe but good enough for Emacs typical usage.
Do not reclaim storage that is in the environment; let it leak.
Always call tzset, since localtime_r does not.
* src/emacs.c (dump_tz, Fdump_emacs) [HAVE_TZSET]: Remove dump_tz stuff.
This is now done in init_editfns.
* src/systime.h (mktime_z, timezone_t, tzalloc, tzfree) [!HAVE_TZALLOC]:
New macros and declarations, for platforms lacking tzalloc & friends.
Fixes: debbugs:8705
2014-10-11 23:09:50 -07:00
Bastien Guerry
a9789a1d8c
Merge Org 8.2.9
2014-10-12 07:18:57 +02:00
Jan Djärv
c1ec59da49
Fix ns-use-fullscreen-animation again... add boolean.
...
* cus-start.el (all): Add missing ns and boolean to
ns-use-fullscreen-animation.
2014-10-11 22:00:59 +02:00
Jan Djärv
f98021b18b
* cus-start.el (all): Add missing ns to ns-use-fullscreen-animation.
2014-10-11 21:58:02 +02:00
Ken Brown
20f02f2768
* configure.ac (LD_SWITCH_SYSTEM_TEMACS) [CYGWIN]: Set stack size to 8 MB. (Bug#18438)
2014-10-11 13:16:12 -04:00
Leo Liu
541961c945
Fix last change
2014-10-11 22:27:47 +08:00
Leo Liu
217f4eed7b
* progmodes/cfengine.el (cfengine3-defuns, cfengine3-vartypes):
...
Use strings.
(cfengine3-create-imenu-index): New function.
(cfengine3-mode): Use it for `imenu-create-index-function'.
(cfengine-auto-mode): Improve and prefer cfengine3-mode when
buffer is empty.
2014-10-11 22:11:03 +08:00
Jan Djärv
b34cba3829
* cus-start.el (all): Add ns-use-fullscreen-animation.
2014-10-11 10:28:11 +02:00
Jan Djärv
da373d7b88
Fix mailaddress
2014-10-11 10:24:56 +02:00
Jan Djärv
1badfceee7
Fix mailaddress.
2014-10-11 10:22:00 +02:00
Glenn Morris
ab7af0222e
Drop support for deprecated (since 23.1) forms of diary-display-function
...
* lisp/calendar/diary-lib.el (diary-display-function):
Drop support for deprecated nil and list forms.
(diary-list-entries): Update for the above.
* lisp/calendar/cal-x.el (calendar-dedicate-diary): Simplify accordingly.
2014-10-10 19:54:11 -07:00
Paul Eggert
390c2f3bcc
Fix port to Debian GNU/kFreeBSD 7 (wheezy).
...
* process.c (accept4) [!HAVE_ACCEPT4]: New macro.
Fixes: debbugs:18666
2014-10-10 11:02:09 -07:00
Glenn Morris
244a462a30
* lisp/erc/erc.el: Fix paren typo in previous.
2014-10-10 12:53:19 -04:00
Ivan Shmakov
43f52995ea
Only initialize erc-last-saved-position if not already a marker.
...
Fixes: debbugs:16145
2014-10-10 09:16:12 -04:00
Leo Liu
f5f949f7b4
* lisp/window.el (temp-buffer-window-show): Make BUFFER a required arg.
...
Fixes: debbugs:18656
2014-10-10 20:39:49 +08:00
Thien-Thi Nguyen
28c3bdd8d6
[maint] Start Emacs versioning doc; nfc.
...
* admin/versioning: New file.
2014-10-10 09:54:08 +02:00
Stefan Monnier
4b9d951ee1
* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix \\<_ typo.
...
Reported by Arni Magnusson <arnima@hafro.is>.
* lisp/progmodes/prolog.el (prolog-electric--underscore): Same.
Fixes: debbugs:18622
2014-10-10 00:03:27 -04:00
Stefan Monnier
a27cd28f95
* lisp/select.el (gui-selection-exists-p-alist): New method.
...
* lisp/menu-bar.el (menu-bar-edit-menu, clipboard-yank):
* lisp/simple.el (deactivate-mark): Use it.
* lisp/term/x-win.el (gui-selection-exists-p):
* lisp/term/w32-win.el (gui-selection-exists-p):
* lisp/term/pc-win.el (gui-selection-exists-p):
* lisp/term/ns-win.el (gui-selection-exists-p): Provide a backend instance.
2014-10-09 23:28:24 -04:00
Glenn Morris
cd0351b202
Allow Info-fontify-maximum-menu-size to specify unlimited
...
* lisp/info.el (Info-fontify-maximum-menu-size): Fix :type.
Allow t to mean no limit.
(Info-fontify-node): Handle Info-fontify-maximum-menu-size = t.
2014-10-09 20:24:41 -07:00
Glenn Morris
dcc327d43b
* lisp/info.el (Info-fontify-maximum-menu-size): Bump to 400k.
...
Fixes: debbugs:16227
2014-10-09 21:11:24 -04:00
Glenn Morris
ad1ababf7f
* doc/emacs/help.texi: Avoid overfull hbox.
2014-10-09 13:39:07 -04:00
Glenn Morris
7b9ecf78f0
* doc/lispref/control.texi: Avoid overfull hbox.
2014-10-09 13:36:02 -04:00
Glenn Morris
52b16eb4c0
* doc/lispref/elisp.texi (DATE): Bump to October 2014.
...
I still have no idea what this is for, but newer is better!
2014-10-09 09:07:40 -07:00
Paul Eggert
078c4dc635
Spelling fixes.
2014-10-09 08:59:41 -07:00
Stefan Monnier
d7a6097b57
* src/frame.c (Fmouse_pixel_position): Call Vmouse_position_function.
...
Fixes: debbugs:18638
2014-10-09 09:50:10 -04:00
Paul Eggert
8881986b3e
* lisp.h (USE_STACK_STRING): Now true only if USE_STACK CONS.
...
On x86 platforms this works around GCC bug 63495
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63495 >,
and more generally should fix a portability problem in Emacs.
Problem reported by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00261.html
2014-10-08 23:54:10 -07:00
Glenn Morris
32ade3f01a
Merge from emacs-24; up to 2014-07-22T06:37:31Z!yamaoka@jpl.org
2014-10-08 21:23:09 -07:00