summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Don’t create fd >= FD_SETSIZEPaul Eggert2016-09-011-0/+14
| | | | | | | This avoids a potential crash if too many subprocesses (Bug#24325). * src/process.c [HAVE_SETRLIMIT]: Include <sys/resource.h>. (init_process_emacs): If ulimit -n is greater than FD_SETSIZE, set it to FD_SETSIZE.
* Fix c-declaration-limits to return correct limits in all cases.Alan Mackenzie2016-09-011-112/+140
| | | | | | | | | | | | | | | This function is the guts of c-indent-defun and c-mark-function. In particular, when c-defun-tactic is nil, return a correct value rather than always nil, and when it's 'go-outward, go through an intricate algorithm to determine the requisite narrowing before the "top-level" defuns go to work. * lisp/progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block): Enhance to take additional optional parameter LEVEL, saying how many enclosing levels of decl-block to narrow to. (c-declaration-limits): Introduce algorithm to determine narrowing. Use c-where-wrt-to-brace-block to determine whether to go back to BOD to determine lower bound.
* * nt/inc/ms-w32.h (execve) [MINGW_W64]: Make commentary more accurate.Eli Zaretskii2016-09-011-5/+6
|
* Avoid compiler warnings with MinGW64 GCC 6Eli Zaretskii2016-09-011-0/+9
| | | | | | * nt/inc/ms-w32.h (execve) [MINGW_W64]: Make the prototype match the GCC 6 builtin, to avoid warnings. For more details, see http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00721.html.
* ; Auto-commit of loaddefs files.Glenn Morris2016-09-011-284/+222
|
* Fix over-substitution of quotes on errorPaul Eggert2016-08-311-2/+2
| | | | | | | Problem reported by Tino Calancha in: http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00000.html * src/print.c (print_error_message): Substitute quotes in errmsg only when gotten from a property.
* Improve testing of etagsEli Zaretskii2016-08-319-1070/+88
| | | | | | | | | | | | | * test/manual/etags/y-src/cccp.c: * test/manual/etags/y-src/parse.c: Correct #line directives to allow testing invalidate_nodes in etags.c. * test/manual/etags/ETAGS.good_1: * test/manual/etags/ETAGS.good_2: * test/manual/etags/ETAGS.good_3: * test/manual/etags/ETAGS.good_4: * test/manual/etags/ETAGS.good_5: * test/manual/etags/ETAGS.good_6: * test/manual/etags/CTAGS.good: Adapt to changes in test files.
* * lib-src/etags.c (invalidate_nodes): Fix another thinko.Eli Zaretskii2016-08-311-1/+1
|
* Fix etags problems found by static checkingPaul Eggert2016-08-311-24/+22
| | | | | | | * lib-src/etags.c (invalidate_nodes, put_entry): Remove now-unnecessary tests for null pointers. Simplify. (put_entries): Rewrite to avoid GCC 6.2 warning about dereferencing null pointer.
* Fix a thinko in etags.cEli Zaretskii2016-08-311-1/+1
| | | | | * lib-src/etags.c (invalidate_nodes): Don't try to dereference a null pointer.
* Avoid recursive calls in etagsEli Zaretskii2016-08-311-64/+226
| | | | | | | * lib-src/etags.c (stack_entry): New struct. (push_node, pop_node, put_entry): New functions. (free_tree, add_node, invalidate_nodes, put_entries): Re-implement in a non-recursive way, to avoid stack overflow. (Bug#5847)
* Add 451 to url-http-codesLeo Liu2016-08-311-0/+1
| | | | * lisp/url/url-http.el (url-http-codes): Add 451.
* ; Spelling and quotation fixesPaul Eggert2016-08-306-20/+20
|
* * src/editfns.c (Fformat_message): Fix doc to match current behavior.Paul Eggert2016-08-301-4/+3
|
* Minor doc quoting fixesPaul Eggert2016-08-305-7/+9
| | | | | | | | | | | | * doc/misc/htmlfontify.texi (Interactive): * lisp/htmlfontify.el (htmlfontify-buffer): Spell out character names, for clarity. The old doc string generated the *Help* text ‘^L ([FF]) or ¤ (244)’, where ‘[FF]’ stands for a form feed character; this was confusing. * lisp/electric.el (electric-quote-mode): * src/doc.c (syms_of_doc): * src/editfns.c (Fformat_message): Remove no-longer-necessary ‘\=’s in doc strings.
* Update from gnulibPaul Eggert2016-08-302-26/+29
| | | | | | | | | | | | This incorporates: 2016-08-30 intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6 2016-08-29 xalloc-oversized.h: port change to GCC 6.2.0 2016-08-29 intprops.h: port recent changes to GCC 6.2.0 2016-08-29 intprops.h: use __typeof__ with GCC 7 2016-08-29 intprops.h, xalloc-oversized.h: work with gcc 7 2016-08-24 intprops: fix paren typo on old platforms 2016-08-24 intprops: port to OpenVMS * lib/intprops.h, lib/xalloc-oversized.h: Copy from gnulib.
* Fix rules for \phi and \varphi which were reversedTassilo Horn2016-08-301-4/+14
| | | | | | * lisp/leim/quail/latin-ltx.el: Special-case phi/varphi because those are reversed in ucs-names. Also remove FIXME stating sigma/varsigma were reversed which is not true (anymore?).
* Fix prettification of \phi, \varphi, and \varsigmaTassilo Horn2016-08-301-2/+3
| | | | | | | | | * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Fix prettification of \phi, \varphi, and \varsigma. Concretely, \phi's symbol was actually varphi, \varphi was missing, and \varsigma was commented out with a FIXME that it was reversed with \sigma which it was not.
* Use normal double quotes in TeX / LaTeX commentsKarl Fogel2016-08-303-0/+5
| | | | | | | | | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex-insert-quote): When in a comment, default to inserting a normal double quote (") instead of TeX-style open (``) or close ('') quote marks. * etc/NEWS (TeX mode): Note the change. * test/lisp/electric-tests.el (autowrapping-7): Adjust accordingly. See this thread for discussion: https://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00611.html From: Karl Fogel <kfogel {_AT_} red-bean.com> To: Emacs Development <emacs-devel {_AT_} gnu.org> Subject: [PATCH] Have LaTeX mode use normal double quotes in comments. Date: Mon, 29 Aug 2016 14:44:12 -0500 Message-ID: <87twe3icmr.fsf@red-bean.com>
* Correctly analyze C++ list initialization in member init areas.Alan Mackenzie2016-08-303-148/+140
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-back-over-list-of-member-inits): Remove a superfluous call to c-backward-syntactic-ws. (c-looking-at-or-maybe-in-bracelist): Change calling convention, so that it reports encountering the Java "new" keyword. Add, as an alternative, a check that we can move back over member initializations, and handle this as finding a brace block. (c-looking-at-special-brace-list, c-guess-continued-construct): Adapt to the new calling convention of c-looking-at-or-maybe-in-bracelist. (c-guess-basic-syntax, CASE 5A.3): Replace lots of inline ad-hoc code with calls to c-backward-over-enum-header and c-looking-at-or-maybe-in-bracelist, using the extra info from the value of that function to generate a topmost-into-cont element where needed (in Java). * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Adapt to the new calling convention of c-looking-at-or-maybe-in-bracelist. * lisp/progmodes/cc-mode.el (c-fl-decl-start): Adapt to the new calling convention of c-looking-at-or-maybe-in-bracelist.
* Use `file-attribute-*' in TrampMichael Albinus2016-08-306-74/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (tramp-compat-file-attribute-type) (tramp-compat-file-attribute-link-number) (tramp-compat-file-attribute-user-id) (tramp-compat-file-attribute-group-id) (tramp-compat-file-attribute-modification-time) (tramp-compat-file-attribute-size) (tramp-compat-file-attribute-modes): New defaliases. * lisp/net/tramp.el (tramp-handle-file-modes) (tramp-handle-file-newer-than-file-p) (tramp-handle-file-regular-p, tramp-handle-file-symlink-p) (tramp-handle-set-visited-file-modtime) (tramp-handle-verify-visited-file-modtime) (tramp-get-local-gid, tramp-check-cached-permissions): * lisp/net/tramp-adb.el (tramp-adb-handle-file-directory-p) (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory) (tramp-gvfs-handle-file-directory-p) (tramp-gvfs-handle-write-region, tramp-gvfs-get-remote-uid) (tramp-gvfs-get-remote-gid): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-sh-handle-set-visited-file-modtime) (tramp-sh-handle-verify-visited-file-modtime) (tramp-sh-handle-file-newer-than-file-p) (tramp-sh-handle-file-ownership-preserved-p) (tramp-do-copy-or-rename-file) (tramp-do-copy-or-rename-file-via-buffer) (tramp-do-copy-or-rename-file-directly) (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-file-local-copy) (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-copy-file) (tramp-smb-handle-file-directory-p) (tramp-smb-handle-file-writable-p) (tramp-smb-handle-insert-directory): Use them.
* In `pop-to-buffer' handle case where `display-buffer' fails (Bug#24332)Martin Rudalics2016-08-302-24/+29
| | | | | | | | * lisp/window.el (pop-to-buffer): Don't assume that `display-buffer' has supplied a window (Bug#24332). Rename BUFFER argument to BUFFER-OR-NAME. * doc/lispref/windows.texi (Switching Buffers): Fix `pop-to-buffer' documentation.
* Clarify docstringsAlan Third2016-08-291-7/+14
| | | | * src/nsterm.m: Clarified that ns-x-modifier variables require a symbol.
* Use `process-live-p' in TrampMichael Albinus2016-08-298-48/+55
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (tramp-compat-process-live-p): New defun. * lisp/net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p) (tramp-handle-file-notify-valid-p) (tramp-action-process-alive, tramp-action-out-of-band) (tramp-wait-for-regexp): * lisp/net/tramp-adb.el (tramp-adb-parse-device-names) (tramp-adb-maybe-open-connection): * lisp/net/tramp-cache.el (tramp-get-connection-property): * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel) (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection): * tramp-sh.el (tramp-process-sentinel) (tramp-sh-handle-file-notify-add-watch) (tramp-maybe-open-connection): * lisp/net/lisp/net/lisp/net/tramp-smb.el (tramp-smb-action-with-tar) (tramp-smb-handle-copy-directory, tramp-smb-action-get-acl) (tramp-smb-handle-process-file, tramp-smb-action-set-acl) (tramp-smb-get-cifs-capabilities) (tramp-smb-get-stat-capability) (tramp-smb-maybe-open-connection, tramp-smb-wait-for-output) (tramp-smb-kill-winexe-function): Use it.
* Avoid crashes for invalid value of key modifiersEli Zaretskii2016-08-292-1/+13
| | | | | | | | | | * src/keyboard.c (parse_solitary_modifier): If the argument SYMBOL is not a symbol, don't try to recognize it. See http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00502.html for the details. * test/src/keymap-tests.el (keymap-where-is-internal-test): New test, for testing the above fix.
* Make dired-do-compress understand files with spaces in themOleh Krehel2016-08-291-6/+10
| | | | | * lisp/dired-aux.el (dired-compress-file): Add `shell-quote-argument' and `literal' flag to `replace-regexp-in-string'.
* * INSTALL.REPO: Suggest Texinfo 4.13 or later.Paul Eggert2016-08-281-1/+1
|
* Add tests for dom.elSimen Heggestøyl2016-08-281-0/+201
| | | | * test/lisp/dom-tests.el: New file with tests for dom.el.
* Memory allocator alignment fixesPaul Eggert2016-08-281-33/+48
| | | | | | | | | | | | | | | | | | | | | | | | | These changes remove some assumptions about heap allocator alignment that may not be true on unusual platforms. * src/alloc.c (POWER_OF_2): New macro. (ROUNDUP): Use it. (BLOCK_ALIGN): Verify that it is a power of 2. (aligned_alloc): Check that alignment passed to posix_memalign satisfies POSIX restrictions. (lisp_align_malloc): Check that size passed to aligned_alloc satisfies C11 restrictions. (MALLOC_IS_GC_ALIGNED): Check that GCALIGNMENT is 8, since the code has not been verified to work with other GCALIGNMENT values and the ice is thin here. On GNU/Linux, malloc can return a value that is a multiple of 8 but not 16, even though __alignof__ (max_align_t) is 16. See: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01902.html (lmalloc) [USE_ALIGNED_ALLOC]: Use aligned_alloc only if size is a multiple of alignment, since C11 says the behavior is undefined otherwise. (lmalloc, lrealloc): Don't use INT_ADD_WRAPV on size_t, as in general this macro is restricted to signed types. Remove assertion that the result is a multiple of GCALIGNMENT, as that need not be true.
* Pacify --enable-gcc-warnings for lib-src/pop.cPaul Eggert2016-08-281-14/+17
| | | | | | | | * lib-src/pop.c: Include c-ctype.h. (socket_connection): Pacify --enable-gcc-warnings by rewriting to avoid 'if (v = E) ...'. Use c_tolower, instead of a combination of the (undeclared) isupper and tolower. Fix pointer constness problem.
* Handle the C++ "identifiers" "final" and "override" correctly.Alan Mackenzie2016-08-272-1/+24
| | | | | | | | | | | | | | This fixes bug #24319, allowing destructors affixed with these identifiers to be correctly fontified. * lisp/progmodes/cc-engine.el (c-forward-type, c-forward-decl-or-cast-1): After reaching the "end" of a type expression, skip over any occurrences of c-type-decl-suffix-ws-ids-key. * lisp/progmodes/cc-langs.el (c-type-modifier-kwds): Remove "override" and "final" from the C++ value. (c-type-decl-suffix-ws-ids-kwds, c-type-decl-suffix-ws-ids-key): New lang constants/variables for "final" and "override".
* * lisp/textmodes/page-ext.el (pages-directory-mode): Use special-mode.Stefan Monnier2016-08-271-8/+2
|
* Handle template delimiters in C++ member init constructs.Alan Mackenzie2016-08-271-1/+7
| | | | | * lisp/progmodes/cc-engine.el (c-back-over-list-of-member-inits): Add handling for "<....>"s.
* Fix etags test suite messed up by merges from emacs-25Eli Zaretskii2016-08-264-29/+0
| | | | | | | * test/manual/etags/go-src/test.go: * test/manual/etags/go-src/test1.go: Move from test/etags/. * test/manual/etags/ruby-src/test1.ru: Replace test1.ruby. * test/etags/: Directory deleted.
* Add "supports" to list of CSS at-rulesSimen Heggestøyl2016-08-261-1/+1
| | | | * lisp/textmodes/css-mode.el (css-at-ids): Add "supports" at-rule.
* * lisp/net/tramp-sh.el (tramp-get-remote-perl): Perform a basic check.Michael Albinus2016-08-261-6/+10
| | | | (Bug#22478)
* Rename option to shell-command-dont-erase-bufferTino Calancha2016-08-263-14/+14
| | | | | | | | | | | | Suggested by Clément Pit--Claudel in: http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00487.html * lisp/simple.el (shell-command-dont-erase-buffer): (shell-command--save-pos-or-erase): (shell-command--set-point-after-cmd): (shell-command-on-region): * doc/emacs/misc.texi (shell-command-dont-erase-buffer): * etc/NEWS (Changes in Emacs 25.2): Rename from shell-command-not-erase-buffer.
* Fix an infinite loop in C++ Mode when we have "{ .... [ .... }"Alan Mackenzie2016-08-251-3/+9
| | | | | | | | * lisp/progmodes/cc-fonts.el (c-font-lock-c++-lambda-captures): In the inner `while' form's condition, check for "\\s)" rather than merely "\\]", so that the loop won't hang at a "terminating" paren of a different type (due to the c-syntactic-re-search-forward at the end of the loop stopping at such characters).
* call-shell-region: New defunTino Calancha2016-08-255-16/+44
| | | | | | | | | | Suggested by Stefan Monnier in Bug#22679. * lisp/subr.el (call-shell-region): New defun; execute a command in an inferior shell with the buffer region as input. * lisp/simple.el (shell-command-on-region): Use it. * lisp/gnus/message.el (message-do-fcc): Idem. * doc/lispref/processes.texi: Document call-shell-region in the manual. ;* etc/NEWS: Add entry for this new function.
* In ‘clone-indirect-buffer’ fix argument mixup (Bug#24306)Martin Rudalics2016-08-251-1/+1
| | | | | * lisp/simple.el (clone-indirect-buffer): Add value for ACTION argument in `pop-to-buffer' call (Bug#24306).
* Some fixes around `delete-other-frames' and `next-frame'Martin Rudalics2016-08-253-34/+43
| | | | | | | | | | | | * src/frame.c (Fdelete_frame): Clarify doc-string. * lisp/frame.el (delete-other-frames): Delete other frames on FRAME's terminal instead of the current terminal. Delete non-minibuffer-only surrogate frames too. See http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00467.html * doc/lispref/frames.texi (Deleting Frames): Minor fixes for docs of `delete-frame' and `frame-live-p'. Add entry for `delete-other-frames'. (Finding All Frames): Fix doc of `next-frame'.
* Find message.el thumbnail togglingLars Magne Ingebrigtsen2016-08-241-1/+2
| | | | | * lisp/gnus/message.el (message-toggle-image-thumbnails): Don't infloop when toggling thumbnails.
* Fix macOS 12 deprecation noticesAlan Third2016-08-244-88/+127
| | | | | | | | | | | * src/nsterm.h: Add #defines to allow older versions of macOS to use the new constant names. * src/nsmenu.m: Replace old constant names with new. (fillWithWidgetValue): Remove calls to deprecated setMenuChangedMessagesEnabled. * src/nsterm.m: Replace old constant names with new. * src/nsfns.m: Replace old constant names with new.
* Analyze and fontify correctly a C++ `enum' with colon, but lacking a tag.Alan Mackenzie2016-08-241-1/+4
| | | | | * lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for "enum" directly preceding the colon, and handle it.
* * src/xfns.c (Fx_change_window_property): Modify previous change.Noah Friedman2016-08-231-5/+27
| | | | | | | Instead of forcing format to 8 for strings, check that the length of the string is appropriate for whatever format given. (Fx_window_property_attributes): If prop isn't found on frame's inner window, try its outer window. This mimics the behavior of Fx_window_property.
* Fix invalid image rotationsLars Ingebrigtsen2016-08-241-1/+5
| | | | * lisp/image.el (image-rotate): Limit rotation to 360 degrees.
* call-process instead of call-process-region with empty regionTino Calancha2016-08-231-3/+3
| | | | | * lisp/calc/calc-graph.el (calc-graph-show-tty): Use call-process and shell-command-switch.
* Merge from origin/emacs-25Paul Eggert2016-08-2212-116/+459
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 927afa1 ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 RC2 6bf83b5 * etc/AUTHORS: Update the AUTHORS file 73cbb81 ; ChangeLog spelling fixes 9b99772 Some assorted documentation clarifications 37d4723 Improve commentary in src/character.h 5ccd593 ; Fix typo in /etc/NEWS 96e3d16 * etc/NEWS: Mention the change in json-encode-string. 2e524034 ; * etc/NEWS: Mention incompatible change in url-http-create... 2e4e74e Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac... 66dea65 ; * doc/lispref/windows.texi (Window Parameters): Grammar twe... # Conflicts: # ChangeLog.2 # lisp/ldefs-boot.el
| * ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 RC2Nicolas Petton2016-08-212-43/+300
| |
| * * etc/AUTHORS: Update the AUTHORS fileNicolas Petton2016-08-211-24/+25
| |