1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
Commit graph

117184 commits

Author SHA1 Message Date
Glenn Morris
f1fdf67b4e Add install/uninstall rules for etc/emacs.appdata.xml
* Makefile.in (appdatadir): New variable.
(install-etc, uninstall, clean): Handle etc/emacs.appdata.xml.
2014-08-27 19:02:18 -07:00
Glenn Morris
6d26235315 Merge from emacs-24; up to 2014-07-02T00:57:53Z!juri@jurta.org 2014-08-27 18:59:29 -07:00
Glenn Morris
93b31b5728 * lisp/subr.el (remq): Revert 2014-08-25 doc change (not always true).
See the interminable bug discussion if you have nothing better to do.
2014-08-27 18:55:45 -07:00
Glenn Morris
b62da77c1c * etc/emacs.appdata.xml: New file
Ref: http://people.freedesktop.org/~hughsient/appdata/

The description is adapted from the Emacs homepage.
2014-08-27 18:53:26 -07:00
Paul Eggert
cbe070d114 * sysdep.c (LC_COLLATE, LC_COLLATE_MASK): Give individual defaults.
Fixes: debbugs:18051
2014-08-27 17:50:36 -07:00
Eli Zaretskii
9bac5fd91f Fix bug #18339 with segfault when $ is typed into empty LaTeX buffer.
src/syntax.c (scan_lists): Don't examine positions before BEGV.
2014-08-27 22:40:54 +03:00
Paul Eggert
110d87a1cc 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
2014-08-27 11:56:47 -07:00
Michael Albinus
17d94f1ba4 * lisp.h (str_collate):
* sysdep.c (str_collate): Return int.
(str_collate) [__STDC_ISO_10646__]: Propagate error of wcscoll.
2014-08-27 13:22:37 +02:00
Dmitry Antipov
28e0124dd0 * 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.
2014-08-27 14:51:21 +04:00
Michael Albinus
9b6ab1afe4 * emacs-lisp/authors.el (authors-aliases): Addition. 2014-08-27 09:53:58 +02:00
Michael Albinus
dfdb730b10 * net/tramp-adb.el: Spell author name correctly. 2014-08-27 09:25:37 +02:00
Glenn Morris
bd3be308f7 shr.el: Comment. 2014-08-26 22:06:20 -07:00
João Távora
e7b37ae4df * net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
use url-expand-file-name.

Fixes: debbugs:18310
2014-08-26 22:04:47 -07:00
Dmitry Antipov
7fb78a081b 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.
2014-08-27 08:15:20 +04:00
Katsumi Yamaoka
fbc11fe8d8 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 2014-08-26 23:56:11 +00:00
Katsumi Yamaoka
6539413d0b gnus-art.el (gnus-article-browse-html-save-cid-content, gnus-article-browse-html-parts): Make cid file names relative 2014-08-26 23:28:22 +00:00
Glenn Morris
aaae978c32 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
2014-08-26 13:58:06 -04:00
Glenn Morris
93d56561c8 ChangeLog fixes 2014-08-26 13:55:07 -04:00
Dmitry Antipov
75c76162ab * configure.ac (HAVE_LINUX_SYSINFO): Avoid false positive on Solaris. 2014-08-26 18:42:06 +04:00
Dmitry Antipov
ea2791432d * sysdep.c (init_sigsegv) [HAVE_STACK_OVERFLOW_HANDLING]: Add comment. 2014-08-26 12:01:48 +04:00
Dmitry Antipov
ebd31792b2 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.
2014-08-26 10:25:59 +04:00
Ken Brown
940ac42ae3 Fix accidental deletion of a line in last change. 2014-08-25 16:55:37 -04:00
Ken Brown
79404e16fb * configure.ac (G_SLICE_ALWAYS_MALLOC): Remove obsolete macro.
* src/emacs.c (main): Remove use of obsolete macro
G_SLICE_ALWAYS_MALLOC.
2014-08-25 16:49:52 -04:00
Eli Zaretskii
825ca47f5a Fix unoptimized build on MSDOS.
msdos/sedlibmk.inp (gl_LIBOBJS): Add execinfo.o.  Reported by Juan
 Manuel Guerrero <juan.guerrero@gmx.de>.

 src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Don't define.
2014-08-25 20:44:27 +03:00
Glenn Morris
f330aa150e * vc-git.el: Comments. 2014-08-25 12:48:08 -04:00
Glenn Morris
20a4f6a967 * emulation/cua-rect.el (cua--highlight-rectangle): Avoid error at point-min.
Fixes: debbugs:18309
2014-08-25 12:40:53 -04:00
Lars Magne Ingebrigtsen
42ee94e0f4 Fix typo in last shr.el check-in 2014-08-25 18:04:39 +02:00
Lars Magne Ingebrigtsen
0a4aa6bd20 shr.el: Encode copied URLs
* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
URLs containing spaces and the like.
2014-08-25 17:59:38 +02:00
Eli Zaretskii
015ea0ffdb 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.
2014-08-25 18:55:46 +03:00
Dmitry Antipov
8661ebaa6c 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.
2014-08-25 11:00:42 +04:00
Paul Eggert
90c5c87753 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
2014-08-24 22:44:57 -07:00
Christoph Scholtes
d74553559b Fix docstring of `remq'
* lisp/subr.el (remq): Fix docstring.

Fixes: debbugs:18253
2014-08-24 21:16:36 -06:00
Christoph Scholtes
f71da8959a * lisp/replace.el (query-replace): Fix typo in docstring.
Fixes: debbugs:18320
2014-08-24 20:36:45 -06:00
Christoph Scholtes
d2a633e4e9 Remove reference to obsolete configure scripts
* INSTALL.REPO: Remove reference to obsolete configure scripts
on non-Posix platforms.

Fixes: debbugs:18323
2014-08-24 20:29:58 -06:00
Alan Mackenzie
4031fb7bac 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.
2014-08-24 20:50:11 +00:00
Alan Mackenzie
66bb9533fc 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.
2014-08-24 20:38:11 +00:00
Michael Albinus
849abe1dc1 Mention the new functions string-collate-lessp' and string-collate-equalp'. 2014-08-24 17:47:06 +02:00
Michael Albinus
07b47905d3 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)
2014-08-24 17:40:07 +02:00
Alan Mackenzie
bf5b1e26c1 progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite loop, bug
#18306.  The bug was introduced on 2014-08-02.
2014-08-23 11:02:20 +00:00
Eli Zaretskii
3410f2a31e configure.ac: Comment fix. 2014-08-23 12:14:13 +03:00
Karol Ostrovsky
0d880e737b 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.
2014-08-23 11:48:30 +03:00
Eli Zaretskii
934cde5459 Fix compilation warnings about snprintf in the MSDOS build.
msdos/sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
 avoid compilation warning from newer GCC versions that have
 snprintf as a built-in.  Reported by Juan Manuel Guerrero
 <juan.guerrero@gmx.de>.
2014-08-23 11:22:46 +03:00
Ken Brown
09f3715543 Backport: * configure.ac (HAVE_XPM): Explain the use of CPPFLAGS in the Cygwin-w32 build. (Bug#18302) 2014-08-22 09:03:05 -04:00
Katsumi Yamaoka
30f1ca3b9a 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) 2014-08-21 23:02:23 +00:00
Ken Brown
58e6bac86f * configure.ac (HAVE_XPM): Explain the use of CPPFLAGS in the Cygwin-w32 build. (Bug#18302) 2014-08-21 17:52:26 -04:00
Eli Zaretskii
8ab2588c9d 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.
2014-08-21 18:07:13 +03:00
Martin Rudalics
b360b106e9 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).
2014-08-21 10:40:29 +02:00
Glenn Morris
8dc52a1a45 ChangeLog fix
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01038.html
2014-08-20 16:07:00 -04:00
Sam Steingold
3f05baa175 Extract python-new-pythonpath to handle PYTHONPATH in user code
* lisp/progmodes/python.el (python-new-pythonpath): Extract from
`python-shell-calculate-process-environment'.
2014-08-20 11:33:10 -04:00
Eli Zaretskii
a558cd1cc4 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.
2014-08-20 17:41:15 +03:00