aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge from origin/emacs-26Glenn Morris2018-01-151-2/+6
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2c0cfa6455 * ChangeLog.3: Update 4387bb44ae Update authors bce51bd6f7 * lisp/gnus/message.el (message-do-auto-fill): Prevent do-... bd2a2a1e84 Improve documentation of etags 7ba75b9637 Teach etags new interpreters for some languages 1f7f03742d * lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-stri... dbb4aac212 * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#2... 80463a43da Improve documentation of fill-separate-heterogeneous-words... 4bd2416d55 Fix documentation of some x-* functions 9c2b11484f Inherit query-on-exit flag to stderr process (Bug#30031) 3efb1e7def Fix Bug#30057 a9b884c60f Tag some unstable tests, and skip by default (bug#24503) # Conflicts: # test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
| * Inherit query-on-exit flag to stderr process (Bug#30031)Philipp Stephani2018-01-101-2/+6
| | | | | | | | | | | | | | * src/process.c (Fmake_process): Have the pipe process honor the parent's query-on-exit flag. * test/src/process-tests.el (make-process/noquery-stderr): New test.
* | * src/print.c (syms_of_print) <print_quoted>: Set default to trueStefan Monnier2018-01-151-1/+1
| |
* | ; * src/coding.h (surrogates_to_codepoint): Add prototype.Eli Zaretskii2018-01-151-12/+14
| |
* | Use fcntl.h in kqueue.cJeremie Courreges-Anglas2018-01-151-1/+1
| | | | | | | | | | * src/kqueue.c: Use fcntl.h (specified by POSIX) instead of non-standard sys/file.h to access O_* open(2) flags.
* | Add battery support to all Cygwin buildsKen Brown2018-01-135-114/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It already exists in the Cygwin-w32 build. * src/w32fns.c (Fw32_battery_status): Move to... * src/w32cygwinx: New file, to be used for functions common to the MS Windows and Cygwin builds. (syms_of_w32cygwinx): New function. * src/lisp.h: Add prototype of syms_of_w32cygwinx. * src/emacs.c (main) [HAVE_NTGUI or CYGWIN]: Call syms_of_w32cygwinx. * src/Makefile.in (SOME_MACHINE_OBJECTS): * configure.ac (W32_OBJ) [HAVE_W32]: Add w32cygwinx.o. (W32_LIBS) [CYGWIN]: Set equal to "-lkernel32" in non-w32 build. (W32_OBJ) [CYGWIN]: Set equal to "w32cygwinx.o" in non-w32 build. * etc/NEWS: Document the new battery support.
* | * src/keyboard.c: Consolidate code into make_lispy_eventStefan Monnier2018-01-121-197/+145
| | | | | | | | | | | | | | | | | | (clear_event): Change arg type. Adjust callers. (kbd_buffer_get_event): Move most special event handling to make_lispy_event. (make_lispy_event): Add missing cases, taken from kbd_buffer_get_event. <SAVE_SESSION_EVENT>: Change return value to match what used to be built in kbd_buffer_get_event.
* | * src/keyboard.c (kbd_buffer_get_event): Use 'switch' ...Stefan Monnier2018-01-121-22/+45
| | | | | | | | ...rather than a sequence of else-if.
* | Make Fzlib_decompress_region always call the change hooks in a balanced way.Alan Mackenzie2018-01-121-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This means there will be exactly one call of each of before- and after-change-functions, regardless of whether or not the decompression succeeds, and these calls will refer to corresponding buffer regions. src/decompress.c (struct decompress_unwind_data): add a new field, orig. (unwind_decompress): Use del_range_2 and update_compositions in place of del_range, to avoid unwanted change hook calls. Call signal_after_change for the failed case. (Fzlib_decompress_region): Call modify_txt for a before-change-functions. Set the new field orig of unwind_data to the region's start. Use del_range_2 and update_compositions in place of del_range to avoid unwanted change hook calls. Call signal_after_change for the successful case.
* | Unbreak the Cygwin-w32 buildKen Brown2018-01-111-1/+1
| | | | | | | | | | | | | | * src/keyboard.c (input_polling_used) [CYGWIN]: Restore. This was removed on Cygwin in the commit "On non-MS-Windows, omit unnecessary polling functions". But it is used in w32fns.c:x_make_frame_visible in the Cygwin-w32 build.
* | Merge from origin/emacs-26Paul Eggert2018-01-097-28/+71
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7668717d6f Merge from Gnulib 9e4d523427 * lisp/epg.el (epg-start-sign): Replace obsolete functions. 26c58f31a8 Small fix for erc-logging-enabled 34b41e3bc6 Quieten semantic normal usage e25f961e37 Avoid irrelevant hyperlink in doc string of 'epa-pinentry-... ec2636513c * doc/misc/tramp.texi (Remote processes): Mention gdb rest... 918a052a42 Query background for gnome terminal version 3.22 (Bug#29716) 1dfc27576a Make pixel-wise scrolling less laggy f92264fc2a Fix child frame placement issues (bug#29953) a5f718c4c5 ; * doc/lispref/text.texi (Change Hooks): Fix last change. e876f5f9fb Describe the precise interaction of complex primitives wit... 3a22097cf6 Fix valgrind report in call-interactively d5f1c87bfe * src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001) b8d74c4578 Fix mark-defun when there's no spaces between successive d... a377c652b5 Fix Dired display and operations on file names with raw bytes d9d6e8a04c ; Comments related to src/termcap.c f8a07fa6b1 Improve documentation of 'gdb-many-windows' f82400798e Fix failures in smerge-mode on MS-Windows
| * Fix child frame placement issues (bug#29953)Alan Third2018-01-062-19/+33
| | | | | | | | | | | | | | | | | | | | | | * src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS): (NS_PARENT_WINDOW_TOP_POS): Get the parent frame through the frame struct as invisible child windows are detached from their parents in NS. * src/nsterm.m (x_set_offset): Offscreen frames have `nil' screen value, so handle that gracefully. Child frames with negative left and top should be positioned relative to the bottom right of the parent frame.
| * Fix valgrind report in call-interactivelyEli Zaretskii2018-01-061-4/+17
| | | | | | | | | | * src/callint.c (Fcall_interactively): Don't try to access more bytes than are available in the interactive spec. (Bug#30004)
| * * src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001)Eli Zaretskii2018-01-061-1/+1
| |
| * Fix Dired display and operations on file names with raw bytesEli Zaretskii2018-01-061-3/+16
| | | | | | | | | | | | * src/coding.c (decode_coding): When flushing remaining raw bytes from multibyte text, copy 2-byte forms of eight-bit-* characters as single characters, not as 2 raw bytes. (Bug#29189)
| * ; Comments related to src/termcap.cGlenn Morris2018-01-052-1/+4
| |
* | Merge from origin/emacs-26Paul Eggert2018-01-091-6/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | d382d2bfc5 * etc/DEBUG (Getting control to the debugger): Fix grammar. 687af4c8e8 * lisp/vc/vc.el (vc-region-history): log-view-vc-fileset h... 43e2aafae3 Don't bind dframe events on load (Bug#29599) ab31bf3c5f * lisp/textmodes/picture.el (picture-mode-exit): Doc fix. ... ed44d92fa6 * lisp/textmodes/picture.el (picture-open-line): Doc fix. ... b87a772612 Fix description of 'emacs-internal' a5256da588 Update PROBLEMS with selection-related issues c59ecb005e New customization variable for python-mode indentation (Bu... 4e20c8f220 Fix menu keyboard shortcuts on macOS (Bug#29595) # Conflicts: # etc/NEWS
| * Fix menu keyboard shortcuts on macOS (Bug#29595)Alan Third2018-01-011-6/+15
| | | | | | | | | | | | * src/nsmenu.m (addItemWithWidgetValue)[NS_IMPL_COCOA]: It looks like macOS 10.13 no longer ignores long modifier strings, so explicitly use an empty string.
* | Add macOS character-palette (bug#29837)Alan Third2018-01-072-2/+23
| | | | | | | | | | | | * lisp/ns-win.el (ns-do-show-character-palette): New function. * src/nsfns.m (Sns_show_character_palette): New function. * src/nsterm.m (EmacsView::insertText): Handle NSAttributedString.
* | Allow inserting non-BMP charactersPhilipp Stephani2018-01-073-13/+43
| | | | | | | | | | | | | | | | * src/coding.h (UTF_16_HIGH_SURROGATE_P, UTF_16_LOW_SURROGATE_P): Move from coding.c and document. (surrogates_to_codepoint): New function. * src/nsterm.m (insertText:): Properly handle surrogate pairs.
* | Remove incorrect use of AUTO_STRINGPhilipp Stephani2018-01-071-4/+1
| | | | | | | | | | * src/lread.c (load_error_old_style_backquotes): Remove incorrect use of AUTO_STRING.
* | Improve error message for old-style backquotesPhilipp Stephani2018-01-071-2/+10
| | | | | | | | | | | | | | | | * src/lread.c (load_error_old_style_backquotes): Improve error message if no file is being loaded. * test/src/lread-tests.el (lread-tests--force-new-style-backquotes): Adapt test.
* | Add new variable to force new-style backquote interpretation.Philipp Stephani2018-01-071-5/+16
| | | | | | | | | | | | | | | | | | | | | | * src/lread.c (syms_of_lread): Add new variable 'force-new-style-backquotes'. (read_internal_start): Use it. * test/src/lread-tests.el (lread-tests--force-new-style-backquotes): New test. * etc/NEWS: Document new variable.
* | * fns.c (base64-decode-region): Add signal_after_change call for insertion.Alan Mackenzie2018-01-071-0/+1
| |
* | Revert "Fix command repetition with lexical-binding (Bug#29334)"Noam Postavsky2018-01-061-3/+1
| | | | | | | | | | | | | | | | | | It does not work with more complicated interactive forms, because byte-compile-lambda actually receives an intermediate form of code rather than valid lisp source (Bug#29988). * src/callint.c (Fcall_interactively): * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Revert previous change, and update commentary.
* | Allow setting tooltip colors in NS portAlan Third2018-01-063-0/+22
| | | | | | | | | | | | | | | | | | * src/nsfns.m (Fx_show_tip): Get face colors and apply them to the tooltip. * src/nsmenu.m (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New functions. * src/nsterm.h (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New function prototypes.
* | Make transpose-regions invoke before-change-functions only once.Alan Mackenzie2018-01-061-2/+1
| | | | | | | | | | | | | | | | | | In the case of two non-contiguous regions the same size, transpose-regions has been calling before-change-functions twice, once for each region. It now calls it just once, for the minimal region spanning both single regions. * src/editfns.c (Ftranspose_regions): Combine two calls of modify_text into one.
* | Fix command repetition with lexical-binding (Bug#29334)Noam Postavsky2018-01-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `call-interactively' relies on analyzing the source of `interactive' forms in order to preserve arguments like (region-end) in the command history, rather than just storing the resulting position. However, the byte-compiler does not preserve the source of the interactive form when lexical-binding is in effect, because `call-interactively' would evaluate the form with dynamic binding in that case. To fix this, change `call-interactively' so that it checks compiled functions for lexical-binding as well. Then the byte-compiler can preserve the source of interactive forms regardless of the value of lexical-binding. * src/callint.c (Fcall_interactively): Functions compiled with lexical-binding have their arglist encoded as an integer, use this to choose the right kind of binding for compiled functions too. * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Preserve the uncompiled form of the interactive form when lexical-binding is enabled too.
* | Fix .gdbinit to work with Lisp_WordPaul Eggert2018-01-021-3/+3
| | | | | | | | | | | | Problem reported by Stefan Monnier (Bug#29957). * src/.gdbinit (xgetptr, xgetint, xgettype): Cast Lisp_Word value to EMACS_INT, since it might be a pointer now.
* | Update copyright year to 2018Paul Eggert2018-01-012-2/+2
| | | | | | | | Run admin/update-copyright.
* | Merge from origin/emacs-26Paul Eggert2018-01-01215-230/+244
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63b04c11d5 Fix copyright years by hand 5c7dd8a783 Update copyright year to 2018 220a9ecba1 Merge from Gnulib 312c565566 Don't add empty keyboard macro to macro ring (Bug#24992) 39ca289a7a Allow customization of decoding of "man" command f8240815ea * etc/NEWS: Add security consideration note on passphrase ... 0c78822c70 Fix subtle problem with scroll-down when scroll-margin is ... acd289c5a4 Fix problems with indexing in User manual b240c7846b * lisp/help.el (describe-key): Only (copy-sequence elt) wh... e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846 81b1028b63 Improve documentation of 'inhibit-modification-hooks' and ... 7175496d7a Fix doc string of 'enable-recursive-minibuffers' 5b38406491 Fix documentation of delsel and of killing text # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
| * Update copyright year to 2018Paul Eggert2018-01-01215-215/+215
| | | | | | | | Run admin/update-copyright.
| * Fix subtle problem with scroll-down when scroll-margin is nonzeroEli Zaretskii2017-12-291-2/+3
| | | | | | | | | | | | | | | | * src/window.c (window_scroll_pixel_based): Account for scroll-margin when scrolling down, i.e. moving window-start towards the beginning of the buffer. Reported by zhang cc <ccsmile2008@outlook.com> in http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00894.html.
| * * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846Stefan Monnier2017-12-281-9/+11
| | | | | | | | | | Don't mess with the lock file when inhibit_modification_hooks is set, just like we do in prepare_to_modify_buffer_1.
| * Improve documentation of 'inhibit-modification-hooks' and friendsEli Zaretskii2017-12-282-3/+14
| | | | | | | | | | | | | | | | * src/buffer.c (Fset_buffer_modified_p) (Frestore_buffer_modified_p): Doc fixes. * src/insdel.c (syms_of_insdel) <inhibit-modification-hooks>: Document in the doc string that this variable also inhibits file locks and active region handling. (Bug#29846)
| * Fix doc string of 'enable-recursive-minibuffers'David Pathakjee2017-12-281-1/+1
| | | | | | | | | | | | | | * src/minibuf.c (syms_of_minibuf) <enable-recursive-minibuffers>: Doc fix. (Bug#29873) Copyright-paperwork-exempt: yes
* | Improve error reporting when serializing non-Unicode strings to JSONPhilipp Stephani2017-12-303-8/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/coding.c (utf8_string_p): New helper function. (syms_of_coding) <utf-8-unix>: Move from json.c. * src/json.c (json_check_utf8): New helper function. (lisp_to_json_toplevel_1, lisp_to_json): Use it. To save a bit of time, check for invalid UTF-8 strings only after encountering an error, since Jansson already rejects them. * test/src/json-tests.el (json-serialize/invalid-unicode): Adapt expected error symbol.
* | Merge from origin/emacs-26Glenn Morris2017-12-271-0/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd35804971 (origin/emacs-26) * doc/lispref/strings.texi (Case Convers... 89e257d71b * doc/misc/speedbar.texi (Top): Fix grammar. a31ab5ffb5 * lisp/subr.el (with-silent-modifications): Doc fixes. 2ebc8dc3b6 Fix curved quotes in printed manual e4a881b5cf Say that "gnus-cloud" is a parody name 13c59d0a83 More improvements for text.texi 7850b7620e Adjudicate review comments for the "Text" chapter of user ... d7d3b14a99 * lisp/url/url-http.el (url-http-wait-for-headers-change-f... f3819ad13e In C-h k <mouse-n>, alert user to existence of any matchin... 99054fbef9 * net/eww.el (eww): Handle URLs without host part. de89c0b641 Make C-h c/k S-mouse-1 display message for mouse-appearanc... 720ed0b533 Avoid crashes when ':eval' deletes our frame 9105c9aa34 Fix scrolling up in pixel-scroll.el b882d4ef11 Fix problems with ligatures in PDF version of ELisp manual 289dd53bb3 (elisp-flymake-byte-compile): Handle killed buffer in sent... cf36c82127 Avoid some overfull lines in PDF lispref b07b56a351 Avoid some overfull lines in PDF manual 6b3118f025 * doc/emacs/arevert-xtra.texi (Auto Reverting the Buffer M... 7ffb7b1e01 ; lispref nil/t markup fixes # Conflicts: # doc/emacs/text.texi
| * Avoid crashes when ':eval' deletes our frameEli Zaretskii2017-12-231-0/+8
| | | | | | | | | | | | * src/xdisp.c (display_mode_element): Signal an error if ':eval' somehow deletes the frame whose window we are redisplaying. (Bug#29726)
* | Fix MS-Windows build broken by recent changes in json.cChris Zheng2017-12-251-0/+3
| | | | | | | | | | | | | | | | * src/json.c [WINDOWSNT] (fn_json_object_get): Define. (init_json_functions) [WINDOWSNT]: Load json_object_get from DLL. (Bug#29848) Copyright-paperwork-exempt: yes
* | Make main_thread_id privatePaul Eggert2017-12-242-2/+1
| | | | | | | | | | * src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Now static.
* | On non-MS-Windows, omit unnecessary polling functionsPaul Eggert2017-12-241-4/+8
| | | | | | | | | | * src/keyboard.c (poll_for_input_1) [!CYGWIN && !DOS_NT]: Remove. (input_polling_used) [!DOS_NT]: Remove.
* | Accept alists when serializing JSONPhilipp Stephani2017-12-241-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/json.c (lisp_to_json_toplevel_1): Also accept alists representing objects. * src/json.c (Fjson_serialize): Update docstring. * test/src/json-tests.el (json-serialize/object): Add unit tests for serializing alists. * doc/lispref/text.texi (Parsing JSON): Document that serialization functions accept alists.
* | JSON serialization: reject duplicate keys in hashtablesPhilipp Stephani2017-12-241-1/+6
| | | | | | | | | | | | | | | | * src/json.c (lisp_to_json_toplevel_1): Reject duplicate keys in hashtables. * test/src/json-tests.el (json-serialize/object-with-duplicate-keys): Add unit tests.
* | Merge from origin/emacs-26Glenn Morris2017-12-221-2/+6
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 34fcfc5 (origin/emacs-26, emacs-26) * lisp/emacs-lisp/inline.el (defi... f7a62c2 Fix doc string of 'footnote-style-alist' c3b6742 Improve documentation of selecting windows 861d110 Improve documentation of records 22b3075 * etc/NEWS: Mention the removal of pinentry.el. (Bug#27445) 689526b Fix interactive spec of 'semantic-ia-show-variants' 90ca37f Fix documentation of 'mouse-drag-and-drop-region' and friends d60faf3 Improve detection of speller version in ispell.el a0e3b06 Document 'mouse-drag-and-drop-region' options and mention the... 164e84c Fix uses of 'nil' and 'non-nil' in manuals and a few more min... 798f07f Document that mode commands should be idempotent. ad2a47c ; * src/xdisp.c (extend_face_to_end_of_line): Fix last change. 88ddf53 Fontify a CPP construct correctly when a comment follows with... de7de9c Prevent infloop in redisplay on TTY frames 293720e Fix loss of documentation face in certain CC Mode doc comment... # Conflicts: # etc/NEWS # lisp/mail/footnote.el
| * ; * src/xdisp.c (extend_face_to_end_of_line): Fix last change.Eli Zaretskii2017-12-211-4/+6
| |
| * Prevent infloop in redisplay on TTY framesEli Zaretskii2017-12-211-0/+2
| | | | | | | | | | | | * src/xdisp.c (extend_face_to_end_of_line): Avoid infloop when filling up display margins with the default face's background. (Bug#29789)
* | JSON: improve some commentsPhilipp Stephani2017-12-221-5/+8
| | | | | | | | | | * src/json.c (json_make_string, json_build_string): Document why these functions are OK as-is.
* | Merge from origin/emacs-26Glenn Morris2017-12-201-11/+38
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3f4a3a (origin/emacs-26) Special-case %DUMBFW for GnuTLS between 3.2... c2ae057 Work around GnuTLS version issues with %DUMBFW (tiny change) 2f9d9ef ; Remove the mention of "plain C code" in the docstring as well aca827b Merge branch 'widen-less' into emacs-26 87548f5 ; Rephrase NEWS entry a bit da0d773 (emacs-26) ; * lisp/erc/erc.el: Update URL. 3a60515 * lisp/erc/erc.el (erc-shorten-server-name): Silence compiler... 471b6c1 ; Replace non-ascii quote characters in doc strings etc 7af7f5e Fix some more aliases to user options 79fb4b5 Fix some flymake aliases b9fbc03 (origin/widen-less) Widen in indent-for-tab-command in the no... 446faf3 Replace the mention of c-indent-defun with js-indent-line 7e9eef0 Consolidate 'widen' calls # Conflicts: # etc/NEWS # lisp/progmodes/flymake-proc.el
| * Special-case %DUMBFW for GnuTLS between 3.2.5 and 3.5.1Ted Zlatanov2017-12-201-0/+8
| | | | | | | | | | * src/gnutls.c: Introduce HAVE_GNUTLS_EXT__DUMBFW for GnuTLS >= 3.2.5. (Fgnutls_available_p): Use it.