Paul Eggert [Thu, 28 Aug 2014 00:50:36 +0000 (17:50 -0700)]
* sysdep.c (LC_COLLATE, LC_COLLATE_MASK): Give individual defaults.
Fixes: debbugs:18051
Eli Zaretskii [Wed, 27 Aug 2014 19:40:54 +0000 (22:40 +0300)]
Fix bug #18339 with segfault when $ is typed into empty LaTeX buffer.
src/syntax.c (scan_lists): Don't examine positions before BEGV.
Paul Eggert [Wed, 27 Aug 2014 18:56:47 +0000 (11:56 -0700)]
Improve robustness of new string-collation code.
* configure.ac (newlocale): Check for this, not for uselocale.
* src/sysdep.c (LC_COLLATE, LC_COLLATE_MASK, freelocale, locale_t)
(newlocale, wcscoll_l): Define substitutes for platforms that
lack them, so as to simplify the mainline code.
(str_collate): Simplify the code by assuming the above definitions.
Use wcscoll_l, not uselocale, as uselocale is too fragile. For
example, the old version left the Emacs in the wrong locale if
wcscoll reported an error. Use 'int', not ptrdiff_t, for the int
result. Report an error if newlocale fails.
Fixes: debbugs:18051
Michael Albinus [Wed, 27 Aug 2014 11:22:37 +0000 (13:22 +0200)]
* lisp.h (str_collate):
* sysdep.c (str_collate): Return int.
(str_collate) [__STDC_ISO_10646__]: Propagate error of wcscoll.
Dmitry Antipov [Wed, 27 Aug 2014 10:51:21 +0000 (14:51 +0400)]
* src/keyboard.c (Vtop_level_message): Rename to
Vinternal__top_level_message, as suggested by Stefan Monnier in
http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00493.html
All related users changed.
* lisp/startup.el (normal-top-level): Now use internal--top-level-message.
* doc/lispref/eval.texi (Eval): Mention possible recovery from stack overflow.
Dmitry Antipov [Wed, 27 Aug 2014 04:15:20 +0000 (08:15 +0400)]
Fix some glitches in previous change.
* sysdep.c (stack_direction): Replace stack_grows_down
to simplify calculation of stack boundaries.
(handle_sigsegv): Check whether we really crash somewhere near
to stack boundary, and handle fatal signal as usual if not.
(init_sigsegv): Adjust accordingly.
Katsumi Yamaoka [Tue, 26 Aug 2014 23:56:11 +0000 (23:56 +0000)]
gnus-art.el (gnus-article-browse-html-save-cid-content, gnus-article-browse-html-parts): Revert last change that breaks links other than cid contents
Katsumi Yamaoka [Tue, 26 Aug 2014 23:28:22 +0000 (23:28 +0000)]
gnus-art.el (gnus-article-browse-html-save-cid-content, gnus-article-browse-html-parts): Make cid file names relative
Glenn Morris [Tue, 26 Aug 2014 17:58:06 +0000 (13:58 -0400)]
authors.el updates and sorting change
* admin/authors.el (authors-ignored-files, authors-valid-file-names)
(authors-renamed-files-alist): Additions.
(authors-renamed-files-alist): Revert 2014-08-09 change.
(authors): Sort authors in utf-8 order.
Fixes: debbugs:2263
Glenn Morris [Tue, 26 Aug 2014 17:55:07 +0000 (13:55 -0400)]
ChangeLog fixes
Dmitry Antipov [Tue, 26 Aug 2014 14:42:06 +0000 (18:42 +0400)]
* configure.ac (HAVE_LINUX_SYSINFO): Avoid false positive on Solaris.
Dmitry Antipov [Tue, 26 Aug 2014 08:01:48 +0000 (12:01 +0400)]
* sysdep.c (init_sigsegv) [HAVE_STACK_OVERFLOW_HANDLING]: Add comment.
Dmitry Antipov [Tue, 26 Aug 2014 06:25:59 +0000 (10:25 +0400)]
Handle C stack overflow caused by too nested Lisp evaluation.
* configure.ac: Check for sigaltstack and related sigaction
support. Unconditionally check for sigsetjmp and siglongjmp.
(HAVE_STACK_OVERFLOW_HANDLING): Define if we can support it.
* src/lisp.h (toplevel) [HAVE_STACK_OVERFLOW_HANDLING]: Declare
siglongjmp point to transfer control from SIGSEGV handler.
* src/keyboard.c (return_to_command_loop, recover_top_level_message)
[HAVE_STACK_OVERFLOW_HANDLING]: New variables.
(regular_top_level_message): New variable.
(command_loop) [HAVE_STACK_OVERFLOW_HANDLING]: Handle non-local
exit from SIGSEGV handler and adjust message displayed by Vtop_level
if appropriate.
(syms_of_keyboard): DEFVAR Vtop_level_message and initialize
new variables described above.
* src/sysdep.c [HAVE_SYS_RESOURCE_H]: Include sys/resource.h as such.
(stack_grows_down, sigsegv_stack, handle_sigsegv)
[HAVE_STACK_OVERFLOW_HANDLING]: New variables and function.
(init_sigsegv): New function.
(init_signals): Use it.
* lisp/startup.el (normal-top-level): Use top-level-message.
Ken Brown [Mon, 25 Aug 2014 20:55:37 +0000 (16:55 -0400)]
Fix accidental deletion of a line in last change.
Ken Brown [Mon, 25 Aug 2014 20:49:52 +0000 (16:49 -0400)]
* configure.ac (G_SLICE_ALWAYS_MALLOC): Remove obsolete macro.
* src/emacs.c (main): Remove use of obsolete macro
G_SLICE_ALWAYS_MALLOC.
Glenn Morris [Mon, 25 Aug 2014 16:48:08 +0000 (12:48 -0400)]
* vc-git.el: Comments.
Lars Magne Ingebrigtsen [Mon, 25 Aug 2014 16:04:39 +0000 (18:04 +0200)]
Fix typo in last shr.el check-in
Lars Magne Ingebrigtsen [Mon, 25 Aug 2014 15:59:38 +0000 (17:59 +0200)]
shr.el: Encode copied URLs
* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
URLs containing spaces and the like.
Eli Zaretskii [Mon, 25 Aug 2014 15:55:46 +0000 (18:55 +0300)]
Implement locale-sensitive string collation for MS-Windows. (Bug#18051)
src/w32proc.c (get_lcid_callback, get_lcid, w32_compare_strings):
New functions.
src/w32.h (w32_compare_strings): Add prototype.
src/w32.c <g_b_init_compare_string_w>: New global flag.
(globals_of_w32): Initialize it.
src/sysdep.c (str_collate) [WINDOWSNT]: Implementation for MS-Windows.
src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp)
[WINDOWSNT]: Call str_collate on MS-Windows.
etc/NEWS: Mention that string-collate-* functions are supported on
MS-Windows as well.
Dmitry Antipov [Mon, 25 Aug 2014 07:00:42 +0000 (11:00 +0400)]
One more minor cleanup of font subsystem.
* font.h (struct font_driver): Convert text_extents to
return void because returned value is never actually used.
* macfont.c (macfont_text_extents):
* w32font.c (w32font_text_extents):
* xftfont.c (xftfont_text_extents): Adjust to return void
and assume that 'metrics' argument is always non-NULL.
* ftfont.c (ftfont_text_extents):
* xfont.c (xfont_text_extents): Likewise. Avoid redundant memset.
Paul Eggert [Mon, 25 Aug 2014 05:44:57 +0000 (22:44 -0700)]
Minor cleanups of str_collate fix.
* fns.c (str_collate): Move decl from here ...
* lisp.h (str_collate): ... to here.
* sysdep.c (str_collate): Prune away some of the forest of ifdefs.
Remove unnecessary casts. Use SAFE_NALLOCA to avoid
potential problems with integer overflow. Don't assume
setlocale succeeds. Remove unnecessary test before restoring
locale via setlocale, and free the copied setlocale string
when done with it.
Fixes: debbugs:18051
Christoph Scholtes [Mon, 25 Aug 2014 03:16:36 +0000 (21:16 -0600)]
Fix docstring of `remq'
* lisp/subr.el (remq): Fix docstring.
Fixes: debbugs:18253
Christoph Scholtes [Mon, 25 Aug 2014 02:36:45 +0000 (20:36 -0600)]
* lisp/replace.el (query-replace): Fix typo in docstring.
Fixes: debbugs:18320
Christoph Scholtes [Mon, 25 Aug 2014 02:29:58 +0000 (20:29 -0600)]
Remove reference to obsolete configure scripts
* INSTALL.REPO: Remove reference to obsolete configure scripts
on non-Posix platforms.
Fixes: debbugs:18323
Alan Mackenzie [Sun, 24 Aug 2014 20:50:11 +0000 (20:50 +0000)]
Handle C++11's "auto" and "decltype" constructions.
cc-engine.el (c-forward-type): Enhance to recognise and return 'decltype.
(c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
prev-kwd-sym, new-style-auto. Enhance to handle the new "auto" keyword.
cc-fonts.el (c-font-lock-declarations): Handle the "decltype" keyword.
(c-font-lock-c++-new): Handle "decltype" constructions.
cc-langs.el (c-auto-ops, c-auto-ops-re): New c-lang-defconsts/defvars.
(c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
(c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
(c-typeless-decl-kwds): Append "auto" onto the C++ value.
(c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.
Alan Mackenzie [Sun, 24 Aug 2014 20:38:11 +0000 (20:38 +0000)]
Make ">>" act as double template ender in C++ Mode.
cc-langs.el (c->-op-cont-tokens): New lang-const split off from
c->-op-cont-re.
(c->-op-cont-tokens): Change to use the above.
(c->-op-without->-cont-regexp): New lang-const.
cc-engine.el (c-forward-<>-arglist-recur): Use
c->-op-without->-cont-regexp in place of c->-op-cont-tokens.
Michael Albinus [Sun, 24 Aug 2014 15:47:06 +0000 (17:47 +0200)]
Mention the new functions `string-collate-lessp' and `string-collate-equalp'.
Michael Albinus [Sun, 24 Aug 2014 15:40:07 +0000 (17:40 +0200)]
Add string collation.
* configure.ac: Check also for the uselocale function.
* src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp): New DEFUNs.
* src/sysdep.c (str_collate): New function. (Bug#18051)
Alan Mackenzie [Sat, 23 Aug 2014 11:02:20 +0000 (11:02 +0000)]
progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite loop, bug
#18306. The bug was introduced on 2014-08-02.
Eli Zaretskii [Sat, 23 Aug 2014 09:14:13 +0000 (12:14 +0300)]
configure.ac: Comment fix.
Karol Ostrovsky [Sat, 23 Aug 2014 08:48:30 +0000 (11:48 +0300)]
Fix bug #18302 with minor issues in the MSYS2/MinGW64 build.
configure.ac: Accept "*-mingw*", not just "*-mingw32", as
canonical name of a MinGW build, because using MSYS2 'uname'
produces "MINGW64".
src/Makefile.in (emacs$(EXEEXT)): Retry deletion of bootstrap-emacs
if the initial "rm -f" fails. This is for MinGW builds, where
MS-Windows will not allow deleting the executable file of a
running program.
Katsumi Yamaoka [Thu, 21 Aug 2014 23:02:23 +0000 (23:02 +0000)]
lisp/gnus/mm-view.el (mm-display-inline-fontify): Make the working buffer temporarily displayed when running a mode function (at least org-mode requires it)
Ken Brown [Thu, 21 Aug 2014 21:52:26 +0000 (17:52 -0400)]
* configure.ac (HAVE_XPM): Explain the use of CPPFLAGS in the Cygwin-w32 build. (Bug#18302)
Eli Zaretskii [Thu, 21 Aug 2014 15:07:13 +0000 (18:07 +0300)]
Fix a bug in texinfo-make-menu.
lisp/textmodes/texnfo-upd.el (texinfo-specific-section-type): Don't
recognize a Top node if there are other sectioning commands
earlier in the Texinfo file. This fixes a bug in
texinfo-make-menu and avoids inflooping in
texinfo-all-menus-update when they are invoked on texinfo.texi.
Martin Rudalics [Thu, 21 Aug 2014 08:40:29 +0000 (10:40 +0200)]
Handle failed attempts to split a side window (Bug#18304).
* window.el (window--side-window-p): New function.
(split-window, window-splittable-p): Use window--side-window-p to
determine whether WINDOW can be split (Bug#18304).
* calendar/calendar.el (calendar-basic-setup): Fix one call of
`window-splittable-p' and add another (Bug#18304).
Glenn Morris [Wed, 20 Aug 2014 20:07:00 +0000 (16:07 -0400)]
ChangeLog fix
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01038.html
Sam Steingold [Wed, 20 Aug 2014 15:33:10 +0000 (11:33 -0400)]
Extract python-new-pythonpath to handle PYTHONPATH in user code
* lisp/progmodes/python.el (python-new-pythonpath): Extract from
`python-shell-calculate-process-environment'.
Eli Zaretskii [Wed, 20 Aug 2014 14:41:15 +0000 (17:41 +0300)]
Remove 16-bit limitations in scroll bar position reporting on MS-Windows.
src/w32term.c (w32_scroll_bar_handle_click)
(w32_horizontal_scroll_bar_handle_click)
(x_scroll_bar_report_motion)
(x_horizontal_scroll_bar_report_motion): For SB_THUMBPOSITION and
SB_THUMBTRACK, use the 32-bit position information returned by
GetScrollInfo, not the 16-bit information returned in the Windows
message sent to us.
Eli Zaretskii [Tue, 19 Aug 2014 15:08:02 +0000 (18:08 +0300)]
Fix horizontal scroll bar dragging in R2L paragraphs.
src/w32term.c (w32_horizontal_scroll_bar_handle_click): Fix the
second coordinate ('y') reported for dragging the horizontal
scroll bar thumb.
YAMAMOTO Mitsuharu [Tue, 19 Aug 2014 00:51:33 +0000 (09:51 +0900)]
* xdisp.c (erase_phys_cursor): Fix confusion between window-relative
and text area-relative x-coordinates.
Thierry Volpiatto [Mon, 18 Aug 2014 19:28:40 +0000 (15:28 -0400)]
* lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument): Add support
for &key args.
* emacs-lisp/eldoc.el (eldoc-argument-case): Obsolete and change default.
(eldoc-function-argstring-format): Remove.
(eldoc-function-argstring): Always return upcase args.
Use help-make-usage. Don't add parens.
(eldoc-get-fnsym-args-string): Don't obey eldoc-argument-case since
it's too late to do it right (bug#18048).
Eli Zaretskii [Mon, 18 Aug 2014 14:39:26 +0000 (17:39 +0300)]
Fix horizontal scrolling in non-selected windows.
lisp/scroll-bar.el (scroll-bar-horizontal-drag-1)
(scroll-bar-toolkit-horizontal-scroll): When determining the
paragraph direction, use the buffer of the window designated in
the event.
Eli Zaretskii [Sun, 17 Aug 2014 14:58:04 +0000 (17:58 +0300)]
Avoid overwriting the reversed_p flags in the glyph matrices.
Avoid overwriting the reversed_p flags in the glyph matrices when
init_iterator or start_display are called.
src/xdisp.c (init_iterator): Don't initialize the reversed_p flag of
the glyph row here.
(tool_bar_height, redisplay_tool_bar, try_window)
(try_window_reusing_current_matrix, try_window_id)
(get_overlay_arrow_glyph_row, display_menu_bar): Initialize the
reversed_p flag of the iterator's glyph row where the glyph row
is going to be redrawn.
Andreas Schwab [Sat, 16 Aug 2014 19:51:27 +0000 (21:51 +0200)]
Handle missing space marker in unified diff during header fixup
* vc/diff-mode.el (diff-fixup-modifs): Handle empty line in
context of unified diff.
Paul Eggert [Sat, 16 Aug 2014 16:50:32 +0000 (09:50 -0700)]
Add dependencies to fix loaddefs race during parallel builds.
Without this, for example, 'make -j bootstrap' can fail and report
"Opening input file: no such file or directory,
.../lisp/calendar/diary-loaddefs.el ... recipe for target
'calendar/hol-loaddefs.el' failed", where the hol-loaddefs.el rule
got confused because diary-loaddefs.el was being built in parallel.
* Makefile.in ($(CAL_DIR)/diary-loaddefs.el):
Depend on $(CAL_DIR)/cal-loaddefs.el.
($(CAL_DIR)/hol-loaddefs.el): Depend on $(CAL_DIR)/diary-loaddefs.el.
Paul Eggert [Sat, 16 Aug 2014 16:10:50 +0000 (09:10 -0700)]
* xdisp.c (set_horizontal_scroll_bar): Don't use uninitialized local.
Martin Rudalics [Sat, 16 Aug 2014 15:47:38 +0000 (17:47 +0200)]
Preliminary attempt to fix horizontal scroll bar dragging with bidi text.
* w32term.c (w32_horizontal_scroll_bar_handle_click): In y part
of emacs_event return length from si.nPage to si.nMax.
* xdisp.c (set_horizontal_scroll_bar): For right-to-left text
interchange start and end of thumb.
* scroll-bar.el (scroll-bar-horizontal-drag-1): Use cdr of
portion-whole for scrolling right-to-left text.
Glenn Morris [Fri, 15 Aug 2014 04:34:06 +0000 (21:34 -0700)]
Merge from emacs-24; up to 2014-06-29T18:32:35Z!michael.albinus@gmx.de
Glenn Morris [Fri, 15 Aug 2014 04:05:36 +0000 (21:05 -0700)]
Regenerate ldefs-boot.el
Glenn Morris [Thu, 14 Aug 2014 20:02:30 +0000 (16:02 -0400)]
Regenerate etc/AUTHORS
Glenn Morris [Thu, 14 Aug 2014 19:56:31 +0000 (15:56 -0400)]
Bump version number to 24.3.93
Alan Schmitt [Thu, 14 Aug 2014 11:31:23 +0000 (11:31 +0000)]
gnus-sum.el (gnus-summary-expire-articles): Reinstall improved version of the 2014-08-05 change
Jan Nieuwenhuizen [Wed, 13 Aug 2014 19:17:21 +0000 (21:17 +0200)]
Support Guile backtraces in compilation mode.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Add Guile regexpses.
* etc/compilation.txt (file): Add Guile backtrace example.
* test/automated/compile-tests.el (compile--test-error-line):
Grok FILE being nil. Allows for Guile tests to pass.
(compile-tests--test-regexps-data): Add Guile tests.
Jan Nieuwenhuizen [Wed, 13 Aug 2014 19:15:28 +0000 (21:15 +0200)]
Initial Guile REPL (guiler) debugger support for GUD.
* progmodes/gud.el (guiler): New function. Starts the Guile REPL;
add Guile debugger support for GUD.
Eli Zaretskii [Wed, 13 Aug 2014 18:10:15 +0000 (21:10 +0300)]
lisp/ChangeLog: Fix a recent log entry.
Stefan Monnier [Wed, 13 Aug 2014 14:16:48 +0000 (10:16 -0400)]
Forgotten ChangeLog changes
Stefan Monnier [Wed, 13 Aug 2014 14:15:54 +0000 (10:15 -0400)]
* lisp/obsolete/mouse-sel.el (mouse-sel-mode): Use add/remove-function.
(mouse-sel--ignore): New function.
(mouse-sel-has-been-enabled, mouse-sel-original-bindings)
(mouse-sel-original-interprogram-cut-function)
(mouse-sel-original-interprogram-paste-function): Remove.
Kelvin White [Wed, 13 Aug 2014 13:14:43 +0000 (09:14 -0400)]
* erc.el Disable display commands in current buffer, fix case where buffer name is already set
Eric S. Raymond [Wed, 13 Aug 2014 08:42:33 +0000 (04:42 -0400)]
Add smerge support to the git back end.
Eric S. Raymond [Wed, 13 Aug 2014 08:05:45 +0000 (04:05 -0400)]
Integrate Rüdiger Sonderfeld's code for detecting conflicted files under git.
Leo Liu [Wed, 13 Aug 2014 03:21:43 +0000 (11:21 +0800)]
* speedbar.el (speedbar-generic-list-tag-p): Allow special
elements from imenu.
Stefan Monnier [Tue, 12 Aug 2014 16:16:00 +0000 (12:16 -0400)]
* lisp/mpc.el (mpc-reorder): Don't bother splitting the "active" elements
to the first part if they're the same as the selection.
Lars Magne Ingebrigtsen [Tue, 12 Aug 2014 14:16:45 +0000 (16:16 +0200)]
Allow resetting image transform options
* image-mode.el (image-transform-reset): New command and menu item.
(image-mode-map): Rearrange the menu items to put presumably more
obscure items at the end.
Martin Rudalics [Tue, 12 Aug 2014 09:47:27 +0000 (11:47 +0200)]
In set_menu_bar_lines call change_frame_size instead of set_menu_bar_lines_1.
* frame.c (set_menu_bar_lines_1): Remove.
(set_menu_bar_lines): Call change_frame_size instead of
set_menu_bar_lines_1.
Juri Linkov [Tue, 12 Aug 2014 06:51:21 +0000 (09:51 +0300)]
* lisp/vc/vc-annotate.el (vc-annotate-background-mode): Use `with-demoted-errors'
instead of `ignore-errors'.
Fixes: debbugs:18189
Stefan Monnier [Tue, 12 Aug 2014 02:56:28 +0000 (22:56 -0400)]
* lisp/erc/erc-stamp.el (erc-timestamp-intangible): Disable by default because
`intangible' is evil.
Stefan Monnier [Tue, 12 Aug 2014 02:47:36 +0000 (22:47 -0400)]
* lisp/gnus/gnus-art.el (gnus-hidden-properties): Drop the evil `intangible'.
Stefan Monnier [Tue, 12 Aug 2014 02:35:24 +0000 (22:35 -0400)]
* lisp/files.el (out-of-memory-warning-percentage): Turn it off by default.
Sam Steingold [Mon, 11 Aug 2014 20:15:59 +0000 (16:15 -0400)]
Set sgml-validate-command based on validator existence
* lisp/textmodes/sgml-mode.el (sgml-validate-command): Set depending on
the presence of known validators (tidy, (o)nsgmls).
Ulf Jasper [Mon, 11 Aug 2014 18:08:13 +0000 (20:08 +0200)]
Newsticker: introduce `newsticker-treeview-date-format'. (Bug#17227)
2014-08-11 Ulf Jasper <ulf.jasper@web.de>
Newsticker: introduce `newsticker-treeview-date-format'. (Bug#17227)
* net/newst-treeview.el (newsticker-treeview-date-format): New.
(newsticker--treeview-list-add-item): Use `newsticker-treeview-date-format'.
Ken Brown [Mon, 11 Aug 2014 15:25:08 +0000 (11:25 -0400)]
* src/gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use ERRORCHECK mutexes. (Bug#18222)
Jan Djärv [Mon, 11 Aug 2014 13:16:31 +0000 (15:16 +0200)]
Fix default width not being 80, but 77.
* nsfns.m (Fx_create_frame): Call adjust_frame_size,
set f->official.
Glenn Morris [Mon, 11 Aug 2014 01:13:38 +0000 (18:13 -0700)]
* lisp/subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual.
Glenn Morris [Mon, 11 Aug 2014 00:59:34 +0000 (17:59 -0700)]
Merge from emacs-24; up to 2014-06-28T23:35:17Z!rgm@gnu.org
Glenn Morris [Mon, 11 Aug 2014 00:50:31 +0000 (17:50 -0700)]
ChangeLog fixes
Glenn Morris [Mon, 11 Aug 2014 00:47:10 +0000 (17:47 -0700)]
* lisp/calendar/icalendar.el: Add missing :version tags for new defcustoms.
Grégoire Jadi [Mon, 11 Aug 2014 00:43:33 +0000 (17:43 -0700)]
* leim/quail/latin-post.el: Transform " __" into " _".
Fixes: debbugs:18023
Glenn Morris [Mon, 11 Aug 2014 00:38:19 +0000 (17:38 -0700)]
Revert 2013-01-31 change that decides coding system before backing up
It causes a more serious problem than the one it solves.
This closes bug#18141, and reopens bug#13522.
* lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.
* src/fileio.c: Revert 2013-01-31 change.
(choose_write_coding_system): No longer callable from Lisp.
Move last piece back here from Fwrite_region.
(Fwrite_region, syms_of_fileio): Update for above changes.
* test/automated/data/files-bug18141.el.gz: New file.
* test/automated/files.el (files-test-bug-18141-file):
New variable and test.
Paul Eggert [Sun, 10 Aug 2014 21:06:07 +0000 (14:06 -0700)]
Simplify previous patch.
Fixes: debbugs:18232
Paul Eggert [Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)]
Don't prevent random file systems from being unmounted.
This fix relies on having the 'fchdir' function, and on having
"." be searchable (or at least readable, on platforms lacking O_SEARCH),
but that's good enough to handle the vast majority of cases and the
remaining folks can just live with the annoyance of file systems
that occasionally can't be unmounted.
* configure.ac (fchdir): New function to check for.
* lib/save-cwd.c: Copy from gnulib, except omit the part that
allocates memory, since that can cause problems in Emacs.
* lib/save-cwd.h: Copy from gnulib.
Fixes: debbugs:18232
Ulf Jasper [Sun, 10 Aug 2014 17:48:51 +0000 (19:48 +0200)]
iCalendar export: Enumerate evaluated sexp diary entries (Bug#7911).
2014-08-10 Ulf Jasper <ulf.jasper@web.de>
Enumerate evaluated sexp diary entries (Bug#7911).
* calendar/icalendar.el (icalendar-export-sexp-enumerate-all)
(icalendar-export-sexp-enumeration-days): New
(icalendar-export-region): `icalendar--convert-to-ical' now
returns a cons cell or a list of cons cells.
(icalendar--convert-to-ical): Take care of
`icalendar-export-sexp-enumerate-all'. Return (a list of) cons
cells.
(icalendar--convert-ordinary-to-ical),
(icalendar--convert-weekly-to-ical),
(icalendar--convert-yearly-to-ical),
(icalendar--convert-block-to-ical),
(icalendar--convert-block-to-ical),
(icalendar--convert-float-to-ical),
(icalendar--convert-cyclic-to-ical),
(icalendar--convert-anniversary-to-ical): Return cons cell.
(icalendar--convert-sexp-to-ical): Enumerate evaluated sexp
entries. Return (list of) cons cells.
2014-08-10 Ulf Jasper <ulf.jasper@web.de>
Enumerate evaluated sexp diary entries (Bug#7911).
* automated/icalendar-tests.el
(icalendar--convert-anniversary-to-ical),
(icalendar--convert-cyclic-to-ical),
(icalendar--convert-block-to-ical),
(icalendar--convert-yearly-to-ical),
(icalendar--convert-weekly-to-ical),
(icalendar--convert-ordinary-to-ical): Returns cons cell now.
(icalendar--convert-to-ical),
(icalendar--convert-sexp-to-ical): New tests.
Reuben Thomas [Sun, 10 Aug 2014 16:28:36 +0000 (17:28 +0100)]
Fix a couple of recent inadvertent breaks of the MSDOS port.
src/msdos.c: include required menu.h
src/term.c: set correct menu_show_hook on MSDOS.
Reuben Thomas [Sun, 10 Aug 2014 16:23:05 +0000 (17:23 +0100)]
config.bat: fix some confusing wording
Martin Rudalics [Sun, 10 Aug 2014 10:41:28 +0000 (12:41 +0200)]
Make doc-string of window-total-size more self-contained.
* window.el (window-total-size): Make doc-string more
self-contained.
Martin Rudalics [Sun, 10 Aug 2014 08:26:28 +0000 (10:26 +0200)]
Fix handling of menu bar line on TTY frames (Bug#18136) (Bug#18196).
* dispnew.c (handle_window_change_signal):
* keyboard.c (Fsuspend_emacs): Call change_frame_size with
frame's menu bar lines subtracted from height.
* frame.c (frame_inhibit_resize): Inhibit resizing of TTY
frames.
(adjust_frame_size): Count in menu bar when setting FrameRows.
(make_terminal_frame): When setting up the frame's lines and
text height don't count in the menu bar.
(Fmake_terminal_frame): Call adjust_frame_size with menu bar
lines subtracted from height.
(do_switch_frame): Set tty's FrameRows to number of total lines
of frame.
(Fframe_pixel_height, Fframe_pixel_width): If no window system
is used, return total number of lines and columns.
* menu.c (emulate_dialog_with_menu): Use FRAME_TOTAL_LINES instead
of FRAME_LINES.
* term.c (OUTPUT, tty_set_terminal_modes)
(tty_set_terminal_window, tty_set_scroll_region)
(tty_clear_to_end, tty_write_glyphs, tty_write_glyphs_with_face)
(tty_ins_del_lines, tty_menu_display, tty_menu_activate): Use
FRAME_TOTAL_LINES instead of FRAME_LINES.
(Fresume_tty): Use FRAME_TOTAL_LINES instead of FRAME_LINES.
Call change_frame_size with frame's menu bar lines subtracted
from height.
* w32console.c (w32con_clear_to_end, w32con_clear_frame)
(w32con_ins_del_lines): Use FRAME_TOTAL_LINES instead of
FRAME_LINES.
Juri Linkov [Sat, 9 Aug 2014 23:55:39 +0000 (02:55 +0300)]
* lisp/vc/vc-annotate.el (vc-annotate-background-mode): Add :set
to reevaluate `vc-annotate-color-map'.
Fixes: debbugs:18189
Reuben Thomas [Sat, 9 Aug 2014 21:50:14 +0000 (22:50 +0100)]
src/alloc.c: remove a stray brace
Alan Mackenzie [Sat, 9 Aug 2014 20:54:04 +0000 (20:54 +0000)]
progmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
top-level that can cause unacceptable slow-down in scrolling.
See email Subject: Huge {...} blocks in C/C++ again, from Dmitry Antipov
from 2013-10-14 in emacs-devel.
Eli Zaretskii [Sat, 9 Aug 2014 18:48:45 +0000 (21:48 +0300)]
Minor fixes in the last commit wrt MS-DOS build.
config.bat: Fix EOL format in lines modified by last commit.
msdos/INSTALL: Fix last change.
Reuben Thomas [Sat, 9 Aug 2014 16:59:43 +0000 (17:59 +0100)]
Add changelog entry missing from previous commit
Martin Rudalics [Sat, 9 Aug 2014 16:50:13 +0000 (18:50 +0200)]
In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).
* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).
Reuben Thomas [Sat, 9 Aug 2014 16:20:29 +0000 (17:20 +0100)]
src/process.c: fix a comment typo
Reuben Thomas [Sat, 9 Aug 2014 16:12:33 +0000 (17:12 +0100)]
Remove support for DJGPP < 2.02
This also removes some specially-licensed files and lots of accompanying
explanation.
Martin Rudalics [Sat, 9 Aug 2014 11:12:45 +0000 (13:12 +0200)]
Second attempt to fix some doc-strings in window.c.
* window.c (Fwindow_new_total, Fwindow_new_normal)
(Fwindow_new_pixel, Fset_window_new_pixel)
(Fset_window_new_total, Fset_window_new_normal): Second attempt
to fix the doc-strings of these functions. See:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html
Jan Djärv [Sat, 9 Aug 2014 09:06:25 +0000 (11:06 +0200)]
* widget.c (DEFAULT_FACE_FONT, EmacsFrameSetValues, setup_frame_gcs)
(resources, setup_frame_cursor_bits): Remove unused variables and
functions, esp. wrt. font.
* widgetprv.h (EmacsFramePart): Remove font.
Fixes: debbugs:18227
Paul Eggert [Sat, 9 Aug 2014 06:57:59 +0000 (23:57 -0700)]
Merge from gnulib.
This incorporates:
2014-08-07 getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
2014-08-05 sys_select: fix FD_ZERO problem on Solaris 10
* lib/getdtablesize.c, lib/sys_select.in.h: Update from gnulib.
Stefan Monnier [Fri, 8 Aug 2014 16:56:50 +0000 (12:56 -0400)]
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event.
Fixes: debbugs:18212
Rüdiger Sonderfeld [Fri, 8 Aug 2014 14:35:40 +0000 (16:35 +0200)]
ibuffer.el (ibuffer-mode-map): Use toggle button for
`ibuffer-auto-mode' menu entry.
(ibuffer-mode-hook): Add `ibuffer-auto-mode' customization option.
Rüdiger Sonderfeld [Fri, 8 Aug 2014 14:05:16 +0000 (16:05 +0200)]
lisp/ChangeLog: Fix last entry.
I did not realize that a bug was filed for that patch. Also "make"
instead of "made".
Eli Zaretskii [Fri, 8 Aug 2014 13:53:55 +0000 (16:53 +0300)]
lisp/info.el (info): Doc fix.