summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ; Merge from Gnulib (comment changes only)Paul Eggert2017-10-074-8/+8
|
* Improve test for unreachable dirsPaul Eggert2017-10-071-13/+26
| | | | | | | | | * src/sysdep.c (get_current_dir_name_or_unreachable): New function, with most of the old contents of emacs_get_current_dir_name. (emacs_get_current_dir_name): Use it. Use a simpler test for unreachable directory strings, and also apply it to getcwd etc. (Bug#27871)
* * src/xsmfns.c (x_session_initialize): Fix memory leak.Paul Eggert2017-10-071-1/+3
|
* Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26K. Handa2017-10-0845-526/+28736
|\
| * Make python prettify symbols into a defvar (Bug#28713)Noam Postavsky2017-10-071-2/+6
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-prettify-symbols-alist): New variable. (python--prettify-symbols-alist): Make into obsolete alias for `python-prettify-symbols-alist'.
| * Fix fullscreen crash on macOS (bug#28496)Alan Third2017-10-071-1/+5
| | | | | | | | | | * lisp/frame.el (toggle-frame-fullscreen): Wait for animation to complete on macOS.
| * Fix crash when closing fullscreen frame on macOS (bug#28661)Alan Third2017-10-071-0/+3
| | | | | | | | | | * src/nsterm.m (EmacsView::windowWillResize): Return new frame size unmodified if the frame isn't live.
| * Support gio tool in TrampMichael Albinus2017-10-071-5/+32
| | | | | | | | | | | | | | | | | | | | "gvfs-<command>" utilities have been deprecated in GVFS 1.31.1. We must use "gio <command>" tool instead. * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping): New defconst. (tramp-gvfs-handle-file-notify-add-watch): Support also "gio monitor" (tramp-gvfs-gio-tool-p): New defun. (tramp-gvfs-send-command): Use it. Call gio tool if available.
| * Fix flymake-goto-next-error when message has %-constructsJoão Távora2017-10-071-1/+2
| | | | | | | | | | * lisp/progmodes/flymake.el (flymake-goto-next-error): Fix message call. Add missing period in docstring.
| * * src/gnutls.c (syms_of_gnutls): Remove duplicated call to DEFSYM.Piotr Trojanek2017-10-071-1/+0
| | | | | | | | Copyright-paperwork-exempt: yes.
| * Move the entry about 'format' into Incompatible Lisp ChangesEli Zaretskii2017-10-071-7/+9
| | | | | | | | | | * etc/NEWS: Move the entry about 'format' refraining from allocating new strings into Incompatible Lisp Changes. (Bug#28625)
| * Fix glitches in displaying TTY menusEli Zaretskii2017-10-071-8/+14
| | | | | | | | | | | | | | | | | | | | * src/dispnew.c (update_frame_line): Accept an additional argument UPDATING_MENU_P; if non-zero, home the cursor before updating a frame's line. All callers changed. (update_frame_1): Accept an additional argument UPDATING_MENU_P, and pass it to update_frame_line. All callers changed. (update_frame_with_menu): Call update_frame_1 with last argument non-zero. (Bug#17497)
| * Create new Edebug spec for docstrings and use it in closuresGemini Lasswell2017-10-066-22/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since (:documentation FORM) can be used to create a docstring when lexical-binding is on, allow for that possibility in Edebug specs (bug#24773). * lisp/emacs-lisp/edebug.el: Define an Edebug spec for docstrings called lambda-doc and modify the Edebug specs for defun and defmacro to use it. (edebug-instrument-function): Check for generic functions first, to fix bug where edebug-step-in didn't work on methods now that cl-defgeneric has an Edebug spec. * lisp/subr.el (lambda): Modify Edebug spec to use lambda-doc. * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Add Edebug spec (bug#27747). (cl-defmethod): Use lambda-doc in Edebug spec. * lisp/emacs-lisp/cl-macs.el: Modify Edebug spec for cl-declarations-or-string to use lambda-doc, and modify Edebug spec for cl-lambda-expr to use cl-declarations-or-string. * lisp/emacs-lisp/pcase.el (pcase-lambda): Modify Edebug spec to use lambda-doc, as well as &define and def-body which are necessary for using Edebug on code wrapped by lambda. * lisp/emacs-lisp/generator.el (iter-defun, iter-lambda): Add Edebug specs.
| * Avoid byte-compilation warnings in message.elEli Zaretskii2017-10-061-0/+1
| | | | | | | | | | * lisp/gnus/message.el: Require 'subr-x' when compiling, to avoid compiler warnings.
| * Fix bug in recent styled_format changePaul Eggert2017-10-061-3/+11
| | | | | | | | | | | | | | | | | | Problem reported by Kaushal Modi in: http://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00141.html * src/editfns.c (styled_format): Fix bug where USE_SAFE_ALLOCA was not always followed by SAFE_FREE. This bug was introduced in my patch 2017-09-26T23:31:57Z!eggert@cs.ucla.edu entitled "Avoid some unnecessary copying in Fformat etc."
| * Cleanup emacs-lisp-mode's use of FlymakeJoão Távora2017-10-061-66/+54
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-flymake--checkdoc-1): Delete. (elisp-flymake-checkdoc): Incorporate old elisp-flymake--checkdoc-1. (elisp-flymake--byte-compile-done): Simplify. Don't cleanup here. (elisp-flymake-byte-compile): Remove spurious interactive spec. Simplify. Cleanup on every possible exit.
| * Fix @include directive in Flymake docJoão Távora2017-10-061-1/+1
| | | | | | | | * doc/misc/flymake.texi: Don't @include a relative path.
| * Move read-multiple-choice to its own libraryMark Oteiza2017-10-064-172/+201
| | | | | | | | | | | | | | * lisp/emacs-lisp/rmc.el: New file. * lisp/emacs-lisp/subr-x.el (read-multiple-choice): Remove. * lisp/gnus/message.el: * lisp/net/nsm.el: Change required library.
| * * src/process.c (syms_of_process): Remove duplicated call to DEFSYM.Piotr Trojanek2017-10-061-1/+0
| | | | | | | | | | | | Fixes: Bug#28721 Copyright-paperwork-exempt: yes.
| * Fix typos in Flymake documentationLele Gaifax2017-10-063-40/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/flymake.texi (Syntax check statuses) (Adding support for a new syntax check tool) (Implementation overview, Locating the buildfile): Fix typos. * lisp/progmodes/flymake-proc.el (flymake-proc--report-fn) (flymake-proc--find-possible-master-files):Fix typos. (flymake-proc--panic) (flymake-proc-legacy-flymake): Fix function reference in doc. * lisp/progmodes/flymake.el (flymake-error) (flymake-diagnostic-functions): Fix typos. (flymake-diagnostic-types-alist): Rephrase and fix typos. (flymake--backend-state): Fix typos and rephrase. (flymake--handle-report): Delete empty line. (flymake--disable-backend) (flymake--run-backend): Fix typos. (flymake-goto-next-error, flymake-goto-prev-error): Rephrase.
| * Revert last change in 'shr-descend'Eli Zaretskii2017-10-061-2/+16
| | | | | | | | | | | | | | * lisp/net/shr.el (shr-descend): Revert the part of the last change which introduced calls to shr-indirect-call into this function. Add a comment explaining the rationale for that. (Bug#28402)
| * Don't error when turning on Flymake with no known backendsJoão Távora2017-10-061-12/+8
| | | | | | | | | | | | | | Leave it to the mode line indicator to inform the user that there is still some configuration to do. * lisp/progmodes/flymake.el (flymake-mode): Simplify.
| * Delete a Flymake obsolete alias that can't possibly workJoão Távora2017-10-061-11/+0
| | | | | | | | | | | | | | | | | | The function `flymake-ler-make-ler' can't possibly work as an backward compatible interface to existing extensinos (even purely hypothetical ones, since none are known). This is because every diagnostic considered by Flymake has to passed to a report-fn function. * lisp/progmodes/flymake.el (flymake-ler-make-ler): Delete.
| * Fix bug with unmounted directory on GNU/LinuxPaul Eggert2017-10-051-1/+12
| | | | | | | | | | * src/sysdep.c (emacs_get_current_dir_name): Do not use get_current_dir_name result unless it is absolute (Bug#27871).
| * ; Update ChangeLog.3Nicolas Petton2017-10-051-1/+28145
| |
| * ; * Makefile.in: set PREFERRED_BRANCH to emacs-26Nicolas Petton2017-10-051-1/+1
| |
| * Update authors.elNicolas Petton2017-10-051-2/+5
| | | | | | | | | | * admin/authors.el (authors-renamed-files-alist) (authors-valid-file-names): Additions.
| * Fix dynamic binding wrapper in iter-lambda (bug#25965)Gemini Lasswell2017-10-052-2/+11
| | | | | | | | | | | | | | * lisp/emacs-lisp/generator.el (cps--make-dynamic-binding-wrapper): Remove extra evaluation of form. * test/lisp/emacs-lisp/generator-tests.el (cps-iter-lambda-with-dynamic-binding): New test.
| * Update Org to v9.1.2Rasmus2017-10-0511-49/+59
| | | | | | | | Please note this is a bugfix release. See etc/ORG-NEWS for details.
| * Fix irregularities with CC Mode fontification, particularly with "known types"Alan Mackenzie2017-10-052-105/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Introduce a new optional parameter, template-class. In "class <X = Y>", fontify "Y" as a type. (c-font-lock-single-decl): New variable template-class, set to non-nil when we have a construct like the above. Pass this as argument to c-font-lock-declarators. (c-font-lock-cut-off-declarators): Check more rigorously that a declaration being processed starts before the function's starting position. (c-complex-decl-matchers): Remove the redundant clause which fontified "types preceded by, e.g., "struct"". * lisp/progmodes/cc-langs.el (c-template-typename-kwds) (c-template-typename-key): New lang defconsts and defvar.
| * Fix breakage due to recent change in tabulated-list-print-entryEli Zaretskii2017-10-051-19/+13
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-printer): Update the doc string. (tabulated-list-print-entry): Revert to using only 2 arguments. Update the doc string. (tabulated-list-entry-lnum-width): New defvar. (tabulated-list-print): Compute the width of line-number display once, then store that value in tabulated-list-entry-lnum-width, for tabulated-list-printer to use. (Bug#28704)
| * * lisp/ses.el (ses-print-cell): Fix alignment of text cells. (Bug#27653)Gemini Lasswell2017-10-051-2/+1
| |
| * Set xterm click count to 1 even with no last clickAlexander Gramiak2017-10-051-2/+4
| | | | | | | | | | | | | | * lisp/xt-mouse.el (xterm-mouse-event): Move the check for the last click so that click-count is initialized properly. Handle the value of t for double-click-time. (Bug#28658)
| * Support indirection for all shr-tag-* callsVasilij Schneidermann2017-10-051-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | The 'shr-external-rendering-functions' variable was previously only honored in the shr-descend function, now all direct calls to the shr-tag-* functions have been replaced by a call to 'shr-indirect-call' which tries using an alternative rendering function first. * lisp/net/shr.el (shr-indirect-call): New helper function. (shr-descend, shr-tag-object, shr-tag-video): (shr-collect-extra-strings-in-table): Fix callers to call via shr-indirect-call. (Bug#28402)
| * ; * etc/NEWS: Fix the "manual-update" marker of a recent addition.Eli Zaretskii2017-10-051-1/+1
| |
| * Speed up list-packages when 'visual' line numbers are displayedEli Zaretskii2017-10-051-13/+20
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-printer): Update the doc string. (tabulated-list-print-entry): Accept an additional optional argument INDENT. Update the doc string. (tabulated-list-print): Compute the width of line-number display once, then call tabulated-list-printer with that value as 3rd argument. (Bug#28704)
* | New option for handling ZWNJ in Arabic text renderingK. Handa2017-10-083-3/+82
|/ | | | | | | | | | | Provide a new option 'arabic-shaper-ZWNJ-handling' that controls how to display ZWNJ in Arabic text rendering (Bug#28339). * lisp/language/misc-lang.el: Register arabic-shape-gstring in composition-function-table. (arabic-shaper-ZWNJ-handling): New variable. (arabic-shape-log): New variable. (arabic-shape-gstring): New function. * lisp/composite.el (lgstring-remove-glyph): New function.
* Misc. minor adjustments to FlymakeJoão Távora2017-10-052-61/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a half-decent minor-mode menu; - Fix "waiting for backends" mode line message; - Adjust the flymake-diag-region API; - Autoload the flymake-log macro; - Auto-disable the legacy backend in more situations; - Fix a couple of warnings in legacy backend. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Use new flymake-diag-region. * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake): Do error when no buffer-file-name or not writable. (flymake-proc-legacy-flymake) (flymake-proc-simple-cleanup): Don't reference flymake-last-change-time * lisp/progmodes/flymake.el (flymake-diag-region): Autoload. Take buffer as first argument. * lisp/progmodes/flymake.el (flymake-switch-to-log-buffer): New command. (flymake-menu): Add a simple menu. (flymake--mode-line-format): Use menu. Fix message. Switch to log buffer when clicking exceptional warnings.
* Fix search for ~/.Xdefaults-HOSTNAMEJohan Bockgård2017-10-041-2/+5
| | | | | * src/xrdb.c (get_environ_db): Fix typo when handling ~/.Xdefaults-HOSTNAME (Bug#28708).
* Speed up (format "%s" STRING) and the likePaul Eggert2017-10-047-27/+30
| | | | | | | | | | | | | | | | | | | | | | Although the Lisp manual said that ‘format’ returns a newly-allocated string, this was not true for a few cases like (format "%s" ""), and fixing the documentation to allow reuse of arguments lets us improve performance in common cases like (format "foo") and (format "%s" "foo") (Bug#28625). * doc/lispref/strings.texi (Formatting Strings): * etc/NEWS: Say that the result of ‘format’ might not be newly allocated. * src/callint.c (Fcall_interactively): * src/dbusbind.c (XD_OBJECT_TO_STRING): * src/editfns.c (Fmessage, Fmessage_box): * src/xdisp.c (vadd_to_log, Ftrace_to_stderr): Just use Fformat or Fformat_message, as that’s simpler and no longer makes unnecessary copies. * src/editfns.c (styled_format): Remove last argument, as it is no longer needed: all callers now want it to behave as if it were true. All remaining callers changed. Make this function static again. Simplify the function now that we no longer need to worry about whether the optimization is allowed.
* Fontify untyped function declarations in C Mode correctly.Alan Mackenzie2017-10-043-12/+45
| | | | | | | | | | | | | | | | | | | | Also correct two bugs where deleting WS at a BOL could leave an untyped function declaration unfontified. * lisp/progmodes/cc-engine.el (c-find-decl-spots): Don't set the flag "top-level" when we're in a macro. (c-forward-decl-or-cast-1): Recognize top-level "foo(bar)" or "foo()" in C Mode as a implicitly typed function declaration. (c-just-after-func-arglist-p): Don't get confused by "defined (foo)" inside a macro. It's not a function plus arglist. * lisp/progmodes/cc-langs.el (c-cpp-expr-functions-key): New defconst and defvar. * lisp/progmodes/cc-mode.el (c-fl-decl-end): After c-forward-declarator, move over any following parenthesis expression (i.e. parameter list). (c-change-expand-fl-region): When c-new-END is at a BOL, include that line in the returned region, to cope with deletions at column 0.
* * lisp/net/tramp.el (tramp-tramp-file-p): Use `string-match-p'.Michael Albinus2017-10-041-8/+8
| | | | Reported by Clément Pit-Claudel <cpitclaudel@gmail.com>.
* Avoid crashes on C-g when several threads wait for inputEli Zaretskii2017-10-044-31/+45
| | | | | | | | | | | | | | | | | * src/thread.h (m_getcjmp): New member of 'struct thread_state'. (getcjmp): Define to current thread's 'm_getcjmp'. * src/thread.c (maybe_reacquire_global_lock): Switch to main thread, since this is called from a SIGINT handler, which always runs in the context of the main thread. * src/lisp.h (sys_jmp_buf, sys_setjmp, sys_longjmp): Move the definitions before thread.h is included, as thread.h now uses sys_jmp_buf. * src/keyboard.c (getcjmp): Remove declaration. (read_char): Don't call maybe_reacquire_global_lock here. (handle_interrupt): Call maybe_reacquire_global_lock here, if invoked from the SIGINT handler, to make sure quit_throw_to_read_char runs with main thread's Lisp bindings and uses the main thread's jmp_buf buffer. (Bug#28630)
* ; Spelling fixesPaul Eggert2017-10-031-5/+5
|
* Warn if --without-pop is now the defaultPaul Eggert2017-10-031-9/+10
| | | | | * configure.ac (with_pop): Set to no-by-default if defaulting to "no". Warn about the change if defaulting to "no". Update URLs.
* --with-pop is now the default only on MS-WindowsPaul Eggert2017-10-033-10/+20
| | | | | | | Problem reported by N. Jackson (Bug#28597). This improves an earlier suggestion by Robert Pluim (Bug#28597#47). * INSTALL, configure.ac, etc/NEWS: Make --with-pop the default only on native MS-Windows.
* Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into emacs-26Michael Albinus2017-10-0311-1835/+2752
|\
| * Merge branch 'scratch/flymake-refactor-clean-for-emacs-26' into emacs-26João Távora2017-10-0311-1835/+2752
| |\
| | * Start rewriting Flymake manualJoão Távora2017-10-031-301/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing the parts pertaining to the new customization API. * doc/misc/flymake.texi (Overview of Flymake): Rewrite a bit. (Installing Flymake): Delete most of this. (Running the syntax check): Mention flymake-start. (Navigating to error lines): Rewrite. (Viewing error messages): Commente out. (Syntax check statuses, Troubleshooting): Rewrite a bit. (Customizable variables): New section under "Using Flymake". Don't mention any proc variables here. (Configuring Flymake): Delete (Proc backend): New chapter (Proc customization variables): New chapter. * doc/misc/flymake.texi (Overview of Flymake): Rewrite a bit. (Installing Flymake): Mostly scratch. Flymake comes with Emacs. (Running the syntax check): Simplify. (Viewing error messages): Dekete, (Syntax check statuses): Rewrite. (Troubleshooting): Simplify. (Customizable variables): Rewrite. (Extending Flymake): New chapter, empty for now. (The legacy Proc backend): New chapter. (Proc customizable variables) (Adding support for a new syntax check tool) (Implementation overview) (Making a temporary copy) (Locating a master file) (Getting the include directories) (Locating the buildfile) (Starting the syntax check process) (Parsing the output) (Interaction with other modes) (Example---Configuring a tool called via make) (Example---Configuring a tool called directly): Rewrite a bit.
| | * Minimal tweak as an attempt to future-proof Flymake APIJoão Távora2017-10-033-26/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Discussed with Stefan that this should allow Flymake to request more from backends in the future, while also allowing backends to report more accurately. * lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc) (elisp-flymake-byte-compile): Adjust to new API. * lisp/progmodes/flymake-proc.el () (flymake-proc-legacy-flymake): Adjust to new API. * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Review API again. (flymake--handle-report): Allow other keys. Change ACTION to REPORT-ACTION.