bpt/emacs.git
10 years agoFix typo in previous change.
Paul Eggert [Sun, 5 Jan 2014 01:00:32 +0000 (17:00 -0800)]
Fix typo in previous change.

10 years agoPort to GNU/Linux with recent grsecurity/PaX patches (Bug#16343).
Paul Eggert [Sun, 5 Jan 2014 00:55:29 +0000 (16:55 -0800)]
Port to GNU/Linux with recent grsecurity/PaX patches (Bug#16343).

Problem and proposed patch reported by Ulrich Mueller;
this patch uses a somewhat-different approach.
* configure.ac (SETFATTR): New variable.
* src/Makefile.in (SETFATTR): New macro.
(temacs$(EXEEXT)): Use it.

10 years agoFix maximization behavior on Windows (Bug#16300).
Martin Rudalics [Sat, 4 Jan 2014 09:31:30 +0000 (10:31 +0100)]
Fix maximization behavior on Windows (Bug#16300).

Fix maximization behavior on Windows (Bug#16300).
* w32fns.c (w32_fullscreen_rect): Don't handle
FULLSCREEN_MAXIMIZED and FULLSCREEN_NONE specially.
* w32term.c (w32fullscreen_hook): Use SetWindowPlacement instead
of SetWindowPos.  Restore last placement also when leaving
FULLSCREEN_HEIGHT and FULLSCREEN_WIDTH.  Call ShowWindow in all
but the FULLSCREEN_BOTH case.

10 years ago* admin/admin.el (manual-html-fix-index-2): Fix minor Texinfo 4 issue
Glenn Morris [Sat, 4 Jan 2014 03:18:33 +0000 (19:18 -0800)]
* admin/admin.el (manual-html-fix-index-2): Fix minor Texinfo 4 issue
with start of detailed menu.

10 years ago* admin.el (manual-html-fix-index-2): Tweak previous change.
Glenn Morris [Sat, 4 Jan 2014 02:35:45 +0000 (18:35 -0800)]
* admin.el (manual-html-fix-index-2): Tweak previous change.

10 years agoYet more Texinfo 5 tweaks for admin.el's make-manuals
Glenn Morris [Sat, 4 Jan 2014 02:31:56 +0000 (18:31 -0800)]
Yet more Texinfo 5 tweaks for admin.el's make-manuals

* admin.el (manual-html-fix-node-div): Handle Texinfo 5's movable <hr>.
(manual-html-fix-index-2): Tweak Texinfo 5 table format.

10 years ago* eshell.texi (What Eshell is not): Clean up confusing clause.
Aidan Gauland [Fri, 3 Jan 2014 23:14:16 +0000 (12:14 +1300)]
* eshell.texi (What Eshell is not): Clean up confusing clause.

10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Don't bother with
Stefan Monnier [Fri, 3 Jan 2014 22:38:55 +0000 (17:38 -0500)]
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Don't bother with
syntax-begin-function.

Fixes: debbugs:16247

10 years agoReverted 2014-01-02T21:05:34Z!vincentb1@users.sourceforge.net.
Vincent Belaïche [Fri, 3 Jan 2014 14:18:24 +0000 (15:18 +0100)]
Reverted 2014-01-02T21:05:34Z!vincentb1@users.sourceforge.net.

10 years agoReverted 2014-01-02T22:54:37Z!vincentb1@users.sourceforge.net.
Vincent Belaïche [Fri, 3 Jan 2014 14:15:53 +0000 (15:15 +0100)]
Reverted 2014-01-02T22:54:37Z!vincentb1@users.sourceforge.net.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 3 Jan 2014 11:21:25 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

10 years agoPort to C89.
Paul Eggert [Fri, 3 Jan 2014 06:47:27 +0000 (22:47 -0800)]
Port to C89.

* data.c (arithcompare_driver):
* fileio.c (Fcar_less_than_car):
* fns.c (internal_equal):
* frame.c (delete_frame):
* lisp.h (enum More_Lisp_Bits):
* lread.c (read1):
Avoid C99 constructs that don't work in C89.
* data.c (ULL_MAX, count_trailing_zeros_ll): New macros,
to port to C89, which doesn't have 'long long'.
(count_trailing_zero_bits): Use them.

10 years agoWhitespace fixes for recently-added code.
Paul Eggert [Fri, 3 Jan 2014 06:42:23 +0000 (22:42 -0800)]
Whitespace fixes for recently-added code.

10 years agoLisp manaual improvements re docstrings
Chong Yidong [Fri, 3 Jan 2014 05:49:06 +0000 (13:49 +0800)]
Lisp manaual improvements re docstrings

* doc/lispref/compile.texi (Docs and Compilation): Copyedits.

* doc/lispref/help.texi (Documentation, Accessing Documentation): Copyedits.
(Documentation Basics): Rewrite, avoiding a repeat discussion of
docstring conventions.

* doc/lispref/tips.texi (Documentation Tips): Move discussion of
emacs-lisp-docstring-fill-column here from Documentation Basics.

10 years agoRemove the dynamic-docstring-function feature.
Chong Yidong [Fri, 3 Jan 2014 05:37:58 +0000 (13:37 +0800)]
Remove the dynamic-docstring-function feature.

* emacs-lisp/advice.el (ad--make-advised-docstring): Change args.
Ignore function-documentation property when getting documentation.
(ad-activate-advised-definition): Use function-documentation
generate the docstring.
(ad-make-advised-definition): Don't call
ad-make-advised-definition-docstring.
(ad-make-advised-definition-docstring, ad-advised-definition-p):
Delete functions.

* emacs-lisp/nadvice.el (advice--make-docstring): Change args.
(advice--docstring): Delete variable.
(advice--make-1): Leave the docstring empty.
(advice-add): Use function-documentation for advised docstring.

* progmodes/sql.el (sql-help): Use function-documentation instead
of dynamic-docstring-function property.  No need to autoload now.
(sql--help-docstring): New variable.
(sql--make-help-docstring): Use it.

* doc.c (Fdocumentation): Remove dynamic-docstring-function.

10 years ago* lisp/ielm.el (ielm-tab): Retarget.
Stefan Monnier [Fri, 3 Jan 2014 05:10:52 +0000 (00:10 -0500)]
* lisp/ielm.el (ielm-tab): Retarget.
(ielm-map): Use ielm-tab for tab.
(ielm-complete-filename): Use comint-filename-completion.
(ielm-complete-symbol): Remove.
(inferior-emacs-lisp-mode): Use lisp-completion-at-point instead and
remove ielm-tab from completion-at-point-functions.

Fixes: debbugs:16224

10 years ago* lisp/emacs-lisp/pcase.el (pcase--split-equal, pcase--split-member):
Stefan Monnier [Fri, 3 Jan 2014 04:40:30 +0000 (23:40 -0500)]
* lisp/emacs-lisp/pcase.el (pcase--split-equal, pcase--split-member):
Beware signals raised by predicates.

Fixes: debbugs:16201

10 years agoFix typo.
Michael Albinus [Fri, 3 Jan 2014 04:10:07 +0000 (05:10 +0100)]
Fix typo.

10 years agoMore Texinfo 5 updates for make-manuals (not yet finished)
Glenn Morris [Fri, 3 Jan 2014 03:24:27 +0000 (19:24 -0800)]
More Texinfo 5 updates for make-manuals (not yet finished)

* admin/admin.el (manual-html-fix-headers): Tweak Texinfo 5 body.
(manual-html-fix-node-div): Treat "header" like "node".
(manual-html-fix-index-1): Handle Texinfo 5 top heading.
(manual-html-fix-index-2): Tweak Texinfo 5 listing tables.

10 years ago* doc/misc/efaq-w32.texi, reftex.texi: Use @insertcopying in non-TeX.
Glenn Morris [Fri, 3 Jan 2014 03:15:01 +0000 (19:15 -0800)]
* doc/misc/efaq-w32.texi, reftex.texi: Use @insertcopying in non-TeX.

10 years ago* ede.texi, eieio.texi, semantic.texi, srecode.texi: Add copyright notice
Glenn Morris [Fri, 3 Jan 2014 03:13:58 +0000 (19:13 -0800)]
* ede.texi, eieio.texi, semantic.texi, srecode.texi: Add copyright notice
to titlepage.

10 years ago* doc/misc/dbus.texi, nxml-mode.texi, widget.texi: Add titlepage.
Glenn Morris [Fri, 3 Jan 2014 03:07:20 +0000 (19:07 -0800)]
* doc/misc/dbus.texi, nxml-mode.texi, widget.texi: Add titlepage.

10 years ago* doc/misc/ert.texi: Add a titlepage. Use @insertcopying.
Glenn Morris [Fri, 3 Jan 2014 03:00:39 +0000 (19:00 -0800)]
* doc/misc/ert.texi: Add a titlepage.  Use @insertcopying.

10 years ago* doc/misc/calc.texi (Top): Use @top rather than @chapter.
Glenn Morris [Fri, 3 Jan 2014 02:53:29 +0000 (18:53 -0800)]
* doc/misc/calc.texi (Top): Use @top rather than @chapter.

10 years agoMerge from gnulib.
Paul Eggert [Fri, 3 Jan 2014 01:59:58 +0000 (17:59 -0800)]
Merge from gnulib.

This incorporates:
2014-01-02 manywarnings: remove -Wmudflap
This ports better to GCC 4.9-to-be.

10 years ago* eshell.text (top): Fix incorrect use of xref.
Aidan Gauland [Fri, 3 Jan 2014 01:55:15 +0000 (14:55 +1300)]
* eshell.text (top): Fix incorrect use of xref.

10 years agoCorrect ses--file-format checking.
Vincent Belaïche [Thu, 2 Jan 2014 22:54:37 +0000 (23:54 +0100)]
Correct ses--file-format checking.

10 years agodired-do-print handles printer-name
Richard M. Stallman [Thu, 2 Jan 2014 22:35:00 +0000 (17:35 -0500)]
dired-do-print handles printer-name

* dired-aux.el (dired-do-print): Handle printer-name.

10 years agoMinor rmail fixes.
Richard M. Stallman [Thu, 2 Jan 2014 22:30:32 +0000 (17:30 -0500)]
Minor rmail fixes.

* mail/rmail.el (rmail-get-coding-function): Variable.
(rmail-get-coding-system): Use it.

* mail/rmail.el (rmail-make-in-reply-to-field):
Add parens in message-id.

* mail/rmailmm.el (rmail-mime-message-p): Moved to rmail.el.
* mail/rmail.el (rmail-mime-message-p): Moved from rmailmm.el.
(rmail-epa-decrypt): Turn off mime processing.

10 years agoAdd support for local printer functions in SES.
Vincent Belaïche [Thu, 2 Jan 2014 21:05:34 +0000 (22:05 +0100)]
Add support for local printer functions in SES.

10 years ago* eshell.text (top): Fix incorrect info filename in an xref.
Aidan Gauland [Thu, 2 Jan 2014 20:17:19 +0000 (09:17 +1300)]
* eshell.text (top): Fix incorrect info filename in an xref.

10 years ago* doc/misc/Makefile.in (cc_mode_deps): Rename from (typo) ccmode_deps.
Glenn Morris [Thu, 2 Jan 2014 19:19:20 +0000 (11:19 -0800)]
* doc/misc/Makefile.in (cc_mode_deps): Rename from (typo) ccmode_deps.

10 years agoAdd 2014 to more copyright years
Glenn Morris [Thu, 2 Jan 2014 19:18:24 +0000 (11:18 -0800)]
Add 2014 to more copyright years

10 years ago* doc/lispref/numbers.texi (Numeric Conversions): Fix a typo.
Glenn Morris [Thu, 2 Jan 2014 19:17:48 +0000 (11:17 -0800)]
* doc/lispref/numbers.texi (Numeric Conversions): Fix a typo.
Also some ChangeLog fixes.

10 years agoFurther adjust frame/window scrollbar width calculations.
Martin Rudalics [Thu, 2 Jan 2014 15:58:48 +0000 (16:58 +0100)]
Further adjust frame/window scrollbar width calculations.

* window.c (apply_window_adjustment): Set
windows_or_buffers_changed.
(Fwindow_scroll_bars): Return actual scrollbar width.
* xfns.c (x_set_scroll_bar_default_width): Rename wid to unit.
For non-toolkit builds again use 14 as minimum width and set
FRAME_CONFIG_SCROLL_BAR_WIDTH accordingly.
* xterm.c (XTset_vertical_scroll_bar): Take width from
WINDOW_SCROLL_BAR_AREA_WIDTH.
(x_new_font): Rename wid to unit.  Base calculation of new
scrollbar width on toolkit used and make it analogous to that of
x_set_scroll_bar_default_width.
* w32fns.c (x_set_scroll_bar_default_width): Rename wid to unit.
(Fx_create_frame): Call x_set_scroll_bar_default_width instead
of GetSystemMetrics.
* w32term.c (w32_set_vertical_scroll_bar): Take width from
WINDOW_SCROLL_BAR_AREA_WIDTH.
(x_new_font): Make it correspond to changes in xterm.c.

10 years ago* NEWS: Explain, why xesam.el is obsolete.
Michael Albinus [Thu, 2 Jan 2014 09:40:11 +0000 (10:40 +0100)]
* NEWS: Explain, why xesam.el is obsolete.

10 years ago* eshell.text (Command Basics): Removed `Command basics' chapter.
Aidan Gauland [Thu, 2 Jan 2014 09:32:20 +0000 (22:32 +1300)]
* eshell.text (Command Basics): Removed `Command basics' chapter.

10 years ago* eshell.text (What is Eshell?): Add section about what not to use Eshell for.
Aidan Gauland [Thu, 2 Jan 2014 09:27:46 +0000 (22:27 +1300)]
* eshell.text (What is Eshell?): Add section about what not to use Eshell for.

10 years ago* admin/check-doc-strings: Replace `perl -w' with `use warnings;'.
Xue Fuqiao [Thu, 2 Jan 2014 08:47:40 +0000 (16:47 +0800)]
* admin/check-doc-strings: Replace `perl -w' with `use warnings;'.

10 years agoPrefer ASCII in doc and comments when the difference does not matter.
Paul Eggert [Wed, 1 Jan 2014 23:13:59 +0000 (15:13 -0800)]
Prefer ASCII in doc and comments when the difference does not matter.

10 years ago* lisp.h (EMACS_INT): Configure based on INTPTR_MAX, not LONG_MAX.
Paul Eggert [Wed, 1 Jan 2014 19:27:41 +0000 (11:27 -0800)]
* lisp.h (EMACS_INT): Configure based on INTPTR_MAX, not LONG_MAX.

This is a cleaner way to fix the MinGW-w64 porting problem.
Check for INTPTR_MAX misconfiguration.

10 years agoFix bug #16265 with buffer caches when modifying text in indirect buffers.
Eli Zaretskii [Wed, 1 Jan 2014 17:44:48 +0000 (19:44 +0200)]
Fix bug #16265 with buffer caches when modifying text in indirect buffers.

 src/search.c (newline_cache_on_off, find_newline): In indirect
 buffers, use the newline cache of the base buffer.
 src/insdel.c (invalidate_buffer_caches): If BUF is an indirect
 buffer, invalidate the caches of its base buffer.
 src/indent.c (width_run_cache_on_off, compute_motion): In indirect
 buffers, use the width-run cache of the base buffer.
 src/xdisp.c (redisplay_window): When the window displays an indirect
 buffer, and the character widths in the display table have
 changed, invalidate the width-run cache of the corresponding base
 buffer.
 src/fileio.c (Finsert_file_contents): When invalidating the newline
 cache, consider the case of inserting into indirect buffer.
 src/bidi.c (bidi_paragraph_cache_on_off, bidi_find_paragraph_start):
 In indirect buffers, use the paragraph cache of the base buffer.

10 years agoFix copyright years by hand.
Paul Eggert [Wed, 1 Jan 2014 08:31:29 +0000 (00:31 -0800)]
Fix copyright years by hand.

These are dates that admin/update-copyright did not update,
or updated incorrectly.

10 years agoUpdate copyright year to 2014 by running admin/update-copyright.
Paul Eggert [Wed, 1 Jan 2014 07:43:34 +0000 (07:43 +0000)]
Update copyright year to 2014 by running admin/update-copyright.

10 years agoFix last change of grow_mini_window.
Martin Rudalics [Tue, 31 Dec 2013 19:06:18 +0000 (20:06 +0100)]
Fix last change of grow_mini_window.

* window.c (grow_mini_window): Fix last change.

10 years ago* nsterm.m (windowDidResignKey:): Set mouse_moved to 0.
Jan Djärv [Tue, 31 Dec 2013 18:30:18 +0000 (19:30 +0100)]
* nsterm.m (windowDidResignKey:): Set mouse_moved to 0.

Fixes: debbugs:8421

10 years agoMinor fixes for MinGW64 build.
Fabrice Popineau [Tue, 31 Dec 2013 16:01:34 +0000 (18:01 +0200)]
Minor fixes for MinGW64 build.

 configure.ac (canonical, C_SWITCH_SYSTEM): Support a 64-bit
 MinGW64 build on MS-Windows.

 nt/inc/ms-w32.h (sys_kill): Fix prototype.

 src/w32term.c (w32_initialize): Use LCID and LOWORD.
 src/w32proc.c (create_child): Use pid_t for 5th argument.
 (IsValidLocale): Don't provide prototype for MinGW64.
 (Fw32_get_valid_keyboard_layouts, Fw32_get_keyboard_layout)
 (Fw32_set_keyboard_layout): Use HKL and HIWORD/LOWORD.
 src/w32heap.c (allocate_heap) [_WIN64]: Use "ull", not "i64", which
 MinGW64 doesn't support.
 src/lisp.h (EMACS_INT) [_WIN64]: Define for the MinGW64 build.

10 years agoFix typo in a comment in the last commit in w2.c.
Eli Zaretskii [Tue, 31 Dec 2013 15:12:33 +0000 (17:12 +0200)]
Fix typo in a comment in the last commit in w2.c.

10 years agomerge trunk
Kenichi Handa [Tue, 31 Dec 2013 15:04:57 +0000 (00:04 +0900)]
merge trunk

10 years agointernational/mule-conf.el: Unify the charset indian-is13194.
Kenichi Handa [Tue, 31 Dec 2013 15:03:36 +0000 (00:03 +0900)]
international/mule-conf.el: Unify the charset indian-is13194.
(indian-is13194): Specify unify-map.

10 years agoFall back on SetNamedSecurityInfo if SetFileSecurity fails in acl_set_file.
Fabrice Popineau [Tue, 31 Dec 2013 15:00:43 +0000 (17:00 +0200)]
Fall back on SetNamedSecurityInfo if SetFileSecurity fails in acl_set_file.

 src/w32.c (set_named_security_info): New function.
 (acl_set_file): Fall back on set_named_security_info if
 set_file_security fails.  Fixes rare failures in backups.
 (g_b_init_set_named_security_info_w)
 (g_b_init_set_named_security_info_a): New static variables.
 (globals_of_w32): Initialize them to zero.
 (set_named_security_info): Set them to non-zero if the
 corresponding API is available.
 (SetNamedSecurityInfoW_Proc, SetNamedSecurityInfoA_Proc): New
 function typedefs.

10 years agoSome more fixes following pixelwise resize changes including one for Bug#16306.
Martin Rudalics [Tue, 31 Dec 2013 09:48:54 +0000 (10:48 +0100)]
Some more fixes following pixelwise resize changes including one for Bug#16306.

* gtkutil.c (x_wm_set_size_hint): Have size hints respect value
of frame_resize_pixelwise.
* widget.c (pixel_to_text_size): New function.
(update_wm_hints): Have size hints respect value of
frame_resize_pixelwise.
(EmacsFrameResize): Alway process resize requests pixelwise.
* window.c (grow_mini_window): Make sure mini window is at least
one line tall.
* xdisp.c (display_menu_bar): Make sure menubar extends till
right end of frame.
* xfns.c (x_set_menu_bar_lines): Resize frame windows pixelwise.
(x_set_tool_bar_lines): Calculate pixelwise.
* xterm.c (x_wm_set_size_hint): Have size hints respect value of
frame_resize_pixelwise.

10 years ago* etc/NEWS: Relocate entries that had strayed to the wrong Emacs version.
Glenn Morris [Tue, 31 Dec 2013 02:02:49 +0000 (18:02 -0800)]
* etc/NEWS: Relocate entries that had strayed to the wrong Emacs version.

10 years ago* subr.el (set-temporary-overlay-map): Obsolete alias.
Leo Liu [Tue, 31 Dec 2013 00:27:27 +0000 (08:27 +0800)]
* subr.el (set-temporary-overlay-map): Obsolete alias.

Fixes: debbugs:16305

10 years agoIgnore XF86WakeUp
Daniel Colascione [Mon, 30 Dec 2013 23:27:07 +0000 (15:27 -0800)]
Ignore XF86WakeUp

10 years agoFix infloop in indentation code
Daniel Colascione [Mon, 30 Dec 2013 23:16:34 +0000 (15:16 -0800)]
Fix infloop in indentation code

10 years agosrc/fileio.c: Silence compiler warnings.
Juanma Barranquero [Mon, 30 Dec 2013 22:36:44 +0000 (23:36 +0100)]
src/fileio.c: Silence compiler warnings.

* fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows
variables not used there.

10 years ago* admin.el (manual-html-fix-headers, manual-html-fix-index-1):
Glenn Morris [Mon, 30 Dec 2013 18:58:16 +0000 (10:58 -0800)]
* admin.el (manual-html-fix-headers, manual-html-fix-index-1):
Some updates for changes in Texinfo 5 output.

10 years agoFix bug #16299 with assertion violation in set-default-file-modes on Windows.
Eli Zaretskii [Mon, 30 Dec 2013 17:51:28 +0000 (19:51 +0200)]
Fix bug #16299 with assertion violation in set-default-file-modes on Windows.

 src/w32.c (sys_umask): New function.

 nt/inc/ms-w32.h (umask) [emacs]: Redirect to sys_umask.

10 years agoRevert @documentencoding changes in the docs.
Eli Zaretskii [Mon, 30 Dec 2013 17:08:32 +0000 (19:08 +0200)]
Revert @documentencoding changes in the docs.

10 years agoFix Bug#16284.
Martin Rudalics [Mon, 30 Dec 2013 09:14:29 +0000 (10:14 +0100)]
Fix Bug#16284.

* dispnew.c (change_frame_size_1): Take old width of root window
from that window's pixel width.  Bug#16284.

10 years agoSpecify info encoding and language.
Paul Eggert [Mon, 30 Dec 2013 03:19:25 +0000 (19:19 -0800)]
Specify info encoding and language.

* emacs.texi, emacs-xtra.texi:
* emacs-lisp-intro.texi:
* back.texi, book-spine.texi, elisp.texi, lay-flat.texi:
* ada-mode.texi, auth.texi, autotype.texi, bovine.texi, calc.texi:
* cc-mode.texi, cl.texi, dbus.texi, dired-x.texi, ebrowse.texi:
* ede.texi, ediff.texi, edt.texi, efaq-w32.texi, efaq.texi:
* eieio.texi, emacs-gnutls.texi, emacs-mime.texi, epa.texi, erc.texi:
* ert.texi, eshell.texi, eudc.texi, flymake.texi, forms.texi:
* gnus-coding.texi, gnus-faq.texi, gnus.texi, htmlfontify.texi:
* idlwave.texi, ido.texi, info.texi, mairix-el.texi, message.texi:
* mh-e.texi, newsticker.texi, nxml-mode.texi, octave-mode.texi:
* org.texi, pcl-cvs.texi, pgg.texi, rcirc.texi, reftex.texi:
* remember.texi, sasl.texi, sc.texi, semantic.texi, ses.texi:
* sieve.texi, smtpmail.texi, speedbar.texi, srecode.texi:
* todo-mode.texi, tramp.texi, url.texi, vip.texi, viper.texi:
* widget.texi, wisent.texi, woman.texi:
Add @documentencoding, @documentlanguage as needed.

Fixes: debbugs:16292

10 years ago* emacs-lisp-intro.texi: Use @quotation for license notice.
Glenn Morris [Mon, 30 Dec 2013 03:08:09 +0000 (19:08 -0800)]
* emacs-lisp-intro.texi: Use @quotation for license notice.

10 years agoPlain copy-file no longer chmods an existing destination.
Paul Eggert [Sun, 29 Dec 2013 18:18:45 +0000 (10:18 -0800)]
Plain copy-file no longer chmods an existing destination.

* doc/lispref/files.texi (Changing Files): Document this.
* etc/NEWS: Document this.
* src/fileio.c (realmask): Now a static var, not a local.
(barf_or_query_if_file_exists): New arg KNOWN_TO_EXIST.
Remove arg STATPTR.  All uses changed.
(Fcopy_file): Do not alter permissions of existing destinations,
unless PRESERVE-PERMISSIONS (renamed from
PRESERVE-EXTENDED-ATTRIBUTES) is non-nil.
Avoid race when testing for existing destinations and for
when input and output files are the same.
If changing the group fails, adjust both default and
preserved permissions so that access is not granted to the
wrong group.
(Fset_default_file_modes, init_fileio): Update realmask.
(Fdefault_file_modes): Use realmask instead of calling umask.

Fixes: debbugs:16133

10 years ago* configure.ac (xcsdkdir): Only set if using xcrun.
Jan Djärv [Sun, 29 Dec 2013 13:17:09 +0000 (14:17 +0100)]
* configure.ac (xcsdkdir): Only set if using xcrun.

10 years agoRevert quoting of xcrun-related library.
Paul Eggert [Sun, 29 Dec 2013 07:52:53 +0000 (23:52 -0800)]
Revert quoting of xcrun-related library.

10 years ago* src/emacs.c (main): [DAEMON_MUST_EXEC]: Restore close-on-exec after exec.
Paul Eggert [Sun, 29 Dec 2013 07:42:46 +0000 (23:42 -0800)]
* src/emacs.c (main): [DAEMON_MUST_EXEC]: Restore close-on-exec after exec.

Fixes: debbugs:16262

10 years ago* configure.ac (LIBXML2_CFLAGS): Fix xcrun-related quoting problem.
Paul Eggert [Sun, 29 Dec 2013 07:15:01 +0000 (23:15 -0800)]
* configure.ac (LIBXML2_CFLAGS): Fix xcrun-related quoting problem.

Reported by YAMAMOTO Mitsuharu in:
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00995.html

10 years agoAdd the "use strict;" and "use warnings;" pragmas.
Xue Fuqiao [Sun, 29 Dec 2013 05:18:15 +0000 (13:18 +0800)]
Add the "use strict;" and "use warnings;" pragmas.

* admin/make-emacs:
* admin/build-configs: Add the "use strict;" and "use warnings;" pragmas.

10 years agoFix pipe bug with OS X emacs --daemon (Bug#16262).
Paul Eggert [Sat, 28 Dec 2013 22:56:58 +0000 (14:56 -0800)]
Fix pipe bug with OS X emacs --daemon (Bug#16262).

* emacs.c (main) [DAEMON_MUST_EXEC]: Clear the close-on-exec
flags on the daemon pipe ends before execing.

10 years agoFix bug #16272 when inserting newline at point-min in electric-pair-mode.
João Távora [Sat, 28 Dec 2013 19:26:54 +0000 (19:26 +0000)]
Fix bug #16272 when inserting newline at point-min in electric-pair-mode.

* elec-pair.el (electric-pair-post-self-insert-function): Don't
open extra newlines at beginning of buffer.

10 years agoFix a thinko in last commit.
Eli Zaretskii [Sat, 28 Dec 2013 17:12:57 +0000 (19:12 +0200)]
Fix a thinko in last commit.

10 years agoFix bug #14739 with creation of GUI frames from TTY session on Windows.
Eli Zaretskii [Sat, 28 Dec 2013 11:47:26 +0000 (13:47 +0200)]
Fix bug #14739 with creation of GUI frames from TTY session on Windows.

 src/w32fns.c (Fx_create_frame): Error out if called from a TTY
 session.

 lisp/frame.el (window-system-for-display): Don't allow to create a
 GUI frame from a -nw session on MS-Windows.

10 years ago* configure.ac: Fix CC detection for xcrun case.
Jan Djärv [Sat, 28 Dec 2013 10:37:53 +0000 (11:37 +0100)]
* configure.ac: Fix CC detection for xcrun case.

10 years ago* configure.ac: Fix CC detection for xcrun case.
Jan Djärv [Sat, 28 Dec 2013 10:12:43 +0000 (11:12 +0100)]
* configure.ac: Fix CC detection for xcrun case.

10 years ago* admin/admin.el (cusver-scan): Warn about missing :types.
Glenn Morris [Sat, 28 Dec 2013 08:33:44 +0000 (00:33 -0800)]
* admin/admin.el (cusver-scan): Warn about missing :types.
(cusver-check): Interactively, require existing directories.

* admin/cus-test.el: Comment.

10 years agoRevert earlier erc-button change
Glenn Morris [Sat, 28 Dec 2013 08:27:34 +0000 (00:27 -0800)]
Revert earlier erc-button change

10 years agoEvery defcustom should specify its type
Glenn Morris [Sat, 28 Dec 2013 08:21:33 +0000 (00:21 -0800)]
Every defcustom should specify its type

* apropos.el (apropos-match-face):
* calculator.el (calculator-displayer):
* dabbrev.el (dabbrev-search-these-buffers-only):
* face-remap.el (buffer-face-mode-face):
* simple.el (yank-handled-properties):
* emacs-lisp/testcover.el (testcover-potentially-1value-functions):
* mail/footnote.el (footnote-mode-line-string, footnote-prefix):
* mail/hashcash.el (hashcash-accept-resources, hashcash-program)
(hashcash-double-spend-database):
* progmodes/ruby-mode.el (ruby-deep-indent-paren)
(ruby-deep-indent-paren-style):
* textmodes/flyspell.el (flyspell-auto-correct-binding):
* textmodes/rst.el (rst-toc-indent, rst-toc-insert-style)
(rst-toc-insert-number-separator, rst-toc-insert-max-level):
* vc/pcvs-defs.el (cvs-minor-mode-prefix):
* erc/erc-log.el (erc-log-file-coding-system):
* gnus/gnus-sieve.el (gnus-sieve-select-method):
* gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl)
(gravatar-rating, gravatar-size):
* gnus/message.el (message-minibuffer-local-map):
* gnus/sieve-manage.el (sieve-manage-authenticators)
(sieve-manage-authenticator-alist):
Specify custom types.

* mail/hashcash.el (hashcash-program): Rename from hashcash-path.
Update callers.

10 years agoSpelling and typo fixes.
Paul Eggert [Sat, 28 Dec 2013 06:37:35 +0000 (22:37 -0800)]
Spelling and typo fixes.

10 years agoDoc updates
Chong Yidong [Sat, 28 Dec 2013 04:30:19 +0000 (12:30 +0800)]
Doc updates

* buffers.texi (Modification Time): Document visited-file-modtime change.

* modes.texi (Auto Major Mode): Document interpreter-mode-alist change.

10 years agoChangeLog fixes for font-locking
Glenn Morris [Sat, 28 Dec 2013 02:17:54 +0000 (18:17 -0800)]
ChangeLog fixes for font-locking

10 years agoAdd missing custom :versions, plus small fixes
Glenn Morris [Sat, 28 Dec 2013 02:16:05 +0000 (18:16 -0800)]
Add missing custom :versions, plus small fixes

* emacs-lisp/smie.el (smie-config): Add type, version, initialize.

* bookmark.el (bookmark-bmenu-use-header-line):
* doc-view.el (doc-view-scale-internally):
* pcmpl-x.el (pcmpl-x-tlmgr-program, pcmpl-x-ack-program):
* register.el (register-preview-delay):
* net/shr.el (shr-bullet):
* progmodes/cfengine.el (cfengine-cf-promises)
(cfengine-parameters-indent):
* progmodes/octave.el (inferior-octave-error-regexp-alist):
* textmodes/reftex-vars.el (reftex-label-regexps):
* vc/log-edit.el (log-edit-setup-add-author): Add version.

* cedet/ede/linux.el (project-linux-build-directory-default)
(project-linux-architecture-default): Fix custom types.  Add version.

* gnus/gnus-icalendar.el (gnus-icalendar-org, gnus-icalendar):
* gnus/gnus-sum.el (gnus-subthread-sort-functions): Add version.
* gnus/gnus-sync.el (gnus-sync-file-encrypt-to): Add type and version.

10 years agoMisc small custom fixes
Glenn Morris [Sat, 28 Dec 2013 01:24:15 +0000 (17:24 -0800)]
Misc small custom fixes

The value of defcustom's const should not be quoted!

* lisp/desktop.el (desktop-restore-in-current-display):
* lisp/newcomment.el (comment-empty-lines):
* lisp/progmodes/idlwave.el (idlwave-scan-all-buffers-for-routine-info)
(idlwave-pad-keyword):
* lisp/progmodes/tcl.el (tcl-tab-always-indent):
* lisp/textmodes/reftex-vars.el (reftex-index-default-tag):
* lisp/elec-pair.el (electric-pair-skip-whitespace):
* lisp/progmodes/cfengine.el (cfengine-cf-promises):
* lisp/cedet/ede/linux.el (project-linux-build-directory-default)
(project-linux-architecture-default):
* lisp/erc/erc-button.el (erc-button-alist):
* lisp/gnus/auth-source.el (auth-sources):
* lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
* lisp/url/url-history.el (url-history-track):
* lisp/url/url-vars.el (url-honor-refresh-requests):
Fix custom types.

* lisp/net/tls.el (tls-certtool-program): Fix default value.

10 years agoTweak previos change
Glenn Morris [Sat, 28 Dec 2013 00:48:28 +0000 (16:48 -0800)]
Tweak previos change

10 years ago* doc/lispref/control.texi (Pattern matching case statement): Brevity.
Glenn Morris [Sat, 28 Dec 2013 00:47:15 +0000 (16:47 -0800)]
* doc/lispref/control.texi (Pattern matching case statement): Brevity.

10 years ago* doc/emacs/trouble.texi (Understanding Bug Reporting): Brevity.
Glenn Morris [Sat, 28 Dec 2013 00:42:59 +0000 (16:42 -0800)]
* doc/emacs/trouble.texi (Understanding Bug Reporting): Brevity.

ChangeLog fix.

10 years agoFix problem with MAKE and xcrun configuration.
Paul Eggert [Sat, 28 Dec 2013 00:40:58 +0000 (16:40 -0800)]
Fix problem with MAKE and xcrun configuration.

* configure.ac: Don't set MAKE unless 'make' doesn't work.
Set it only in the environment, not in the makefile.
Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00969.html

10 years agoFix ChangeLog typos.
Juanma Barranquero [Sat, 28 Dec 2013 00:36:00 +0000 (01:36 +0100)]
Fix ChangeLog typos.

10 years agoauthors.el updates and ChangeLog fixes
Glenn Morris [Sat, 28 Dec 2013 00:31:33 +0000 (16:31 -0800)]
authors.el updates and ChangeLog fixes

* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names, authors-renamed-files-alist): Additions.

10 years agoChangeLog fixes
Glenn Morris [Sat, 28 Dec 2013 00:08:54 +0000 (16:08 -0800)]
ChangeLog fixes

10 years ago* test/automated/electric-tests.el: Require 'elec-pair.
Glenn Morris [Sat, 28 Dec 2013 00:04:56 +0000 (16:04 -0800)]
* test/automated/electric-tests.el: Require 'elec-pair.

Set copyright holder to FSF.

10 years agoRevert unnecessary earlier change
Glenn Morris [Sat, 28 Dec 2013 00:03:17 +0000 (16:03 -0800)]
Revert unnecessary earlier change

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 28 Dec 2013 00:00:54 +0000 (19:00 -0500)]
Auto-commit of loaddefs files.

10 years agoShell completion for filenames from current directory, related docs.
Jarek Czekalski [Fri, 27 Dec 2013 20:58:21 +0000 (21:58 +0100)]
Shell completion for filenames from current directory, related docs.

* lisp/shell.el  Shell completion now matches executable filenames from
the current buffer's directory, on systems in which this behaviour
is the default (windows-nt, ms-dos).
* src/callproc.c (Vexec_path): Document that exec-directory is in it.
* doc/emacs/mini.texi (Completion Options): Add a link to Shell Options.
* doc/emacs/misc.texi (Shell Mode): Move documentation of
shell-completion-fignore from Shell Mode to Shell Options.

Fixes: debbugs:15461

10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Unbreak bootstrap.
Glenn Morris [Fri, 27 Dec 2013 20:24:25 +0000 (12:24 -0800)]
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Unbreak bootstrap.

10 years agoPort xcrun configuration to GNU/Linux.
Paul Eggert [Fri, 27 Dec 2013 19:14:10 +0000 (11:14 -0800)]
Port xcrun configuration to GNU/Linux.

* configure.ac (xcsdkdir): Default to empty.
(XCRUN): Don't require Darwin for xcrun.  Move xcrun checking to
just before AM_INIT_AUTOMAKE, to make the dependency between it
and automake clearer.
(CC): Don't use AC_PROG_CC twice; only the first use expands to the
shell code that is wanted, which breaks 'configure' on non-Darwin
platforms.  Instead, fix CC by hand if it's not found.

10 years agoFix Electric Pair mode's autowrapping tests in batch-mode.
João Távora [Fri, 27 Dec 2013 18:05:03 +0000 (18:05 +0000)]
Fix Electric Pair mode's autowrapping tests in batch-mode.

10 years ago* configure.ac: Detect xcrun on OSX and use it for make, gcc and libxml.
Jan Djärv [Fri, 27 Dec 2013 16:57:52 +0000 (17:57 +0100)]
* configure.ac: Detect xcrun on OSX and use it for make, gcc and libxml.

10 years ago* net/shr.el (shr-insert): Don't infloop if the width is zero.
Lars Ingebrigtsen [Fri, 27 Dec 2013 15:43:54 +0000 (16:43 +0100)]
* net/shr.el (shr-insert): Don't infloop if the width is zero.

10 years ago* lisp/icomplete.el (icomplete-show-matches-on-no-input): Default to nil.
Stefan Monnier [Fri, 27 Dec 2013 12:55:26 +0000 (07:55 -0500)]
* lisp/icomplete.el (icomplete-show-matches-on-no-input): Default to nil.

Fixes: debbugs:16251