summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update NS XWidget support news.scratch/nsxwidgetAlan Third2019-06-231-0/+2
| | | | * etc/NEWS: Add support for XWidgets.
* Add xwidget webkit support for macOS CocoaSungbin Jo2019-06-2310-96/+1275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Allow xwidgets to build under Cocoa. * lisp/xwidget.el (xwidget-webkit-split-below): (xwidget-webkit-split-right): New functions. (xwidget-webkit-mode-map): Add new keybindings. (xwidget-webkit-scroll-up-line): (xwidget-webkit-scroll-down-line): (xwidget-webkit-scroll-up): (xwidget-webkit-scroll-down): Add ability to scroll specific amounts. (xwidget-webkit-scroll-line-height): New variable. (xwidget-webkit-scroll-bottom): Change clientHeight to scrollHeight. (xwidget-event-handler): Remove message. (xwidget-webkit-scroll-backward): Modify some window handling. (xwidget-webkit-mode): Add new functions. (xwidget-webkit-download-dir): (xwidget-webkit-save-as-file): Add support for downloading files. (xwidget-webkit-bookmark-jump-new-session): New function. (xwidget-webkit-bookmark-make-record): Modify bookmark loading. (isearch-mode-hook): (xwidget-webkit-search-js): (xwidget-webkit-isearch-last-length): (xwidget-webkit-search-fun-function): Add search within xwidget. (xwidget-webkit-insert-string): Use lists instead of vectors. (xwidget-window-inside-pixel-width): (xwidget-window-inside-pixel-height): New functions (xwidget-webkit-adjust-size-to-window): Use new functions. (xwidget-webkit-new-session): Modify session default. (xwidget-webkit-show-element): (xwidget-webkit-end-edit-textarea): (xwidget-webkit-back): Use functions instead of explicit JS scripts. (xwidget-webkit-current-url-message-kill): (xwidget-webkit-forward): New function. (xwidget-webkit-copy-selection-as-kill): Remove unneeded lambda. * nextstep/templates/Info.plist.in: Modify Emacs's system permissions. * src/Makefile.in (SOME_MACHINE_OBJECTS): Add nsxwidget.o. * src/emacs.c (main): Move call to syms_of_xwidget. * src/nsterm.m (ns_note_mouse_movement): Handle the dragging case differently. (ns_draw_glyph_string): Handle xwidget drawing. ([EmacsView mouseMoved:]): Handle dragging case. * src/nsxwidget.h: * src/nsxwidget.m: New files. * src/xwidget.c (xwidget_init_view): (Fxwidget_webkit_zoom): (Fxwidget_resize): (Fxwidget_size_request): (Fdelete_xwidget_view): (kill_buffer_xwidgets): (Fmake_xwidget): Separate out GTK and NS code. (xwidget_hide_view): Replace printf with message. (xwidget_is_web_view): (Fxwidget_webkit_uri): (Fxwidget_webkit_title): (Fxwidget_webkit_goto_history): (store_xwidget_response_callback_event): New function. (x_draw_xwidget_glyph_string): NS xwidgets only support one view. Separate out GTK and NS code. (WEBKIT_FN_INIT): Use new function. (Fxwidget_webkit_execute_script): Something to do with detecting a function. (syms_of_xwidget): Define new functions. (xwidget_end_redisplay): Handle NS xwidget peculiarities. * src/xwidget.h: define new functions and add NS includes.
* Document what the `t' value for HIST in `read-string' meansLars Ingebrigtsen2019-06-231-2/+6
| | | | | | * src/minibuf.c (syms_of_minibuf): Say that `t' means "no history" (bug#36324). (Fread_from_minibuffer): Say the same for HIST.
* Split up and add tests for two page.el functionsSimen Heggestøyl2019-06-232-26/+52
| | | | | | | | | | | | * lisp/textmodes/page.el (page--count-lines-page): New function extracted from `count-lines-page'. (count-lines-page): Extract main logic into `page--count-lines-page'. (page--what-page); New function extracted from `what-page'. (what-page): Extract main logic into `page--what-page'. * test/lisp/textmodes/page-tests.el (page-tests-count-lines-page) (page-tests-what-page): New tests for `page--count-lines-page' and `page--what-page'. (Bug#36009)
* (with-suppressed-warnings): Also suppress warnings when not byte-compilingStefan Monnier2019-06-221-5/+17
| | | | | * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Bind byte-compile--suppressed-warnings when possible.
* Fix defining inverse abbrevs on previous words (Bug#36243)Allen Li2019-06-222-0/+29
| | | | | | | | * lisp/abbrev.el (inverse-add-abbrev): Skip trailing nonword characters when defining abbrev. * test/lisp/abbrev-tests.el (abbrev-edit-save-to-file-test): Add regression tests.
* Fix python docstring auto-fill (Bug#36056)Noam Postavsky2019-06-222-0/+19
| | | | | | | | | | | * lisp/progmodes/python.el (python-mode): Set fill-indent-according-to-mode locally to t. This lets auto-fill do the right thing when auto-filling inside a docstring. The default was to nil on 2001-11-25 "(fill-indent-according-to-mode): Default to nil" with the comment that it "screws up CC-mode's filling tricks". But presumably it shouldn't be a problem for python-mode. * test/lisp/progmodes/python-tests.el (python-auto-fill-docstring): New test.
* Make rcirc parsing more RFC2812 compliant (Bug#36233)Noam Postavsky2019-06-222-8/+71
| | | | | | | | Do continue to allow multiple spaces between arguments, even though that is technically not allowed by the RFC. * lisp/net/rcirc.el (rcirc-process-server-response-1): Fix parsing of arguments which contain colons. * test/lisp/net/rcirc-tests.el: New test.
* * lisp/net/rcirc.el (rcirc-prompt-for-encryption): Simplify.Noam Postavsky2019-06-221-5/+4
|
* Bring macuvs.h back under Git controlPaul Eggert2019-06-224-7/+9234
| | | | | | | | | * admin/unidata/Makefile.in (maintainer-clean): Instead of removing macuvs.h here ... (extraclean): ... Remove it here. * admin/unidata/uvs.el (uvs-print-table-ivd): Add to comment explaining why macuvs.h is in Git. * src/macuvs.h: Regenerate and re-add to Git.
* Respect case-insensite DelSp flow-fill parameterLars Ingebrigtsen2019-06-221-3/+3
| | | | | * lisp/gnus/mm-view.el (mm-inline-text): The DelSp parameter is case-insentitive, so make it work then it's "Yes" (bug#26775).
* (nnir-notmuch-remove-prefix): Respect MAILDIRAndreas Schwab2019-06-221-2/+3
| | | | | * lisp/gnus/nnir.el (nnir-notmuch-remove-prefix): Respect MAILDIR and regexp-quote the result (bug#34940).
* Use plain report-emacs-bug instead of gnus-bugLars Ingebrigtsen2019-06-222-69/+6
| | | | | | | | * doc/misc/gnus.texi (Compatibility): Remove mention of deprecated variable. * lisp/gnus/gnus-msg.el (gnus-bug): Just use `report-emacs-bug'. (gnus-bug-kill-buffer): Remove. (gnus-bug-create-help-buffer, gnus-bug-message): Remove.
* Export Gnus calendar events to org even if they have no descriptionRobert Pluim2019-06-221-8/+7
| | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry): Don't ignore events that have no description.
* Make ftcr font backend driver more consistent with xftYAMAMOTO Mitsuharu2019-06-221-0/+12
| | | | | * src/ftcrfont.c: Include charset.h. (ftcrfont_has_char): Import font adstyle related code from ftfont_has_char.
* ; * lisp/select.el (xselect--encode-string): Fix a thinko.Eli Zaretskii2019-06-221-1/+1
|
* Remove XEmacs compat code from savehist.el (reworked)Lars Ingebrigtsen2019-06-221-48/+18
| | | | | | | | * lisp/savehist.el (savehist-coding-system, savehist-install) (savehist-uninstall, savehist-save): Remove XEmacs compat code. (savehist-trim-history): Made obsolete. (savehist-minibuffer-hook): Update comment to reflect the t value of HISTORY in `read-string'.
* epg: Use unibyte string to decode percent escapesChristophe Troestler2019-06-221-10/+9
| | | | | | | | | * lisp/epg.el (epg--status-USERID_HINT, epg--status-*SIG) (epg--status-IMPORTED): Call epg--decode-percent-escape-as-utf-8. (epg--decode-percent-escape): Convert STRING to unibyte. (epg--decode-percent-escape-as-utf-8): New function. (Bug#36098) Copyright-paperwork-exempt: yes
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2019-06-221-7/+13
|\
| * Update epg.el algorithm id-name association listsTeemu Likonen2019-06-221-7/+13
| | | | | | | | | | | | * lisp/epg.el (epg-pubkey-algorithm-alist) (epg-digest-algorithm-alist, epg-compress-algorithm-alist): Add new identifiers from openpgpdefs.h.
* | Add tests for mail/flow-fill.elStefan Kangas2019-06-222-65/+98
| | | | | | | | | | | | * test/lisp/mail/flow-fill-tests.el: New file. * lisp/mail/flow-fill.el (fill-flowed-encode-tests) (fill-flowed-test): Make obsolete. (Bug#36174)
* | Make toolbar show keyboard equivalents in its tooltipsStefan Kangas2019-06-223-2/+16
|/ | | | | | | * src/keyboard.c (parse_tool_bar_item): Add equivalent key binding to the tooltip string of toolbar buttons. * etc/NEWS: Announce it. * etc/TODO: Remove its entry. (Bug#36156)
* ; * etc/NEWS: Mention the last change in NEWS.Eli Zaretskii2019-06-221-0/+5
|
* Move mantemp.el to obsolete/Stefan Kangas2019-06-223-7/+6
| | | | | | * lisp/progmodes/mantemp.el: Move to obsolete/. (bug#34789) * doc/emacs/ack.texi (Acknowledgments): Remove obsolete library mantemp.el.
* Fix an off-by-one error in assertionEli Zaretskii2019-06-221-1/+1
| | | | | | * src/fileio.c (Fexpand_file_name): Fix off-by-one error in an assertion. This avoids assertion violations when the home directory is an empty string for some reason. (Bug#36363)
* Correct and update the mapping of LaTeX encodingsEli Zaretskii2019-06-221-2/+2
| | | | | | * lisp/international/latexenc.el (latex-inputenc-coding-alist): Fix the association of latin5. (Bug#36253) Uncomment latin10 and map it to iso-8859-16.
* Avoid using string-make-unibyte in select.elEli Zaretskii2019-06-221-8/+14
| | | | | | | * lisp/select.el (selection-coding-system): Doc fix. (xselect--encode-string): For C_STRING, if the text is not already unibyte, use encode-coding-string instead of string-make-multibyte to make it unibyte.
* Make ftcr font backend driver more consistent with xftYAMAMOTO Mitsuharu2019-06-221-20/+16
| | | | | * src/ftcrfont.c (ftcrfont_open): Use metrics of glyph ID 0 if there is no glyph for an ASCII printable.
* * src/font.c (Ffont_xlfd_name): Don't use strcpy for overlapping strings.YAMAMOTO Mitsuharu2019-06-221-1/+1
|
* Fix default build-from-Git on macOSPaul Eggert2019-06-211-1/+4
| | | | | * configure.ac (NS_IMPL_COCOA): Do not default to "yes" if src/macuvs.h is absent, which is possible in a build from Git.
* Remove src/macuvs.h from Git repositoryPaul Eggert2019-06-212-9214/+3
| | | | | | | | It can be generated automatically and easily during a normal bootstrap, so there’s no need to keep it in the repository. * admin/unidata/Makefile.in (maintainer-clean): Behave like extraclean and remove macuvs.h etc. * src/macuvs.h: Remove.
* Revert "Remove XEmacs compat code from savehist.el"Lars Ingebrigtsen2019-06-211-15/+50
| | | | | | This reverts commit a97ba6eb305c9db8641c0e65748907cd53dbfa5e. According to bug#36324, this broke savehist.el
* * lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsoleteStefan Monnier2019-06-2114-29/+12
| | | | | | | | | | | | See bug#11649 for an example problem, and emacs-devel discussion «Prickliness of the "invalid byte code" stuff». * lisp/wid-edit.el, lisp/wdired.el, lisp/vc/pcvs-util.el: * lisp/progmodes/executable.el, lisp/mail/sendmail.el: * lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el: * lisp/emacs-lisp/cl-lib.el, lisp/emacs-lisp/cl-extra.el: * lisp/dired-x.el, lisp/dired-aux.el, lisp/calendar/calendar.el: Don't use byte-compile-dynamic any more.
* * lisp/vc/ediff-*.el: Use lexical-binding, plus misc cleanupStefan Monnier2019-06-2111-457/+306
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-enable lexical-binding in ediff. For that, change ediff-find-file so as not to rely on dynamic scoping in its calling convention. * lisp/vc/ediff-diff.el: Move `provide` to the end. Remove redundant :group. (ediff-exec-process): Disregard current directory. (ediff-forward-word-function): Use defvar-local. * lisp/vc/ediff-help.el (ediff-set-help-message): Use functionp. * lisp/vc/ediff-hook.el (menu-bar-ediff-misc-menu): Make a toggle, as in the XEmacs menu. * lisp/vc/ediff-init.el (ediff-defvar-local): Add `doc-string` prop. (ediff-check-version): Delete function, unused. * lisp/vc/ediff-mult.el: Move `provide` to the end. Remove redundant :groups. (ediff-dir-diffs-buffer-map): Move initialization into declaration. (ediff-meta-mode): Use define-derived-mode. (ediff-intersect-directories): Remove `comparison-func`, unused. (ediff-prepare-meta-buffer): Fix use of `startup-hooks`. * lisp/vc/ediff-ptch.el: Move `provide` to the end. * lisp/vc/ediff-util.el (ediff-add-to-history): Use add-to-history instead. * lisp/vc/ediff-vers.el (ediff-vc-internal, ediff-vc-merge-internal): Use push and closures. * lisp/vc/ediff-wind.el: Remove redundant :groups. * lisp/vc/ediff.el: Move `provide` to the end. Remove redundant :groups. (ediff--magic-file-name, ediff--startup-hook): New vars. (ediff-find-file): Change calling convention so as not to use symbols as value cells. (ediff--buffer-file-name): New function. (ediff-files-internal): Adjust to new calling convention of ediff-find-file. (ediff-directories-internal, ediff-directory-revisions-internal) (ediff-regions-internal): Use push and closures.
* * src/xterm.c (x_update_end) [USE_CAIRO]: Flush non-double-buffered surface.YAMAMOTO Mitsuharu2019-06-211-0/+9
|
* Fix blank tooltips on cairo (Bug#36298)YAMAMOTO Mitsuharu2019-06-213-1/+6
| | | | | | * src/xterm.h (x_cr_update_surface_desired_size) [USE_CAIRO]: Add extern. * src/xterm.c (x_cr_update_surface_desired_size) [USE_CAIRO]: Make non-static. * src/xfns.c (Fx_show_tip) [USE_CAIRO]: Call x_cr_update_surface_desired_size.
* Fix broken display by frame maximization on cairo (Bug#23925)YAMAMOTO Mitsuharu2019-06-211-1/+1
| | | | | * src/xterm.c (handle_one_xevent) [USE_CAIRO && USE_GTK]: Make calls to x_cr_update_surface_desired_size coincide with those to xg_frame_resized.
* * lisp/vc/vc-dir.el (vc-dir-search): Avoid `eval`.Stefan Monnier2019-06-201-1/+3
|
* Fix extraclean in a different way for info+lib/sysPaul Eggert2019-06-202-0/+2
| | | | | | | * Makefile.in (extraclean): * lib/Makefile.in (extraclean): Use rmdir but suppress any error indication. That way, ‘make extraclean’ will remove the directory if it’s empty, and successfully do nothing otherwise.
* Fix aborts when the value of a display property causes redisplayEli Zaretskii2019-06-201-0/+9
| | | | | * src/xdisp.c (handle_single_display_spec): Protect the bidi cache from evaluation that triggers redisplay. (Bug#36312)
* Leave the emtpy info and lib/sys in extracleanLars Ingebrigtsen2019-06-202-2/+0
| | | | | | | * lib/Makefile.in: Ditto. * Makefile.in (extraclean): Don't use GNU-specific rmdir; just leave the empty directory be.
* Simplify lib-src version printingPaul Eggert2019-06-204-34/+19
| | | | | | | | | | | | | | | | * lib-src/Makefile.in (etags_cflags): Remove. All uses replaced by a simple ‘-o $@’. (ebrowse${EXEEXT}, emacsclient${EXEEXT}, emacsclientw${EXEEXT}): Omit -DVERSION= option. * lib-src/ebrowse.c (VERSION): * lib-src/emacsclient.c (VERSION): * lib-src/etags.c (EMACS_NAME, VERSION): Remove. All uses replaced by PACKAGE_NAME and PACKAGE_VERSION. * lib-src/ebrowse.c (version): * lib-src/etags.c (print_version): Use fputs to output the version info, since that’s fputs_unlocked. * lib-src/etags.c (PROGRAM_NAME): New macro. (print_version): Use it.
* Make extraclean return tree to pristine state by deleting moreLars Ingebrigtsen2019-06-206-8/+17
| | | | | | | | | | | | | | | | | * src/Makefile.in (extraclean): Remove TAGS and config.in. * Makefile.in (extraclean): Remove info, configure and emacsver.texi in extraclean. * admin/unidata/Makefile.in (extraclean): Make it depend on distclean to remove .elc files. * leim/Makefile.in (extraclean): Depend on bootstrap-clean to remove generated .el files. * lib/Makefile.in (extraclean): Added target to remove sys directory and run distclean. * lisp/Makefile.in (extraclean): Also remove loaddefs*.el~ files.
* Add doc strings to the ielm * variablesLars Ingebrigtsen2019-06-201-3/+6
| | | | * lisp/ielm.el: (*, **, ***): Add doc strings.
* Don't define *, ** and ** in ielm as real variablesLars Ingebrigtsen2019-06-201-26/+15
| | | | | | | * lisp/ielm.el: (*, **, ***): Change defvars into compiler directives instead of real variable definitions to avoid polluting the global Emacs namespace. (*1, *2, *3): Ditto.
* Fix compilation warning in esh-modeLars Ingebrigtsen2019-06-201-5/+3
| | | | | | | * lisp/eshell/esh-mode.el (eshell-mode): Remove special binding for M-. in eshell buffers: The comment indicates that this is outdated code. (eshell-find-tag): Make obsolete.
* Fix compilation warning in viper-exp involving tagsLars Ingebrigtsen2019-06-201-2/+4
| | | | | * lisp/emulation/viper-ex.el (ex-tag): Use xref/next-error instead of the deprecated tags functions.
* Declare semantic-*overlay* aliases obsoleteLars Ingebrigtsen2019-06-201-19/+23
| | | | | * lisp/cedet/semantic/fw.el: Declare all the semantic-*overlay* aliases obsolete.
* Throughout cedet, don't use semantic-overlay-* compat aliasesLars Ingebrigtsen2019-06-2022-237/+227
|
* Remove XEmacs compat code from cedetLars Ingebrigtsen2019-06-2012-500/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/srecode/mode.el (srecode-menu-bar): * lisp/cedet/semantic/wisent/comp.el (wisent-debug-flag) (wisent-print-results): * lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-indent-string) (semantic-stickyfunc-header-line-format) (semantic-highlight-func-mode-map): * lisp/cedet/semantic/symref/list.el (semantic-symref-list-menu-entries): * lisp/cedet/semantic/idle.el () (semantic-idle-breadcrumbs-popup-menu): * lisp/cedet/semantic/grammar.el (semantic-grammar-item-value) (semantic-grammar-create-package) (semantic-grammar-batch-build-packages) (semantic-grammar-setup-menu): * lisp/cedet/semantic/fw.el (semantic-overlay-live-p) (semantic-event-window, semantic-make-local-hook) (semantic-run-mode-hooks, semantic-subst-char-in-string) (semantic-menu-item, semantic-find-file-noselect): * lisp/cedet/semantic/format.el (semantic-format-face-alist) (semantic--format-colorize-merge-text): * lisp/cedet/semantic/decorate/include.el () (semantic-decoration-on-include-menu) (semantic-decoration-on-unknown-include-menu) (semantic-decoration-on-fileless-include-menu) (semantic-decoration-on-unparsed-include-menu): * lisp/cedet/semantic/decorate.el (semantic-set-tag-read-only) (semantic-tag-read-only-p): * lisp/cedet/mode-local.el (activate-mode-local-bindings): * lisp/cedet/data-debug.el (data-debug-overlay-properties): Remove XEmacs compat code.