summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixesPaul Eggert2017-07-0626-54/+55
| | | | | | | * lisp/org/org-table.el (org-table-sort-lines): Fix misspelling in prompt. * lisp/org/ox-ascii.el (org-ascii--describe-datum): Fix misspelling in call to org-element-lineage.
* Don't put whitespace between open paren and comment in Lisp modes (Bug#19740)Noam Postavsky2017-07-051-3/+10
| | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-comment-indent): If current line's code ends in open paren, set comment indentation exactly to column following it. (lisp-mode-variables): Set `comment-indent-function' to `lisp-comment-indent'.
* Allow comment-indent-functions to specify exact indentation (Bug#385)Noam Postavsky2017-07-053-20/+28
| | | | | | | | | | | * lisp/newcomment.el (comment-choose-indent): Interpret a cons of two integers as indicating a range of acceptable indentation. (comment-indent): Don't apply `comment-inline-offset', `comment-choose-indent' already does that. (comment-indent-function): * doc/emacs/programs.texi (Options for Comments): Document new acceptable return values. * etc/NEWS: Announce it.
* Check for integer overflow in xbm imagesPaul Eggert2017-07-051-7/+16
| | | | | | * src/image.c (XBM_TK_OVERFLOW): New constant. (xbm_scan): Check for integer overflow instead of relying on undefined behavior. Check that octal digits are actually octal.
* Convert hex digits more systematicallyPaul Eggert2017-07-057-39/+52
| | | | | | | | | | | | | | | | | This makes the code a bit smaller and presumably faster, as it substitutes a single lookup for conditional jumps. * src/character.c (hexdigit): New constant. (syms_of_character) [HEXDIGIT_IS_CONST]: Initialize it. * src/character.h (HEXDIGIT_CONST, HEXDIGIT_IS_CONST): New macros. (hexdigit): New decl. (char_hexdigit): New inline function. * src/charset.c: Do not include c-ctype.h. * src/charset.c (read_hex): * src/editfns.c (styled_format): * src/image.c (xbm_scan): * src/lread.c (read_escape): * src/regex.c (ISXDIGIT) [emacs]: Use char_hexdigit insted of doing it by hand.
* Don’t use -Woverride-initPaul Eggert2017-07-052-13/+4
| | | | | | | | | I have some further changes in mind that would also need to disable the -Woverride-init warnings. In practice these warnings seem to be more trouble than they’re worth, so disable them in the cc command line. * configure.ac: Disable -Woverride-init here ... * src/bytecode.c: ... rather than here.
* * lisp/progmodes/python.el (auto-mode-alist): Add .pyi. (Bug#27847)Glenn Morris2017-07-051-1/+1
|
* ; Standardize some copyright and license noticesGlenn Morris2017-07-056-38/+34
|
* * lisp/org/ox-html.el (org-html-infojs-template): Update copyright.Glenn Morris2017-07-051-2/+2
|
* Small fix for bug-reference.elGlenn Morris2017-07-051-1/+3
| | | | | * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Autoload safety property. (Bug#27481)
* Suppress timers in TrampMichael Albinus2017-07-052-22/+27
| | | | | | | | | * lisp/net/tramp.el (tramp-file-name-handler): Don't trigger timers. * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Trigger timers. (tramp-test37-recursive-load, tramp-test38-remote-load-path): Set `default-directory' to a trustworthy value.
* Add realgud face definitionsrocky2017-07-051-0/+12
|
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsrocky2017-07-0412-81/+66
|\
| * * lisp/progmodes/cc-awk.el: Mark unused argsStefan Monnier2017-07-041-2/+2
| |
| * * lisp/progmodes/cc-bytecomp.el: Mark unused argsStefan Monnier2017-07-041-1/+2
| |
| * * lisp/progmodes/cc-defs.el (lookup-syntax-properties): Move ...Stefan Monnier2017-07-041-2/+2
| | | | | | | | ... before first use
| * * lisp/progmodes/cc-vars.el: Mark unused argsStefan Monnier2017-07-041-6/+6
| |
| * * lisp/progmodes/cc-langs.el: Mark unused argsStefan Monnier2017-07-041-11/+4
| | | | | | | | | | (c-primary-expr-regexp): Remove unused vars ambiguous-prefix-ops and unambiguous-prefix-ops.
| * * lisp/progmodes/cc-engine.el: Mark unused argsStefan Monnier2017-07-041-31/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (c-beginning-of-statement-1, c-guess-basic-syntax): Remove unused var c-in-literal-cache. (c-debug-sws-msg): Silence byte-compiler, even if we don't use the arg. (c-append-to-state-cache): Remove unused var `bra+1s'. (c-remove-stale-state-cache): Remove unused var `pps-point-state'. (c-invalidate-state-cache-1): Remove unused var `pa'. (c-forward-decl-or-cast-1): Change comments so they don't look like outline headers. (c-restricted-<>-arglists, c-parse-and-markup-<>-arglists): Declare before first use. (c-forward-decl-or-cast-1): Remove unused var `backup-kwd-sym'. (c-backward-over-enum-header): Remove unused var `up-sexp-pos'.
| * * lisp/progmodes/cc-cmds.el: Remove unused varsStefan Monnier2017-07-041-2/+2
| | | | | | | | | | (c-syntactic-context): Declare as dynbound. (c-beginning-of-defun, c-end-of-defun): Remove unused var `start'.
| * * lisp/progmodes/cc-guess.el: Remove unused varStefan Monnier2017-07-041-2/+1
| | | | | | | | | | (c-guess-view-reorder-offsets-alist-in-style): Remove redundantly bound and computed variable `guessed-syntactic-symbols'.
| * * lisp/progmodes/cc-align.el: Mark unused argumentsStefan Monnier2017-07-041-15/+15
| |
| * * lisp/progmodes/cc-mode.el: Mark unused argumentsStefan Monnier2017-07-041-7/+7
| | | | | | | | | | (c-parse-quotes-before-change, c-parse-quotes-after-change): Remove unused vars.
| * Mention `ffap-url-unwrap-local' in find-file-at-point's docstring (Bug#27564)Noam Postavsky2017-07-041-1/+2
| | | | | | | | | | * lisp/ffap.el (find-file-at-point): Mention `ffap-url-unwrap-local' and `ffap-url-unwrap-remote'.
| * Fix infloop in uncomment-region-default (Bug#27112)Noam Postavsky2017-07-041-1/+1
| | | | | | | | | | | | | | | | When `comment-continue' has only blanks, `comment-padright' produces a regexp that matches the empty string, so `uncomment-region-default' will loop infinitely. * lisp/newcomment.el (comment-padright): Only return a regexp if STR has nonblank characters.
* | Add realgud faces to tdsh-dark-themerocky2017-07-041-0/+10
|/
* ; Remove unused text properties in testPhilipp Stephani2017-07-031-2/+1
| | | | | * test/lisp/electric-tests.el (electric-quote-markdown-in-code): Remove now-unused text properties.
* Use hook instead of face list to inhibit electric quotingPhilipp Stephani2017-07-033-17/+30
| | | | | | | | | | | | | | | This is more flexible and doesn't couple electric quoting to font locking. Give that 'electric-quote-code-faces' was just introduced, remove it without formal deprecation. * lisp/electric.el (electric-quote-inhibit-functions): New abnormal hook variable. (electric-quote-post-self-insert-function): Run the hook. Remove use of old 'electric-quote-code-faces' variable. * test/lisp/electric-tests.el (electric-quote-markdown-in-text) (electric-quote-markdown-in-code): Adapt unit tests.
* Offer non-aligned indentation in lists in js-mode (Bug#27503)Ingo Lohmar2017-07-033-2/+35
| | | | | | | | * lisp/progmodes/js.el (js--proper-indentation): New customization option 'js-indent-align-list-continuation'. Affects argument lists as well as arrays and object properties. * test/manual/indent/js-indent-align-list-continuation-nil.js: Test the change.
* (Re-)activate remote tests of filenotify-tests.elMichael Albinus2017-07-031-2/+9
| | | | | | | | | * test/lisp/filenotify-tests.el (file-notify-test-remote-temporary-file-directory): Declare default host for mock method. Offer home directory for mock method if it doesn't exist. (file-notify-test09-watched-file-in-watched-dir-remote): Remove, it doesn't work reliably.
* Reset ansi escape context before printing eshell prompt (Bug#27407)Noam Postavsky2017-07-031-0/+2
| | | | | * lisp/eshell/em-prompt.el (eshell-emit-prompt): Reset `ansi-color-context-region'.
* Let ansi-color overlay hooks work in eshell (Bug#27407)Noam Postavsky2017-07-032-1/+4
| | | | | | | * lisp/ansi-color.el (ansi-color-make-extent): Add `ansi-color-freeze-overlay' to `insert-behind-hooks' as well. * lisp/eshell/esh-mode.el (eshell-output-filter): Let-bind `inhibit-modification-hooks' to nil while inserting the string.
* Fix and simplify ansi escape detection (Bug#21381)Noam Postavsky2017-07-031-67/+48
| | | | | | | | | | | * lisp/ansi-color.el (ansi-color-regexp, ansi-color-drop-regexp): Remove. (ansi-color-control-seq-regexp): New constant, matches all escape sequences. (ansi-color-filter-apply, ansi-color-apply) (ansi-color-filter-region, ansi-color-apply-on-region): Use it instead of matching color sequences separately from ignored sequences. Differentiate color sequences simply by checking the last character.
* Add absolute optional parameter to line-number-at-pos (Bug#26417)Damien Cassou2017-07-034-14/+82
| | | | | | * lisp/simple.el (line-number-at-pos): Add a second optional argument 'absolute'. * test/list/simple-tests.el: Add tests for 'line-number-at-pos'.
* Add realgud facesR. Bernstein2017-07-031-1/+12
|
* Fix tramp-tests.el for hydraMichael Albinus2017-07-032-123/+112
| | | | | | | | * test/Makefile.in: Remove instrumentation for tramp-tests. * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests): Remove instrumentation. Wrap with a timeout. Give hydra another timer value. Set `default-directory' in timer.
* ; Instrument tramp-tests.elMichael Albinus2017-07-031-2/+2
|
* Merge branch 'master' into scratch/org-mode-mergeBastien2017-07-032-1/+45
|\
| * dired-do-shell-command: Fix check for wildcardsTino Calancha2017-07-032-1/+45
| | | | | | | | | | | | * lisp/dired-aux.el (dired-do-shell-command): Replace just '?', '*' and '`?' i.e., keep the whitespaces. * test/lisp/dired-aux-tests.el (dired-test-bug27496): Add test.
* | Merge branch 'master' into scratch/org-mode-mergeBastien2017-07-03113-2040/+4945
|\ \ | |/
| * Split shr-copy-url dwim behavior into separate functions (Bug#26826)Noam Postavsky2017-07-022-35/+58
| | | | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-url-at-point, shr-probe-url) (shr-probe-and-copy-url, shr-maybe-probe-and-copy-url): New functions, split out from `shr-copy-url'. (shr-copy-url): Only copy the url, don't fetch it. (shr-map): Bind 'w' and 'u' to `shr-maybe-probe-and-copy-url', which has the same behavior as the old `shr-copy-url'. * etc/NEWS: Announce changes.
| * Make eww-search-words prompt for query if nothing selectedAlex Branham2017-07-021-4/+12
| | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-search-words): Make eww-search-words prompt the user for a search query if the region is inactive or if the region is just whitespace. Copyright-paperwork-exempt: yes
| * * lisp/emacs-lisp/cl-print.el (cl-print-compiled-button): t by default.Noam Postavsky2017-07-023-8/+2
| | | | | | | | | | | | * lisp/emacs-lisp/debug.el (debugger-insert-backtrace): * lisp/help-fns.el (describe-variable): No need to let-bind `cl-print-compiled-button' to t anymore.
| * Electric quotes: Improve support for Markdown mode (Bug#24709)Philipp Stephani2017-07-023-19/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new user option 'electric-quote-context-sensitive'. If non-nil, have ' insert an opening quote if sensible. Also introduce a new variable 'electric-quote-code-faces'. Major modes such as 'markdown-mode' can add faces to this list to treat text as inline code and disable electric quoting. * lisp/electric.el (electric-quote-context-sensitive): New user option. (electric-quote-code-faces): New variable. (electric-quote-post-self-insert-function): Treat ' as ` if desired and applicable; disable electric quoting for given faces. * test/lisp/electric-tests.el (electric-quote-opening-single) (electric-quote-closing-single, electric-quote-opening-double) (electric-quote-closing-double) (electric-quote-context-sensitive-backtick) (electric-quote-context-sensitive-bob-single) (electric-quote-context-sensitive-bob-double) (electric-quote-context-sensitive-bol-single) (electric-quote-context-sensitive-bol-double) (electric-quote-context-sensitive-after-space-single) (electric-quote-context-sensitive-after-space-double) (electric-quote-context-sensitive-after-letter-single) (electric-quote-context-sensitive-after-letter-double) (electric-quote-context-sensitive-after-paren-single) (electric-quote-context-sensitive-after-paren-double) (electric-quote-markdown-in-text) (electric-quote-markdown-in-code): New unit tests.
| * * doc/misc/tramp.texi: Replace ftp:// and http:// URLs by https://.Michael Albinus2017-07-021-12/+12
| |
| * Ask confirmation for all suspicious wildcardsTino Calancha2017-07-021-5/+14
| | | | | | | | | | * lisp/dired-aux.el (dired-do-shell-command): Check that all the wildcards are right. Otherwise, ask for confirmation (Bug#27496).
| * Extend dired-do-shell-command substitutionsTino Calancha2017-07-023-19/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Substitute "`?`" inside command with the current file name. See details in: https://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00618.html * lisp/dired-aux.el (dired-quark-subst-regexp, dired-star-subst-regexp): Mark as obsolete. (dired-isolated-string-re): New defun. (dired--star-or-qmark-p): New predicate. (dired-do-shell-command): Use dired--star-or-qmark-p. Substitute "`?`" with the current file name. * doc/emacs/dired.texi (Shell Commands in Dired): Update manual. ; * etc/NEWS: Mention it.
| * Fix bug in yesterday's CC Mode commit.Alan Mackenzie2017-07-021-6/+10
| | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode.el (c-quoted-number-head-before-point): Check a search has succeded before using the match data. (c-quoted-number-head-before-point, c-quoted-number-head-after-point): Specify that the position of the extremity of the head or tail is in the match data.
| * Remove FIXME comments about sentinel valuesPhilipp Stephani2017-07-021-4/+0
| | | | | | | | | | | | | | | | | | | | | | These FIXMEs can't be addressed because they would require breaking changes to the module API. Furthermore, other module functions don't return sentinel values as well, so users generally have to call non_local_exit_check anyway. * src/emacs-module.c (module_set_user_ptr) (module_set_user_finalizer, module_vec_set, module_vec_size): Remove FIXME comments.
| * Adapt Lisp reference to reader changesPhilipp Stephani2017-07-021-17/+18
| | | | | | | | | | | | | | | | | | The reader now warns about some unescaped character literals, but still allows them for compatibility reasons. Slightly adapt the manual to forbid them officially. * doc/lispref/objects.texi (Basic Char Syntax): Document that backslashes are now required before some characters.