aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Improve doc of GC thresholdsPaul Eggert2019-09-142-3/+17
| | | | | | | | | | | | | | | | | | | | * doc/lispref/internals.texi (Garbage Collection), etc/NEWS: Warn that control over GC is only approximate.
| * | | Fix picon installation instructions in the Gnus manualBruno Félix Rezende Ribeiro2019-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/gnus.texi (Picons): Fix instructions for installing picons on Debian (bug#37247). Copyright-paperwork-exempt: yes
| * | | Fix fileless eww form submissionBasil L. Contovounesios2019-09-141-9/+9
| | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-submit): Ignore file inputs with no associated file name (bug#36520).
| * | | Add default foreground colours to SVG imagesLars Ingebrigtsen2019-09-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/shr.el (svg--wrap-svg): Add a default foreground colour to SVG images (bug#37159). This helps with images like the ones in https://en.wikipedia.org/wiki/Banach_fixed-point_theorem that specify no foreground or background colours. (shr-parse-image-data): Use it.
| * | | Make eww more liberal when interpreting some invalid HTMLLars Ingebrigtsen2019-09-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww--preprocess-html): New function (bug#37009) to be more lenient with invalid HTML and translate common invalid HTML like "a <= b" into "a &lt;= b" to be more liberal in what we accept before parsing. (eww-display-html): Use it. (eww-readable): Ditto.
| * | | * src/print.c (PRINT_CIRCLE_CANDIDATE_P): Fix a thinko. (Bug#36566)Eli Zaretskii2019-09-141-2/+2
| | | |
| * | | Add a debug declaration to widget-specify-insertTobias Zawada2019-09-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/wid-edit.el (widget-specify-insert): Add a debug declaration (bug#37368). Copyright-paperwork-exempt: yes
| * | | ; * etc/NEWS: Fix last change.Eli Zaretskii2019-09-141-0/+1
| | | |
| * | | Allow gamegrid-add-score to treat lower scores as better.Federico Tedin2019-09-142-22/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-add-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score-1): Add 'reverse' parameter. Pass on "-r" argument to update-game-score. (gamegrid-add-score-insecure): Add 'reverse' parameter, reverse scores when it's non-nil. (Bug#36867) * etc/NEWS: Announce the change.
| * | | Improve gc-cons-percentage calculationPaul Eggert2019-09-142-55/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old calculation relied on a hodgpodge of partly updated GC stats to find a number to multiply gc-cons-percentage by. The new one counts data found by the previous GC, plus half of the data allocated since then; this is more systematic albeit still ad hoc. * src/alloc.c (consing_until_gc, gc_threshold, consing_threshold): Now EMACS_INT, not intmax_t. (HI_THRESHOLD): New macro. (tally_consing): New function. (make_interval, allocate_string, allocate_string_data) (make_float, free_cons, allocate_vectorlike, Fmake_symbol): Use it. (allow_garbage_collection, inhibit_garbage_collection) (consing_threshold, garbage_collect): Use HI_THRESHOLD rather than INTMAX_MAX. (consing_threshold): New arg SINCE_GC. All callers changed. (bump_consing_until_gc): Return new consing_until_gc, instead of nil. All callers changed. Don’t worry about overflow since we now saturate at HI_THRESHOLD. Guess that half of recently-allocated objects are still alive, instead of relying on the previous (even less-accurate) hodgepodge. (maybe_garbage_collect): New function. (garbage_collect): Work even if a finalizer disables or enables memory profiling. Do not use malloc_probe if GC reclaimed nothing. * src/lisp.h (maybe_gc): Call maybe_garbage_collect instead of garbage_collect.
| * | | Simplify GC statistics-gatheringPaul Eggert2019-09-131-51/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (make_interval, allocate_string, make_float) (free_cons, Fcons, setup_on_free_list) (allocate_vector_from_block, Fmake_symbol): Do not update gcstat, since it is for statistics from the most recent GC, not for a partially-updated hodgepodge. (sweep_vectors): Update gcstat, since setup_on_free_list no longer does. (garbage_collect_1): Rename to garbage_collect and adopt its API. Remove the old garbage_collect, which is no longer needed. All callers changed.
| * | | Don't build print-number-table unless it will be usedGemini Lasswell2019-09-131-53/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are only a few users of print-number-table, and none of them use it when print-circle is nil. A couple of them used to. print_object was changed in 2012-04-20 "* src/print.c (print_preprocess): Only check print_depth if print-circle is nil". byte-compile-output-docform which uses print-number-table binds print-circle to t before printing unless byte-compile-disable-print-circle is set, but that variable has been marked obsolete since 24.1. * src/print.c (print_preprocess): Assert Vprint_circle is non-nil. Remove code handling the case when Vprint_circle is nil. (print, Fprint_preprocess): Don't call print_preprocess unless Vprint_circle is non-nil. (print_object): Remove comment referencing removed code in print_preprocess.
| * | | Create common tests for print.c and cl-print.elGemini Lasswell2019-09-132-124/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cl-print-tests.el (cl-print--test, cl-print-tests-1, cl-print-tests-2) (cl-print-tests-3, cl-print-tests-4, cl-print-tests-5) (cl-print-tests-strings, cl-print-circle, cl-print-circle-2): Remove. * test/src/print-tests.el (print-tests--prin1-to-string): New alias. (print-tests--deftest): New macro. (print-hex-backslash, print-read-roundtrip, print-bignum): Define with print-tests--deftest and use print-tests--prin1-to-string. (print-tests--prints-with-charset-p): Use print-tests--prin1-to-string. (print-tests--print-charset-text-property-nil) (print-tests--print-charset-text-property-t) (print-tests--print-charset-text-property-default): Define with print-tests--deftest. (print-tests-print-gensym) (print-tests-continuous-numbering, print-tests-1, print-tests-2) (print-tests-3, print-tests-4, print-tests-5) (print-tests-strings, print-circle, print-circle-2): New tests. (print--test, print-tests-struct): New cl-defstructs.
| * | | Fix unnecessary hash table creation in cl-prin1 (bug#36566)Gemini Lasswell2019-09-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cl-prin1 prints all its punctuation by passing strings to prin1. When print-circle was set, print_preprocess was creating a new hash table for each string, causing excessive garbage collection when printing large Lisp objects with cl-prin1. * src/print.c (print_number_index): Fix typo in comment above. (PRINT_CIRCLE_CANDIDATE_P): Don't create print_number_table for top-level strings with no properties, except when print_continuous_numbering is on.
| * | | Improve performance of backtrace printing (bug#36566)Gemini Lasswell2019-09-131-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): Reduce print-level and print-length more quickly when the structure being printed is very large.
| * | | Improve print output options commands in backtrace-mode (bug#36566)Gemini Lasswell2019-09-133-10/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/backtrace.el (backtrace-view): Mention :print-gensym in docstring. (backtrace-mode-map): Add keyboard binding for backtrace-toggle-print-gensym. Add menu entries for backtrace-toggle-print-circle and backtrace-toggle-print-gensym. (backtrace--with-output-variables): Bind print-gensym with value of :print-gensym found in view plist. (backtrace-toggle-print-circle): Remove description of implementation details from docstring. (backtrace-toggle-print-gensym): New command. (backtrace--toggle-feature): Add echo area message describing result of command. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--print-circle): New test. * doc/lispref/debugging.texi (Backtraces): Document keyboard binding for backtrace-toggle-print-gensym.
| * | | * lisp/help-mode.el (help-mode-menu): Fix typo. (Bug#36485)Stefan Kangas2019-09-131-1/+1
| | | |
| * | | * doc/misc/efaq.texi: Update ancient formats. (Bug#37143)Stefan Kangas2019-09-131-1/+1
| | | |
| * | | Remove leftover XEmacs compat code and doc fixesStefan Kangas2019-09-134-24/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/feedmail.el (top-level): Remove outdated comment. (feedmail-run-the-queue): Remove leftover XEmacs compat code. (feedmail-nuke-bcc): Doc fix. * lisp/emulation/viper.el (top-level, viper-mode) * lisp/net/rfc2104.el (top-level): Doc fix. * lisp/textmodes/table.el (top-level): Remove obsolete todo.
| * | | Change gui--selection-value-internal comment into doc stringStefan Kangas2019-09-131-5/+4
| | | | | | | | | | | | | | | | | | | | * lisp/select.el (gui--selection-value-internal): Change comment into doc string. (Bug#25528)
| * | | ; Fix a typo by last commitMichael Albinus2019-09-131-1/+1
| | | |
| * | | ; Add traces in shadowfile.elMichael Albinus2019-09-131-1/+15
| | | |
| * | | Fix problems in tramp-test33-environment-variablesMichael Albinus2019-09-131-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Use ${parameter:-word} construct. Remove PS1 entry from "printenv" output. (tramp--test-check-files): Use "printenv".
| * | | Make recent Tramp patch work for tramp-archive.elMichael Albinus2019-09-131-6/+5
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-connectable-p): Make it work also for tramp-archive.el.
| * | | Fix assertion violations due to non-ASCII text in menusEli Zaretskii2019-09-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (tool_bar_height, redisplay_tool_bar) (display_menu_bar): If the Lisp string to be displayed in the menu-bar or tool-bar window is multibyte, tell the display engine to treat it as multibyte, instead of relying on the initial determination by init_iterator (which is based on the multibyteness of the current buffer). (Bug#37385)
| * | | Fix saving user-defined calc commands with compositions (Bug#36720)Jack Coughlin2019-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calc/calc-prog.el (calc-user-define-permanent): Correctly save the composition when the user specifies their formula by its command name or key. Copyright-paperwork-exempt: yes
| * | | Fix fill-paragraph in python docstrings (Bug#36056)Noam Postavsky2019-09-122-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-do-auto-fill): New function. (python-mode): Set it as normal-auto-fill-function, and don't set fill-indent-according-to-mode. Having the latter set during fill-paragraph gives wrongs result, because python-indent-line doesn't remove indentation added by filling. * test/lisp/progmodes/python-tests.el (python-fill-docstring): New test.
| * | | * lisp/progmodes/sh-script.el (sh--assignment-collect): Only after `=`!Stefan Monnier2019-09-121-6/+7
| | | |
| * | | * lisp/progmodes/sh-script.el (sh-mode-map): Don't bind `=`Stefan Monnier2019-09-121-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (sh-shell-initialize-variables): Use sh--assignment-collect on post-self-insert-hook instead. (sh--assignment-collect): New function, extracted from sh-assignment. (sh-assignment): Use it and mark as obsolete.
| * | | Add `isearch-yank-until-char'Karl Fogel2019-09-123-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-yank-until-char): New function. (isearch-mode-map, isearch-menu-bar-yank-map): Add it. (isearch-forward): Document the new binding. * doc/emacs/search.texi (Isearch Yanking): Document the feature. * etc/NEWS: Mention the above.
| * | | Optimize host name completion in TrampMichael Albinus2019-09-127-120/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection): Throw `non-essential' at the beginning of the function. * lisp/net/tramp.el (tramp-handle-file-exists-p): * lisp/net/tramp-sh.el (tramp-sh-handle-file-exists-p): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-exists-p): Run only when host is connectable. This is due to host name completion, which shall be optimized. * lisp/net/tramp-smb.el (tramp-smb-do-file-attributes-with-stat) (tramp-smb-get-file-entries): Access connection buffer only after sending the command. * lisp/net/tramp.el (tramp-get-buffer, tramp-get-connection-buffer): New argument DONT-CREATE. (tramp-message): Use it. (tramp-get-mutex): Check, whether host is connectable. (tramp-file-name-handler): Set thread only when host is connectable. (tramp-connectable-p): Allow also VEC as argument. (tramp-completion-handle-file-name-completion): Do not expand directory.
| * | | * src/profiler.c: Leave `key` hashslots as Qunbound (bug#37382)Stefan Monnier2019-09-121-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that "key == Qunbound" is used to determine if a hash table entry is available, we can't stash pre-allocated vectors into the `key` slot anymore, so use the `value` slot instead. (make_log): Pre-fill the `value` slots i.s.o `key`. (evict_lower_half): Stash key back into `value`, i.s.o `key`. (record_backtrace): Get pre-allocated vector for `value` i.s.o `key`.
| * | | Fix file name encoding when open_directory signalsPaul Eggert2019-09-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * src/dired.c (open_directory): New arg ENCODED_DIRNAME. All callers changed. Signal error with original name, not encoded name.
| * | | Improve error reporting for DOC file problemsPaul Eggert2019-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | * src/doc.c (get_doc_string): Report all serious errors when DOC cannot be opened, not just fd-exhaustion errors.
| * | | Fix directory-files-and-attributes racePaul Eggert2019-09-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dired.c (directory_files_internal): Fix race condition: when some other process removed a file between the readdir and the ensuing lstat, directory-files-and-attributes would return a list containing nil.
| * | | Omit duplicate test of current directoryPaul Eggert2019-09-111-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | * src/callproc.c (encode_current_directory): Remove redundant call to Ffile_accessible_directory_p. The code checks the encoded name with file_accessible_directory_p anyway.
| * | | Improve checking of pdump load failuresPaul Eggert2019-09-116-112/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (memory_full): Just report "memory exhausted" if failure occurs during initialization, since fancier recovery schemes are not likely to work when not initialized. * src/emacs.c (dump_error_to_string): Accept int, not enum pdumper_load_result, since the result might not fit in the enum. Use strerror if it was derived from errno. This is for better diagnostics of pdump load failures. (load_pdump_find_executable): Return char *, not enum. 2nd arg is now pointer to buffer size, rather than pointer to pointer to buffer. All callers changed. Use Emacs allocator since they should now be OK even during early startup. Use check_executable instead access, to use effective rather than real permissions. (load_pdump): Return void since callers ignore result. Use int where enum could be too narrow. Use heap rather than stack for possibly-long string. Prefer ptrdiff_t to size_t. * src/fileio.c (check_executable): Now extern. * src/pdumper.c (pdumper_load): Return int that may have errno added to it, for better diagnostics when loads fail.
| * | | Reset dbus registered buses on dump loadPaul Eggert2019-09-111-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Leonard Lausen (Bug#37331). * src/dbusbind.c: Include pdumper.h. (syms_of_dbusbind_for_pdumper): New function, to reset the registered buses. (syms_of_dbusbind): Use it, fixing a TODO.
| * | | Fix auto-save with user-emacs-directoryPaul Eggert2019-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | * lisp/startup.el (auto-save-list-file-prefix): Delay initialization, since the value depends on user-emacs-directory (Bug#37354).
| * | | * lisp/emacs-lisp/elint.el (elint-directory-skip-re): Fix doc typo.Mattias Engdegård2019-09-111-1/+1
| | | |
| * | | Create a new overlay used to mark Attachment header (bug#37370)Katsumi Yamaoka2019-09-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-art.el (gnus-mime-inline-part) (gnus-mm-display-part, gnus-mime-buttonize-attachments-in-header): Create a new overlay used to mark Attachment header instead of using existing overlays.
* | | | Enhance 'pcomplete/make' to complete on targets in included makefilesStephen Leake2019-09-182-7/+47
|/ / / | | | | | | | | | | | | | | | | | | * lisp/pcmpl-gnu.el (pcmpl-gnu-makefile-includes): New. (pcmpl-gnu-make-targets): New, factored out of pcmpl-gnu-make-all-targets. (pcmpl-gnu-make-includes): New. (pcmpl-gnu-make-all-targets): Use new functions.
* | | Merge commit '74e9799bd89484b8d15bdd6597c68fc00d07e7f7'Stephen Leake2019-09-10149-2057/+4594
|\ \ \
| * | | Handle missing start-time when importing ical event (Bug#33277)Ulf Jasper2019-09-092-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el (icalendar--convert-ical-to-diary): Set start time only if it is explicitly given in ical. Do not use start-time as default for end-time (Bug#33277). * test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-33277): New. Test fix for Bug#33277.
| * | | Match Python 3 code object names in "M-x pdb"Stefan Kangas2019-09-091-1/+3
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/gud.el (gud-pdb-marker-regexp): Match Python 3 code object names. (Bug#11679)
| * | | ; * lisp/ps-print.el: Doc fix.Stefan Kangas2019-09-091-11/+0
| | | |
| * | | Remove final XEmacs compat code from dframe.elStefan Kangas2019-09-091-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/dframe.el (top-level): Doc fix. (dframe-frame-parameter): Redefine as an obsolete function alias for 'frame-parameter'.
| * | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Define setter functions.Stefan Monnier2019-09-081-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | When :noinline is specified one can't rely on setf expanding the inlinable function to construct the setter. Fixes bug#37283.
| * | | Remove support for upgrading from old bookmark file formatStefan Kangas2019-09-082-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-alist-from-buffer): Remove support for old bookmark file format. (Bug#37122) (bookmark-upgrade-version-0-alist) (bookmark-upgrade-file-format-from-0) (bookmark-grok-file-format-version) (bookmark-maybe-upgrade-file-format): Declare obsolete. (bookmark-load): Don't call 'bookmark-maybe-upgrade-file-format'. * etc/NEWS: Announce it.
| * | | * lisp/tmm.el: Fix broken tmm-prompt (bug#34517)Juri Linkov2019-09-081-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tmm.el (tmm-prompt): Don't duplicate items of tmm--history. Don't reverse tmm-km-list for completion. Don't set the initial position of 'tmm--history. Use reverse tmm--history as the list of default values for M-n. (tmm-add-prompt): Don't insert initial value to the minibuffer.