1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
Commit graph

124533 commits

Author SHA1 Message Date
Paul Eggert
475b1efd4e ; Fix ChangeLog.2 commit ID. 2016-01-31 12:37:30 -08:00
Paul Eggert
dd951c009a Port new hybrid malloc to FreeBSD
Problem reported by Wolfgang Jenkner in: http://bugs.gnu.org/22086#118
* src/gmalloc.c (__malloc_initialize_hook, __after_morecore_hook)
(__morecore) [HYBRID_MALLOC]: Define in this case too.
2016-01-31 09:51:24 -08:00
Wolfgang Jenkner
0496a19a32 * configure.ac: Stop using mmap for buffers for FreeBSD. 2016-01-31 09:24:25 -08:00
Michael Albinus
0156b79ea8 Merge changes from Tramp repository
* doc/misc/Makefile.in (${buildinfodir}/tramp.info tramp.html):
No EXTRA_OPTS needed.

* doc/misc/tramp.texi: Merge changes from Emacsemacs-25
branch, especially for @trampfn{}.
(Top): Move @ifnottex down.
(History): XEmacs support has been removed.
(GVFS based methods, Remote processes): Do not use emacsgvfs flag.
(Auto-save and Backup): Use both syntax versions.
(File name Syntax): Remark on IPv6 adresses is valid for
unified syntax only.

* doc/misc/trampver.texi: Do not set emacsgvfs flag.
2016-01-31 13:50:23 +01:00
Paul Eggert
802e6df70b Spelling fixes 2016-01-30 20:18:21 -08:00
Glenn Morris
113c9a95ae * lisp/vc/add-log.el (find-change-log): Use locate-dominating-file. 2016-01-30 19:37:12 -08:00
Matthew Carter
4699c325be Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2016-01-30 22:09:28 -05:00
Matthew Carter
440a35f6b5 Quote table names for postgres listings (sql-mode)
* lisp/progmodes/sql.el (sql-postgres-completion-object): Avoid passing
  unquoted table names to the completion list.
2016-01-30 22:03:57 -05:00
Glenn Morris
bdfee01a65 Change Smerge "Mine" and "Other" for "Upper" and "Lower. (Bug#20878)
* lisp/vc/smerge-mode.el (smerge-diff-switches)
(smerge-context-menu, smerge-match-conflict, smerge-swap): Doc fixes.
(smerge-upper, smerge-upper-face, smerge-keep-upper)
(smerge-diff-base-upper): Rename from smerge-mine, smerge-mine-face,
smerge-keep-mine, smerge-diff-base-mine.  Update all uses.
(smerge-mine-face, smerge-other-face): Remove obsolete face aliases.
(smerge-lower, smerge-lower-face, smerge-lower-re, smerge-keep-lower)
(smerge-diff-base-lower): Rename from smerge-other, smerge-other-face,
smerge-other-re, smerge-keep-other, smerge-diff-base-lower.
Update all uses.
(smerge-basic-map): Add "l" and "u" bindings.
(smerge-mode-menu): Update menu bindings for renaming.
(smerge-font-lock-keywords): Update face names.
(smerge-match-names): Update names.
(smerge-diff-upper-lower): Rename from smerge-diff-mine-other.
(smerge-match-conflict, smerge-ediff): Rename local variables.
(smerge-makeup-conflict): Relabel markers.
(smerge-parsep-re): Use renamed variables.
2016-01-30 19:01:57 -08:00
Paul Eggert
72e3713dc1 Port recent my_edata change to MS-Windows
* src/lastfile.c (my_edata): Also define if WINDOWSNT.
2016-01-30 19:00:17 -08:00
Paul Eggert
692e410470 Tell Automake the new lib/Makefile.am is OK
* lib/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
2016-01-30 15:26:09 -08:00
Paul Eggert
370a260218 Make it easy to override preferred-branch test
* Makefile.in (preferred-branch-is-current):
Rename from emacs-25-branch-is-current.  All uses changed.
(PREFERRED_BRANCH): New macro.
2016-01-30 15:26:09 -08:00
Paul Eggert
ffbf163ab5 ; Try to clean up ChangeLog.2 mess created by merge. 2016-01-30 15:26:09 -08:00
Paul Eggert
2ee29634fe Shrink static heap a bit
* src/sheap.h: Include lisp.h, for Lisp_Object.
(STATIC_HEAP_SIZE): Now an enum constant, not a macro.
Make it 2 MiB * sizeof (Lisp_Object), which is a bit more
conservative than the old value.
(Bug#22086)
2016-01-30 15:26:08 -08:00
Paul Eggert
3d82a8ee4b Fix extern symbols defined and not used
* src/alloc.c: Always include <signal.h>.
(malloc_warning) [!SIGDANGER && (SYSTEM_MALLOC || HYBRID_MALLOC)]:
Do not define; unused.
* src/emacs.c, src/lisp.h (might_dump) [!DOUG_LEA_MALLOC]: Now static.
* src/gmalloc.c (gdefault_morecore): Rename from __default_morecore,
to avoid collision with glibc.  Now static.  All uses changed.
* src/lastfile.c (my_edata): Define only if
((!defined SYSTEM_MALLOC && !defined HYBRID_MALLOC && !defined
WINDOWSNT) \ || defined CYGWIN || defined DARWIN_OS).
(Bug#22086)
2016-01-30 15:26:08 -08:00
Paul Eggert
7fdc3cf046 Build lib/e-*.o only on platforms that need it
* configure.ac (hybrid malloc): Simplify configuration.
(SHEAP_OBJ): Remove; no longer needed.
(HYBRID_MALLOC): New var. Subst it.
(HYBRID_MALLOC_LIB): New Automake conditional.
* lib/Makefile.am (noinst_LIBRARIES): Add libegnu.a only if
HYBRID_MALLOC_LIB.
(libegnu_a_CPPFLAGS): Omit AM_CPPFLAGS; not needed.
(MOSTLYCLEANFILES): Add libegnu.a.
* src/Makefile.in (SHEAP_OBJ): Remove.
(HYBRID_MALLOC): New macro.
(base_obj): Use it to conditionally add sheap.o.
(LIBEGNU_ARCHIVE): New macro.
($(LIBEGNU_ARCHIVE)): New rule, replacing $(lib)/libegnu.a.
All uses of the latter replaced by the former.
* src/alloc.c (USE_ALIGNED_ALLOC): Simplify configuration.
Correct misspelling ALIGNED_ALLOC to HAVE_ALIGNED_ALLOC.
* src/gmalloc.c: Update comment.
* src/lisp.h (aligned_alloc)
[!DOUG_LEA_MALLOC && !HYBRID_MALLOC && !SYSTEM_MALLOC]:
New decl.
(Bug#22086)
2016-01-30 15:26:08 -08:00
Paul Eggert
a4817d834e Include <malloc.h> when advisable
This should help insulate us better from future glibc changes.
It is good hygiene to include .h files for APIs that Emacs uses.
Fix type clashes between Emacs and GNU <malloc.h> (Bug#22086).
* configure.ac: Check for malloc.h.
* src/alloc.c: Include <malloc.h> depending on HAVE_MALLOC_H,
not on DOUG_LEA_MALLOC.
* src/emacs.c, src/gmalloc.c (malloc_enable_thread):
Remove decl (now in lisp.h).
* src/gmalloc.c: Include stddef.h earlier, for ptrdiff_t.
[emacs]: Include lisp.h.
[HAVE_MALLOC_H]: Include <malloc.h>.
(__MALLOC_HOOK_VOLATILE): New macro, if not already defined.
(__after_morecore_hook, __malloc_initialize_hook, __morecore)
(__default_morecore):
[!HAVE_MALLOC_H]: New decls near non-inclusion of <malloc.h>.
(calloc): Make it clear that the macro should not be used.
Remove unused decl.
(malloc_info): New macro, to avoid clash with glibc <malloc.h>.
(__morecore, __default_morecore, __after_morecore_hook)
(__malloc_extra_blocks, __malloc_initialize_hook, __free_hook)
(__malloc_hook, __realloc_hook, __memalign_hook, memory_warnings):
Remove later decls.
(gmalloc_hook, gfree_hook, grealloc_hook):
Rename from __malloc_hook, __free_hook, __realloc_hook to
avoid type collision with glibc <malloc.h>.  All uses changed.
(gmalloc_hook):
(__malloc_extra_blocks) [DOUG_LEA_MALLOC||HYBRID_MALLOC||SYSTEM_MALLOC]:
Now static.
(gmalloc_hook, __malloc_extra_blocks): Define even if [!HYBRID_MALLOC].
(__malloc_initialize_hook, __after_morecore_hook):
Declare with types compatible with glibc.
(__memalign_hook, hybrid_calloc) [HYBRID_MALLOC]:
Remove.  All uses removed.
* src/lisp.h (__malloc_extra_blocks, malloc_enable_thread): New decls.
* src/ralloc.c, src/vm-limit.c:
Simplify includes and include <malloc.h> if available.
2016-01-30 15:26:08 -08:00
Paul Eggert
e4cd4a76a6 * src/alloc.c: Include "sheap.h".
(alloc_unexec_pre, alloc_unexec_post) [HYBRID_MALLOC]:
Set and clear bss_sbrk_did_unexec, on all platforms not just Cygwin.
* src/lisp.h (alloc_unexec_pre, alloc_unexec_post) [!DOUG_LEA_MALLOC]:
Declare unconditionally.
* src/unexcw.c, src/unexelf.c (bss_sbrk_did_unexec): Remove decl.
(unexec): Don’t set or clear bss_sbrk_did_unexec;
the caller now does this.
(Bug#22086)
2016-01-30 15:26:07 -08:00
Paul Eggert
e1a9f2099c Pacify --enable-gcc-warnings when HYBRID_MALLOC
* src/buffer.c (init_buffer):
* src/emacs.c (main):
* src/xsmfns.c (smc_save_yourself_CB, x_session_initialize):
Use emacs_get_current_dir_name, not get_current_dir_name.
* src/conf_post.h (aligned_alloc) [HYBRID_MALLOC && emacs]: New macro.
(HYBRID_GET_CURRENT_DIR_NAME, get_current_dir_name): Remove.
* src/emacs.c: Include "sheap.h".
(report_sheap_usage): Remove decl.
(Fdump_emacs) [HYBRID_MALLOC]: Report usage directly.
Don't assume ptrdiff_t can be printed as int.
* src/gmalloc.c [HYBRID_MALLOC]:
Include "sheap.h" rather than declaring its contents by hand.
(get_current_dir_name, gget_current_dir_name)
(hybrid_get_current_dir_name): Remove.
(emacs_abort): Remove duplicate decl.
(aligned_alloc): Undef, like malloc etc.
(ALLOCATED_BEFORE_DUMPING): Now a static function, not a macro.
Make it a bit more efficient.
(malloc_find_object_address): Remove unused decl.
(enum mcheck_status, mcheck, mprobe, mtrace, muntrace, struct mstats)
(mstats, memory_warnings): Declare only if GC_MCHECK.
* src/lisp.h (emacs_get_current_dir_name):
New decl, replacing get_current_dir_name.
* src/sheap.c: Include sheap.h first.
(STATIC_HEAP_SIZE): Remove; now in sheap.h.
(debug_sheap): Now static.
(bss_sbrk_buffer_end): Remove; no longer used.
(bss_sbrk_ptr): Now static and private.
(bss_sbrk_did_unexec): Now bool.
(BLOCKSIZE): Remove, to avoid GCC warning about its not being used.
(bss_sbrk): Don't treat request_size 0 as special, since the code
works without this being a special case.
Avoid overflow if request size exceeds INT_MAX.
(report_sheap_usage): Remove; now done in emacs.c.
* src/sheap.h: New file.
* src/sysdep.c (get_current_dir_name): Remove macro.
Include "sheap.h".
(emacs_get_current_dir_name): Rename function from
get_current_dir_name.  Handle HYBRID_MALLOC here;
this is simpler.
(Bug#22086)
2016-01-30 15:26:07 -08:00
Paul Eggert
874c59a81b Report static heap usage on non-Cygwin, too
* src/emacs.c (Fdump_emacs) [HYBRID_MALLOC]: Report sheap usage here ...
* src/unexcw.c (unexec): ... instead of here, since sheap can be used
on platforms other than Cygwin (Bug#22086).
2016-01-30 15:26:07 -08:00
Paul Eggert
384ffef643 Pacify GCC on extern decls
* src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level
to pacify recent GCC (Bug#22086).
2016-01-30 15:26:07 -08:00
Wolfgang Jenkner
d6585a910e Add musl patch to support HYBRID_MALLOC on elf systems
* src/gmalloc.c: Adjust for HYBRID_MALLOC in the non CYGWIN case.
(__default_morecore): Here, in particular.
* configure.ac: Define HYBRID_MALLOC when unexelf.o is used.
New variable SHEAP_OBJ.
* src/Makefile.in: Use it.
(Bug#22086)
2016-01-30 15:26:07 -08:00
Rich Felker
dec1390845 unexelf.c hook to support HYBRID_MALLOC on ELF
* src/unexelf.c (unexec) [HYBRID_MALLOC]:
Define bss_sbrk_did_unexec (Bug#22086).
Copyright-paperwork-exempt: yes
2016-01-30 15:26:07 -08:00
Wolfgang Jenkner
a5f8586129 Link temacs with gnulib compiled with -Demacs
This is done to support HYBRID_MALLOC, since some static variables
(e.g., last_environ in putenv.c) hold pointers to memory malloced
before dumping (Bug#22086).
* lib/Makefile.am: Add incantation to install libegnu.a.
* src/Makefile.in ($(lib)/libgnu.a): Replace with libegnu.a
(temacs$(EXEEXT)): Use it.
2016-01-30 15:26:06 -08:00
Wolfgang Jenkner
cb22fce283 Internal linkage for gmalloc etc. if HYBRID_MALLOC
This avoids clashes with symbols if the after-dump malloc is
derived from Doug Lea's implementation (Bug#22086).

* src/gmalloc.c (emacs_abort, __morecore, __default_morecore):
Move declarations up.  For HYBRID_MALLOC, turn all `extern'
declarations below to `static' ones.
(aligned_alloc): Declare for !MSDOS as well.
(heapsize, _fraghead): Move resp. copy declaration downwards.
For HYBRID_MALLOC, conditionalize out the other definitions,
since the previous `static' declarations double as tentative
definitions, anyway.
(_malloc, _free, _realloc, __free_hook, _aligned_blocks)
(__realloc_hook, __memalign_hook): Conditionalize out.
(cfree, memalign, valloc): Ditto.
2016-01-30 15:26:06 -08:00
Paul Eggert
935b4d0ce4 ; Update ChangeLog.2 commit by hand 2016-01-30 14:10:42 -08:00
Paul Eggert
2d231aad9a ; Merge from origin/emacs-25
The following commits were skipped:

7b14da4 Bump version to 25.0.90
6f607a9 ; Auto-commit of loaddefs files.
2016-01-30 13:56:23 -08:00
Paul Eggert
99fa8c3dbf - 2016-01-30 13:56:23 -08:00
Paul Eggert
3005605776 ; Merge from origin/emacs-25
The following commits were skipped:

ad879b7 Backport:fix previous change of src/ftfont.c (ftfont_shape_by_flt)
4a3db0f support rendering of wider range of combinging characters by ftfont backend
2016-01-30 11:43:27 -08:00
Paul Eggert
cb4e054e41 - 2016-01-30 11:43:26 -08:00
Paul Eggert
e6d575316a ; Merge from origin/emacs-25
The following commit was skipped:

fef1b30 Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
2016-01-30 11:41:07 -08:00
Paul Eggert
9304e6d3a2 - 2016-01-30 11:41:07 -08:00
Paul Eggert
beec9cbb17 ; Merge from origin/emacs-25
The following commit was skipped:

2aae081 ; Auto-commit of loaddefs files.
2016-01-30 11:28:37 -08:00
Paul Eggert
1a9cec16fe Merge from origin/emacs-25
3f481ad Rename xref-query-replace to xref-query-replace-in-results
62f4ed4 Update cl-defgeneric and cl-defmethod docstrings
2111e0e Comment out next-error-function integration in xref
4e11ad3 Correct a use of "which" in intro.texi
a1865bc Distinguish the two meanings of Java's keyword "default".  Fixes bug #22358.
76045f7 Don't operate on menu bar of nonexistent frame
c32f3bc Unbreak the GNUstep build.
2016-01-30 11:28:37 -08:00
Paul Eggert
3b71a72a77 ; Merge from origin/emacs-25
The following commit was skipped:

371154b ; Auto-commit of loaddefs files.
2016-01-30 11:28:37 -08:00
Paul Eggert
2b41d6a979 - 2016-01-30 11:28:37 -08:00
Paul Eggert
fe9c8b687c ; Merge from origin/emacs-25
The following commit was skipped:

7bf54d0 Backport kqueue integration from master
2016-01-30 11:27:35 -08:00
Paul Eggert
82b089783e - 2016-01-30 11:27:34 -08:00
Nicolas Petton
7b14da444e Bump version to 25.0.90
* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.90.
2016-01-30 16:00:54 +01:00
Nicolas Petton
875577bcc8 * etc/AUTHORS: Update the AUTHORS file 2016-01-30 16:00:54 +01:00
Nicolas Petton
6f607a9d9e ; Auto-commit of loaddefs files.
* lisp/ldefs-boot.el: Update.
2016-01-30 16:00:54 +01:00
Nicolas Petton
e6b7b6d89f ; ChangeLog fixes
* ChangeLog.2: Auto-update of the ChangeLog file, as well as entry
  fixes.
2016-01-30 16:00:54 +01:00
Nicolas Petton
eea0a2359f authors.el updates
* admin/authors.el (authors-renamed-files-alist): Additions.
2016-01-30 15:20:11 +01:00
Nicolas Petton
a4ab2a563a Make it possible to run make change-history on emacs-25
* Makefile.in: Check if the current branch is emacs-25 instead of
  master.
2016-01-30 15:20:11 +01:00
lu4nx
40a85fba44 Support Go language in 'etags'
* lib-src/etags.c <Ruby_help>: Fix documentation of Ruby tags.
<Go_help>: New help.
<Go_suffixes>: New variable.
(Go_functions): New function.
<lang_names>: Add entry for Go.  (Bug#22370)

* doc/emacs/maintaining.texi (Tag Syntax): Document Go support.
* doc/man/etags.1: Mention Go support.

* etc/NEWS: Mention Go support.

* test/etags/go-src/test.go:
* test/etags/go-src/test1.go: New test files.
* test/etags/Makefile (GOSRC): New variable.
(SRCS): Add $(GOSRC).
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to addition of Go tests.
2016-01-30 14:56:43 +02:00
Eli Zaretskii
25b79d7bc7 Improve Ruby support in 'etags'
* lib-src/etags.c (Ruby_functions): Tag constants.  Don't tag
singleton classes.  Remove class qualifiers from tags generated
for method and constant names.  (Bug#22241)

* doc/emacs/maintaining.texi (Tag Syntax): Mention that constants
are tagged by etags in Ruby.

* etc/NEWS: Mention that constants are tagged by etags in Ruby.

* test/etags/ruby-src/test1.ruby: Add more tests.
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to the changes in etags and in Ruby
tests.
2016-01-30 14:16:36 +02:00
Eli Zaretskii
ccc3b3cd68 Adjust etags test results to changes in copyright years
* test/etags/CTAGS.good:
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6: Adjust to shift in characters and
in line numbers.
2016-01-30 12:18:43 +02:00
Andreas Schwab
d27c8078ef Re-enable checks in member, memql, delete to complain about non-lists
* fns.c (Fmember, Fmemql, Fdelete): Revert 2007-10-16 change.
2016-01-30 10:39:59 +01:00
Andreas Schwab
df5ae7ddab Revert "Re-enable checks in member, memql, delete to complain about non-lists"
This reverts commit f524e8b7f1.
2016-01-30 10:39:20 +01:00
Dmitry Gutov
a089d6a211 Don't fiddle with DEFAULT
* lisp/progmodes/project.el (project--completing-read-strict):
Don't change DEFAULT, whether is has any matches in
COLLECTION, or not.
2016-01-30 11:58:17 +03:00