aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix some problems in the Cairo buildAri Roponen2018-05-052-42/+83
| | | | | | | | | | | | | | | | | | | | | | * src/xterm.c (x_begin_cr_clip): Create image surface. (x_update_end) [USE_CAIRO]: Remove GTK3-specific code. (x_scroll_run) [USE_CAIRO]: Implement scrolling. * src/image.c (lookup_rgb_color) [USE_CAIRO]: Support Cairo. (jpeg_load_body) [USE_CAIRO]: Support Cairo. Use USE_CAIRO instead of CAIRO for #ifdef's. (imagemagick_load_image) [USE_CAIRO]: Support Cairo. (Bug#31288)
* | Avoid infloops in font_open_entityEli Zaretskii2018-05-051-0/+3
| | | | | | | | | | | | | | | | * src/font.c (font_open_entity): Fail after 15 iterations through the loop that looks for a font whose average_width and height are both positive. This avoids infinite loops for fonts that, e.g., report average_width of zero for any possible size we try. (Bug#31316)
* | More porting to GCC 8 of --enable-gcc-warningsPaul Eggert2018-05-031-0/+5
| | | | | | | | | | | | | | | | * lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): * lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): * lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: No longer const. * src/emacs-module.c: Ignore -Wcast-function-type.
* | Fix off-by-one history pruning (bug#31211)Basil L. Contovounesios2018-05-022-60/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (add-to-history): Clarify docstring. Protect against negative history-length and unnecessary variable modification, as per read_minibuf. * lisp/ido.el (ido-record-command): * lisp/international/mule-cmds.el (deactivate-input-method): (set-language-environment-input-method): * lisp/isearch.el (isearch-done): * lisp/minibuffer.el (read-file-name-default): * lisp/net/eww.el (eww-save-history): * lisp/simple.el (edit-and-eval-command, repeat-complex-command): (command-execute, kill-new, push-mark): * src/callint.c (Fcall_interactively): * src/minibuf.c (read_minibuf): Delegate to add-to-history. * test/lisp/simple-tests.el (command-execute-prune-command-history): * test/src/callint-tests.el (call-interactively-prune-command-history): New tests.
* | Port --enable-gcc-warnings to GCC 8Paul Eggert2018-04-286-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Do not use GCC 8’s new -Wcast-align flag. * lib-src/ebrowse.c (xmalloc): * lib-src/emacsclient.c (xmalloc, xstrdup): * lib-src/etags.c (xmalloc): * lib-src/make-docfile.c (xmalloc): * lib-src/movemail.c (xmalloc): * src/dispnew.c (new_glyph_pool): * src/regex.c (xmalloc): * src/term.c (tty_menu_create): * src/tparam.h (tparam): Use ATTRIBUTE_MALLOC. Also see GCC bug 85562. * lib-src/emacsclient.c (fail): Do not dereference a null pointer. * src/frame.c (delete_frame): Add a decl with UNINIT to work around GCC bug 85563. * src/menu.h (finish_menu_items): Do not use attribute const. * src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
* | * src/fns.c (Fstring_distance): Minor code reformatting.Eli Zaretskii2018-04-281-5/+8
| |
* | Fix documentation and tests for 'string-distance'Eli Zaretskii2018-04-281-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (Fstring_distance): Doc fix. * doc/lispref/strings.texi (Text Comparison): Document 'string-distance'. * etc/NEWS: Fix wording and mark as documented in the manuals. * test/src/fns-tests.el (test-string-distance): Move from subr-tests.el and rename.
* | New function 'string-distance'Chen Bin2018-04-281-0/+62
| | | | | | | | | | | | | | | | | | * src/fns.c (Fstring_distance): New primitive. (syms_of_fns): Defsubr it. * test/lisp/subr-tests.el (subr-tests--string-distance): New test. * etc/NEWS: Mention 'string-distance'.
* | Don’t set print-escape-newlines in the minibufferPaul Eggert2018-04-252-9/+0
| | | | | | | | | | | | | | | | | | | | This appears to be an unnecessary and possibly-confusing revenant from ancient code (Bug#31251). See thread containing: https://lists.gnu.org/r/emacs-devel/2018-04/msg00654.html * src/minibuf.c (read_minibuf): Do not set print-escape-newlines. * src/print.c (syms_of_print): Do not defsym print-escape-newlines or print-escape-control-characters, as these symbols are not used in C code.
* | * src/minibuf.c (read_minibuf): Add a FIXME comment.Paul Eggert2018-04-241-0/+4
| |
* | Fix recent change in lread.cEli Zaretskii2018-04-231-1/+1
| | | | | | | | | | * src/lread.c (openp): Avoid assertion violations in XCDR when PATH is nil. (Bug#31229)
* | Merge from origin/emacs-26Glenn Morris2018-04-201-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5de608f (origin/emacs-26) Update the documentation of 'perform-replace' 06245b6 * etc/NEWS: Another fix for the last change (noted by Juri Li... 8f6293c Fix use of @key in Texinfo manuals f4c9894 Improve documentation of actual arglist ce0e253 ; * etc/NEWS: Improve last change as proposed by Phil Sainty b89ff0e Don't assume term-current-row cache is valid (Bug#31193) 326a296 ; * etc/NEWS: Mention 'display-buffer-in-major-side-window' c... 3bdc9a1 Fix flyspell-auto-correct-previous-word broken by recent change a539eb5 * test/src/lread-tests.el (lread-test-bug-31186): New test. 3fa472b Fix undefined behaviour while looking for lexical-binding fil... 4341aac Minor wording improvement in "Bookmarks" Conflicts: test/src/lread-tests.el
| * Fix undefined behaviour while looking for lexical-binding file variable (bug ↵Andreas Schwab2018-04-171-0/+2
| | | | | | | | | | | | | | 31186) * src/lread.c (lisp_file_lexically_bound_p): Reset beg_end_state before reading variable or value.
* | Tweak mark_object to avoid a conditional branchPaul Eggert2018-04-181-7/+2
| | | | | | | | | | * src/alloc.c (LAST_MARKED_SIZE): Now an enum. Make it a power of 2. (mark_object): Take advantage of the power of 2.
* | Tell user about read-integer-overflow-as-floatPaul Eggert2018-04-181-1/+6
| | | | | | | | | | | | * src/lread.c (string_to_number): Suggest read-integer-overflow-as-float in signal message. Suggested by Stefan Monnier (Bug#31118#58).
* | Fix signal for large integers with valid syntaxPaul Eggert2018-04-171-9/+10
| | | | | | | | | | | | * src/lread.c (read_integer): If a radixed integer has valid syntax but is waayyy too large, signal overflow instead of invalid syntax. * test/src/lread-tests.el (lread-long-hex-integer): New test.
* | Avoid undefined behavior in 'defvar' (Bug#31072)Philipp Stephani2018-04-151-0/+2
| | | | | | | | | | * src/eval.c (Fdefvar): Check that first argument is a symbol. * test/src/eval-tests.el (defvar/bug31072): New unit test.
* | * src/lread.c (openp): Add a comment before the now-obscure loop.Lars Ingebrigtsen2018-04-151-0/+2
| |
* | Indent after transforming for loop into do/whileLars Ingebrigtsen2018-04-141-177/+176
| |
* | Make call-process work if exec-path is nilLars Ingebrigtsen2018-04-141-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/lread.c (openp): If exec-path is nil, no files would be found to execute (bug#30564). Test cases: (let ((exec-path ())) (call-process "/bin/ls" nil (current-buffer))) This would previously fail, but now works. (let ((exec-path '("/bin/"))) (call-process "ls" nil (current-buffer))) This worked, and still works.
* | (libxml-parse-html-region): Make DISCARD-COMMENTS obsoleteLars Ingebrigtsen2018-04-141-10/+4
| | | | | | | | | | | | | | | | | | * lisp/subr.el (libxml-parse-xml-region) (libxml-parse-html-region): Make DISCARD-COMMENTS obsolete. * src/xml.c (Flibxml_parse_html_region) (Flibxml_parse_xml_region): Don't mention DISCARD-COMMENTS, since it's now no longer part of the advertised signature (bug#27178).
* | Make DISCARD-COMMENTS in `libxml-parse-{html,xml}-region' obsoleteLars Ingebrigtsen2018-04-141-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Parsing HTML/XML): Mention that discard-comments is obsolete. * lisp/xml.el (xml-remove-comments): New function (bug#27178). * src/xml.c (Flibxml_parse_html_region): Clarify what DISCARD-COMMENTS actually does, and say that the parameter is obsolete. (Flibxml_parse_xml_region): Ditto.
* | Merge from origin/emacs-26Glenn Morris2018-04-141-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5a6bb01 (origin/emacs-26) Fix building etc/DOC in the MSDOS port 274c979 * lisp/select.el (gui-get-selection): Doc fix. ad731b0 ; * doc/lispref/display.texi (Temporary Displays): Fix typos. f1450e9 Complete documentation of syntax flags by adding `c' 6bdcaec Fix typos and minor wording issues in ELisp manual febac27 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac... 6c2e21e Avoid segfault in processes of type 'pipe' 60e10c5 Remove repetitions in documentation strings 208e752 * lisp/image.el (image-load-path): Doc fix. 92e0fd8 ; * etc/NEWS: Remove a FIXME. (Bug#31122) Conflicts: etc/NEWS
| * Avoid segfault in processes of type 'pipe'Eli Zaretskii2018-04-131-0/+4
| | | | | | | | | | | | * src/process.c (Fmake_pipe_process): Set up the decoding and encoding buffers. For the details, see http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00295.html.
* | Merge from origin/emacs-26Glenn Morris2018-04-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | c267421 (tag: emacs-26.1-rc1, origin/emacs-26) ; * ChangeLog.3: Update. aa77415 * etc/AUTHORS: Regenerate. c8ffca5 * lisp/files.el (kept-new-versions): Improve documentation st... 3a798f6 Fix a minor mistake in the ELisp manual 6afa868 ; * src/dispextern.h (struct it): Fix a typo in a comment. 5659b2f * lisp/files.el (find-file-literally): Doc fix. 9b24a79 Fix typos in doc strings
| * ; * src/dispextern.h (struct it): Fix a typo in a comment.Eli Zaretskii2018-04-071-1/+1
| |
* | Document that 'make-process' mixes the output streamsPhilipp Stephani2018-04-071-1/+2
| | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Asynchronous Processes): * src/process.c (Fmake_process): Document that standard error is mixed with standard output if STDERR is nil. * test/src/process-tests.el (make-process/mix-stderr): New unit test.
* | Improve GC+Cairo workaroundPaul Eggert2018-04-043-8/+20
| | | | | | | | | | | | | | Suggested by Eli Zaretskii (Bug#20890#31). * src/font.h (font_data_structures_may_be_ill_formed): New function. * src/ftfont.c (ftfont_close): * src/ftcrfont.c (ftcrfont_close): Use it.
* | Pacify GCC when --enable-profilingPaul Eggert2018-04-034-15/+12
| | | | | | | | | | | | | | * src/conf_post.h (PROFILING): Undef if not on a platform that supports it. Simplify uses accordingly. * src/emacs.c (etext) [PROFILING]: Declare at top level to avoid GCC warning.
* | ; * src/ftfont.c (ftfont_spec_pattern): Fix whitespace.Eli Zaretskii2018-04-031-1/+1
| |
* | Work around GC+Cairo bugPaul Eggert2018-04-031-0/+6
| | | | | | | | | | | | Workaround suggested by Robert Pluim (Bug#20890#13). * src/ftfont.c (ftfont_close) [USE_CAIRO]: Do nothing if GC is in progress.
* | Port FC_COLOR change to older fontconfigPaul Eggert2018-04-031-1/+1
| | | | | | | | | | | | | | Problem reported by John ff in: https://lists.gnu.org/r/emacs-devel/2018-04/msg00058.html * src/ftfont.c (ftfont_spec_pattern) [!FC_COLOR]: Don’t use FC_COLOR on older fontconfigs that don’t have it.
* | Ignore color fonts when using XftRobert Pluim2018-04-032-0/+14
| | | | | | | | | | | | | | | | * src/font.c (syms_of_font): New configuration variable xft-ignore-color-fonts, default t. * src/ftfont.c (ftfont_spec_pattern): Tell fontconfig to ignore color fonts if xft-ignore-color-fonts is t. (Bug#30874, Bug#30045) * etc/NEWS: Document xft-ignore-color-fonts.
* | Add a history variable for `read-variable'Charles A. Roelli2018-04-021-1/+5
| | | | | | | | | | | | * src/minibuf.c (Fread_variable): Use the history variable when calling Fcompleting_read. (syms_of_minibuf): New history variable, custom-variable-history.
* | Do not assume --with-file-notificationPaul Eggert2018-03-301-0/+2
| | | | | | | | * src/fileio.c (report_file_notify_error) [!USE_FILE_NOTIFY]: Omit.
* | Centralize Bug#30931 fixPaul Eggert2018-03-304-14/+18
| | | | | | | | | | | | * src/marker.c (detach_marker): New function. * src/editfns.c (save_restriction_restore): * src/insdel.c (signal_before_change): Use it.
* | Fix another case of freed markers in the undo-list (Bug#30931)Noam Postavsky2018-03-304-16/+11
| | | | | | | | | | | | | | | | | | | | * src/alloc.c (free_marker): Remove. * src/editfns.c (save_restriction_restore): * src/insdel.c (signal_before_change): Detach the markers from the buffer when we're done with them instead of calling free_marker on them. * test/src/editfns-tests.el (delete-region-undo-markers-1) (delete-region-undo-markers-2): New tests.
* | Fix C-p and C-n when wrap-prefix is too wideEli Zaretskii2018-03-301-1/+17
| | | | | | | | | | | | * src/xdisp.c (move_it_in_display_line_to): Avoid looping in previous/next-line when wrap-prefix is set to a too-wide stretch of whitespace. (Bug#30432)
* | Simplify represented filename handling (bug#30800)Alan Third2018-03-303-64/+41
| | | | | | | | | | | | | | | | | | | | * src/nsfns.m (ns_set_represented_filename): Move function from nsterm.m and set represented filename directly. * src/nsterm.h (ns_set_represented_filename): Remove definition. * src/nsterm.m (ns_set_represented_filename): Move function to nsfns.m. (x_free_frame_resources): Remove references to represented_frame. (sendEvent): Don't set represented filename.
* | Fix CHECK_ALLOCATED_AND_LIVE abort during GCPaul Eggert2018-03-291-3/+4
| | | | | | | | | | * src/editfns.c (save_restriction_restore): Wait for the GC to free the temporary markers (Bug#30931).
* | * src/xterm.c (x_make_frame_visible): Fix typo in previous change.Noam Postavsky2018-03-291-1/+1
| |
* | Don't wait for visible frames to become visibleNoam Postavsky2018-03-291-1/+2
| | | | | | | | | | | | | | For discussion, see thread starting at https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00807.html. * src/xterm.c (x_make_frame_visible): Check FRAME_VISIBLE_P before calling x_wait_for_event.
* | New experimental variable read-integer-overflow-as-float.Paul Eggert2018-03-291-1/+10
| | | | | | | | | | | | | | | | Following a suggestion by Eli Zaretskii (Bug#30408#46). * etc/NEWS: Mention it. * src/lread.c (syms_of_lread): Add it. (read1): Treat out-of-range integers as floats if read-integer-overflow-as-float is non-nil.
* | Lisp reader now checks for integer overflowPaul Eggert2018-03-294-22/+27
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/numbers.texi (Integer Basics), etc/NEWS: Document this. * src/lisp.h (S2N_IGNORE_TRAILING, S2N_OVERFLOW_TO_FLOAT): New constants. * src/lread.c (string_to_number): Change trailing bool arg to integer argument with flags, to support S2N_OVERFLOW_TO_FLOAT. All uses changed. * test/src/editfns-tests.el (read-large-integer): New test.
* | * src/keyboard.c (record_char, read_key_sequence): Copy raw eventsStefan Monnier2018-03-291-5/+8
| |
* | Merge from origin/emacs-26Glenn Morris2018-03-281-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9bff405 (origin/emacs-26) * doc/misc/org.texi (Installation): Fix clo... 613c9a5 Update Org to v9.1.9 1b075a9 ; Fix some tiny doc typos 441fe20 De-obsolete `if-let' and `when-let' 8696038 * lisp/htmlfontify.el (hfy-begin-span-handler): Doc fix. 930f7b1 * doc/lispref/functions.texi (Defining Functions): Improve in... 95ccf50 Fix crash after frame is freed on macOS (bug#30800) 45d0475 More manual editing 2acb9f0 Minor manual changes changes d481cba * lisp/calculator.el (calculator-paste-decimals): Add version. 7d6c7d0 ; Use GNU not Gnu in docs 1bc4def More proofreading of the Emacs manual Conflicts: doc/misc/org.texi etc/NEWS lisp/org/org-clock.el
| * Fix crash after frame is freed on macOS (bug#30800)Aaron Jensen2018-03-251-0/+4
| | | | | | | | | | * src/nsterm.m (x_free_frame_resources): Clear represented_frame. (bug#30800)
* | (read_key_sewuence): Use POSN in second event when needed (bug#30955)Stefan Monnier2018-03-271-4/+14
| | | | | | | | | | | | | | * src/keyboard.c (active_maps): Add arg 'second_event'. (read_key_sequence): Pass it. * lisp/mouse.el (mouse--click-1-maybe-follows-link): Modify event in place.
* | Trivial fixes for last changes to package.el and marker.cStefan Monnier2018-03-261-1/+1
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-quickstart): Add missing version. * src/marker.c (verify_bytepos): Fix typo.
* | ; Spelling fixPaul Eggert2018-03-261-1/+1
| |