summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prevent crashes in xg_select due to concurrencyEli Zaretskii2016-12-151-1/+1
| | | | | | | | * src/xgselect.c (xg_select): Don't call Glib functions that use 'context' if we failed to acquire it. This means some other thread owns the context, in which case both using the context and calling block_input/unblock_input will step on that thread's toes and eventually lead to crashes. (Bug#25172)
* Fix circular list handling in seq-mapnNicolas Petton2016-12-152-1/+9
| | | | | | * lisp/emacs-lisp/seq.el (seq-mapn): Do not copy list arguments. * test/lisp/emacs-lisp/seq-tests.el (test-seq-mapn-circular-lists): Add a regression test.
* Check in tramp-tests.el, that environment variables are set correctlyMichael Albinus2016-12-151-1/+28
| | | | | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Check also, that environment variables are set correctly.
* Protect environment variables with double quotes in TrampDominique Quatravaux2016-12-151-4/+5
| | | | | | | * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Protect environment variables with double quotes. Copyright-paperwork-exempt: yes
* * lisp/ibuf-macs.el (define-ibuffer-filter): Wrap ,@body in a progn.Tino Calancha2016-12-151-1/+1
|
* * lisp/image-dired.el (image-dired-create-thumb): Create parent directories.Mark Oteiza2016-12-141-1/+1
|
* * lisp/image-mode.el (image-mode-winprops-alist): Add docstring.Mark Oteiza2016-12-141-1/+4
|
* Recognize pngnq or pngnq-s9Mark Oteiza2016-12-141-2/+6
| | | | | * lisp/image-dired.el (image-dired-cmd-pngnq-program): Also consider pngnq-s9 as a possible executable.
* Update standard image-dired thumbnail locationMark Oteiza2016-12-141-3/+6
| | | | | * lisp/image-dired.el (image-dired-thumb-name): Conform to the latest standard: consider XDG_CACHE_HOME, falling back on ~/.cache.
* Reset window scroll when displaying an imageMark Oteiza2016-12-141-8/+11
| | | | | | | | | | | | | | When viewing a large image full size and scrolling, for instance, to the lower right corner, then selecting a much smaller image in the thumbnail buffer, the window stays scrolled so the new image is out of the window. One must scroll back to the "origin" to view the new displayed image, or just kill the image-dired-display-image buffer and try again. This fixes the issue. * lisp/image-dired.el (image-dired-display-window-width): (image-dired-display-window-height): Operate on a window as argument. (image-dired-display-image): Bind (image-dired-display-window) and use it. Set window vscroll and hscroll to zero when refreshing the buffer's contents.
* More image-dired polishMark Oteiza2016-12-131-6/+14
| | | | | | | | | | * lisp/image-dired.el (image-dired-file-name-at-point): New function. (image-dired-thumbnail-mode, image-dired-display-image-mode): Disable undo list. Add image-dired-file-name-at-point to file-name-at-point-functions to facilitate find-file and friends. (image-dired-thumbnail-display-external): (image-dired-dired-display-external): Use start-process instead, to avoid needlessly blocking and using a shell.
* Replace ldefs-boot with a much smaller filePhillip Lord2016-12-1318-37/+295
| | | | | | | | | | | | | | | | | | | | | * Makefile.in (bootstrap-build,generate-ldefs-boot): New targets. (bootstrap): Depend on bootstrap-build. * admin/ldefs-clean.el: New file. * lisp/Makefile.in (compile-first): Depend on loaddefs.el * lisp/ldefs-boot.el: Remove. * lisp/ldefs-boot-auto.el: New file. * lisp/ldefs-boot-manual.el: New file. * lisp/loadup.el: Load ldefs-boot-manual.el. * src/emacs.c (generating_ldefs_boot): New variable. (main): Check whether we are generating ldefs. * src/eval.c (autoload-do-load): Dump autoload forms to stderr when requested. * src/lisp.h (generating_ldefs_boot): New variable. * admin/gitmerge.el, admin/make-tarball.txt, admin/notes/copyright, lisp/Makefile.in, lisp/cus-dep.el, lisp/emacs-lisp/elint.el, lisp/finder.el, lisp/loadup.el, msdos/mainmake.v2: Update reference to ldefs-boot. * admin/update_autogen: Alter mechanism for ldefs-boot generation.
* Remove support for aspell < 0.60 (from 2004)Reuben Thomas2016-12-131-19/+16
| | | | | lisp/textmodes/ispell.el (ispell-check-version): Require Aspell 0.60. (ispell-aspell-dictionary-alist): Remove check that we have Aspell 0.60.
* Minor docstring and comment fixes to ispell.elReuben Thomas2016-12-131-2/+2
| | | | | | | lisp/textmodes/ispell.el (ispell-aspell-dictionary-alist): Mention ispell-aspell-dictionary-alist, not ispell-dictionary-alist. (ispell-set-spellchecker-params): Change double-single quotes to single single quotes in comment.
* Remove unused variableReuben Thomas2016-12-131-2/+0
| | | | * lisp/textmodes/ispell.el (current-ispell-directory): Remove.
* Remove XEmacs-specific ispell-with-no-warningsReuben Thomas2016-12-131-8/+4
| | | | | | * lisp/textmodes/ispell.el (ispell-with-no-warnings): Remove this defmacro, needed only for XEmacs. (ispell-command-loop, ispell-message): Use with-no-warnings directly.
* Remove meaningless defconst ispell-versionReuben Thomas2016-12-131-10/+3
| | | | | | | | * lisp/textmodes/ispell.el (ispell-version): Since ispell.el is now firmly part of Emacs, and the version hasn’t changed since 2003, and isn’t used anywhere, remove it. 3rd-party code can better use the Emacs version, or feature or function checks. (ispell-check-version): No longer report ispell.el version.
* Remove boundp test for always-bound symbolReuben Thomas2016-12-131-2/+1
| | | | | | * lisp/textmodes/ispell.el (ispell-message): mail-yank-prefix is defvar’d at the top of the file, so remove a test to see if it is bound.
* Remove support for ispell < 3.1.12Reuben Thomas2016-12-131-8/+2
| | | | | | * lisp/textmodes/ispell.el (ispell-offset): Remove. (ispell-check-version): Require ispell >= 3.1.12, released in 1994. (ispell-process-line): No longer use ispell-offset.
* Remove unused constantReuben Thomas2016-12-131-4/+0
| | | | * lisp/textmodes/ispell.el (ispell-required-version): Remove.
* Remove support for old versions of supercite and GNUS from ispell.elReuben Thomas2016-12-131-7/+2
| | | | | * lisp/textmodes/ispell.el (ispell-message): Require supercite >= 3.0 and GNUS >= 5. Not exactly the bleeding edge!
* Remove remaining mentions of XEmacs from ispell.elReuben Thomas2016-12-131-3/+2
| | | | | | * lisp/textmodes/ispell.el (ispell-valid-dictionary-list): (ispell-add-per-file-word-list): Remove mentions of XEmacs from comments.
* Remove XEmacs-specific minibuffer handling code from ispell.elReuben Thomas2016-12-131-7/+5
| | | | | * lisp/textmodes/ispell.el (ispell-init-process): Assume we are not in XEmacs.
* Remove XEmacs-specific horizontal scrollbar handling in ispell.elReuben Thomas2016-12-131-8/+2
| | | | | * lisp/textmodes/ispell.el (ispell-command-loop): Remove XEmacs-specific code.
* Remove XEmacs-specific code dealing with enable-multibyte-charactersReuben Thomas2016-12-131-16/+3
| | | | | * lisp/textmodes/ispell.el (ispell-decode-string): (ispell-init-process): Remove XEmacs-specific guard.
* Remove XEmacs-specific code from ispell.elReuben Thomas2016-12-131-45/+10
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-menu-xemacs): Remove (ispell-menu-map-needed): Remove XEmacs-specific check. (ispell-word): Remove XEmacs-specific extent code. (ispell-init-process): Remove XEmacs workaround for local add-hook. Assume we have set-process-query-on-exit-flag. (ispell-kill-ispell, ispell-change-dictionary): Remove XEmacs workaround for called-interactively-p.
* Remove some commented-out codeReuben Thomas2016-12-131-6/+1
| | | | | lisp/textmodes/ispell.el (ispell-process) ispell-valid-dictionary-list): Remove commented-out code.
* Remove XEmacs and old Emacs highlighting codeReuben Thomas2016-12-131-19/+3
| | | | | | * lisp/textmodes/ispell.el (ispell-highlight-spelling-error-xemacs): Remove. (ispell-highlight-spelling-error): Assume display-color-p exists.
* Assume Emacs supports [:alpha:] in regexpsReuben Thomas2016-12-131-33/+22
| | | | | | * lisp/textmodes/ispell.el (ispell-emacs-alpha-regexp): Remove. (ispell-set-spellchecker-params): Remove tests of ispell-emacs-alpha-regexp.
* Remove some XEmacs-specific code from ispell.elReuben Thomas2016-12-131-63/+6
| | | | | * lisp/textmodes/ispell.el: Remove XEmacs menubar setup. (ispell-int-char): Remove.
* Generalise over-specific documentationReuben Thomas2016-12-131-3/+1
| | | | | | | | | * lisp/textmodes/ispell.el (ispell-personal-dictionary): Rather than document precise personal wordlist filenames for only two supported spelling checkers, simply say that the default personal dictionary depends on the chosen spelling checker. The user can check the spelling checker’s documentation if necessary. This is simpler, and works for other supported (and future, or unknown) spelling checkers.
* Remove tests for built-in functionsReuben Thomas2016-12-131-20/+12
| | | | | | | * lisp/textmodes/ispell.el (buffer-substring-no-properties): Remove back-up definition. (ispell-add-per-file-word-list): Remove tests for comment-padright and comment-normalize-vars.
* Remove unused ispell-looking-backReuben Thomas2016-12-131-15/+0
| | | | * lisp/textmodes/ispell.el (ispell-looking-back): Remove unused alias.
* Assume we have version<= for checking ispell versionReuben Thomas2016-12-131-41/+5
| | | | | * lisp/textmodes/ispell.el (ispell-check-minver): Remove. (ispell-check-version): Use version<= directly.
* Remove ispell.el pre-GNU Emacs commentsReuben Thomas2016-12-131-77/+0
| | | | | | | * lisp/textmodes/ispell.el (Commentary): Remove original maintainer details, as Emacs version, bug report address and so forth should be used instead for this version. Remove in-line change history; use git instead.
* More small fixes for image-diredMark Oteiza2016-12-131-8/+4
| | | | | | | | * lisp/image-dired.el: Fix commentary to refer to correct Emacs manual node. (image-dired--with-db-file): Add declare forms. (image-dired-hidden-p): Rewrite with cl-loop. It's not necessary to run through the whole list.
* Remove image-dired-kill-buffer-and-windowMark Oteiza2016-12-131-13/+4
| | | | | | | | | This breaks window layout, especially when quitting a image-dired-display-image-mode buffer. * lisp/image-dired.el (image-dired-thumbnail-mode-map): (image-dired-display-image-mode-map): Replace in keymap and menu items bindings to image-dired-kill-buffer-and-window with quit-window. (image-dired-kill-buffer-and-window): Remove.
* Replace image-dired-setup-dired-keybindings with a minor modeMark Oteiza2016-12-131-89/+55
| | | | | | | | | | | | | | * lisp/image-dired.el (image-dired-thumbnail-mode): Fix docstring to remove mention of nonexistent image-dired-dired and to refer to the new minor mode. (image-dired-minor-mode-map): New keymap assimilated from image-dired-setup-dired-keybindings. In the future, the keymap parent should be removed, and perhaps also the duplicate bindings that already exist in dired-mode-map. (image-dired-setup-dired-keybindings): Remove. Replace with an obsolete function alias. (image-dired-minor-mode): New minor mode, assuming the role of image-dired-setup-dired-keybindings.
* * test/src/regex-resources/PTESTS: Convert to UTF-8.Paul Eggert2016-12-121-271/+271
|
* Clarify thread-signal semanticsNoam Postavsky2016-12-121-3/+5
| | | | | * doc/lispref/threads.texi (Basic Thread Functions): Explain that the thread will be signaled as soon as possible.
* Clean up var watcher disabling on thread switchingNoam Postavsky2016-12-123-51/+52
| | | | | | | | | | | | | | * src/data.c (Fset_default): Move code into new C level function, `set_default_internal'. (set_default_internal): New function, like `Fset_default' but also takes additional bindflag parameter. (set_internal): Only call `notify_variable_watchers' if bindflag is not SET_INTERNAL_THREAD_SWITCH. * src/eval.c (do_specbind, do_one_unbind): Add bindflag parameter, passed on to set_internal and set_default_internal. Adjust callers. (rebind_for_thread_switch, unbind_for_thread_switch): Pass SET_INTERNAL_THREAD_SWITCH to do_specbind, do_one_unbind instead of temporarily adjusting symbol's trapped_write field.
* Minor fix for define-derived-modeGlenn Morris2016-12-121-5/+6
| | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Do not let eg eval-defun reset the values of syntax or abbrev tables, since they might have been defined externally. (Bug#16160)
* * build-aux/git-hooks/pre-commit: Add whitespace comment.Paul Eggert2016-12-121-0/+8
|
* Move backtrace to ELisp using a new mapbacktrace primitiveClément Pit--Claudel2016-12-126-95/+192
| | | | | | | | | | | | | | | | | | | | * src/eval.c (get_backtrace_starting_at, backtrace_frame_apply) (Fmapbacktrace, Fbacktrace_frame_internal): New functions. (get_backtrace_frame, Fbacktrace_debug): Use `get_backtrace_starting_at'. * lisp/subr.el (backtrace--print-frame): New function. (backtrace): Reimplement using `backtrace--print-frame' and `mapbacktrace'. (backtrace-frame): Reimplement using `backtrace-frame--internal'. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Pass a base to `mapbacktrace' instead of searching for "(debug" in the output of `backtrace'. * test/lisp/subr-tests.el (subr-test-backtrace-simple-tests) (subr-test-backtrace-integration-test): New tests. * doc/lispref/debugging.texi (Internals of Debugger): Document `mapbacktrace' and missing argument BASE of `backtrace-frame'.
* Use C99 syntax for font driversPaul Eggert2016-12-127-117/+117
| | | | | | | | | | | | | Problem reported by Daniel Colascione in: http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00515.html * src/ftcrfont.c (ftcrfont_driver): * src/ftfont.c (ftfont_driver): * src/ftxfont.c (ftxfont_driver): * src/macfont.m (macfont_driver): * src/nsfont.m (nsfont_driver): * src/xfont.c (xfont_driver): * src/xftfont.c (xftfont_driver): Use C99 syntax, not the old GNU C syntax.
* Obsolete gs.elGlenn Morris2016-12-123-32/+6
| | | | | | | * lisp/gs.el: Move to lisp/obsolete. (Bug#1524) * doc/lispref/display.texi (Image Formats): Remove postscript. (PostScript Images): Remove section. * doc/lispref/elisp.texi: Update menu.
* Un-revert recent Ffset changeGlenn Morris2016-12-121-0/+3
| | | | * src/data.c (Ffset): Reinstate the check for "nil".
* Minor advice.el fixGlenn Morris2016-12-121-1/+1
| | | | | | | | * lisp/emacs-lisp/advice.el (ad-preactivate-advice): Avoid setting the function definition of nil. This was happening during bootstrap of org-compat.el, apparently due to eager macro expansion of code behind a (featurep 'xemacs) test.
* Make etags-tests work in out-of-tree buildsEli Zaretskii2016-12-121-3/+11
| | | | | | * test/lisp/progmodes/etags-tests.el (etags-bug-158) (etags-bug-23164): Make them work in an out-of-tree build. Reported by Ken Brown <kbrown@cornell.edu>.
* Avoid crashing if a new thread is signaled right awayEli Zaretskii2016-12-122-11/+24
| | | | | | | | | | | * src/thread.c (post_acquire_global_lock): Don't raise the pending signal if the thread's handlers were not yet set up, as that will cause Emacs to exit with a fatal error. This can happen if a thread is signaled as soon as make-thread returns, before the new thread had an opportunity to acquire the global lock, set up the handlers, and call the thread function. * test/src/thread-tests.el (thread-signal-early): New test.