summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove XEmacs compat code from binhex.elLars Ingebrigtsen2019-06-201-12/+8
| | | | | | * lisp/mail/binhex.el (binhex-insert-char): Remove XEmacs compat code and made into a function instead of a defalias. (binhex-decode-region-internal): Remove XEmacs compat code.
* Remove XEmacs compat code from uudecode.elLars Ingebrigtsen2019-06-201-6/+2
| | | | | * lisp/mail/uudecode.el (uudecode-decode-region-external) (uudecode-decode-region-internal): Remove XEmacs compat code.
* Remove XEmacs compat code from pascal.elLars Ingebrigtsen2019-06-201-3/+1
| | | | * lisp/progmodes/pascal.el (pascal-mark-defun): Remove XEmacs compat.
* Remove XEmacs support from cperl-modeLars Ingebrigtsen2019-06-201-104/+29
| | | | | | | | | | | * lisp/progmodes/cperl-mode.el (condition-case) (cperl-electric-parens-mark, cperl-del-back-ch) (cperl-do-not-fontify, cperl-mode, cperl-find-pods-heres) (cperl-write-tags, cperl-tags-hier-init, cperl-perldoc) (cperl-build-manpage): Remove XEmacs support. There's a lot of support code in here for older versions of Emacs that could be removed, too.
* Simplify stdout bufferingPaul Eggert2019-06-201-18/+1
| | | | | | * src/sysdep.c (_sobuf): Remove; we no longer need this microoptimization. (init_sys_modes): Simplify by assuming setvbuf.
* Remove no-longer-needed fflushes of stderrPaul Eggert2019-06-202-2/+0
| | | | | | * src/gmalloc.c (mabort) [GC_MCHECK && !__GNU_LIBRARY__]: * src/term.c (vfatal): Remove fflush (stderr) when it is now a no-op because newline automatically flushes stderr.
* Line-buffer stderrPaul Eggert2019-06-201-0/+6
| | | | | * src/sysdep.c (init_standard_fds) [!DOS_NT]: Use setvbuf to ensure stderr is line-buffered.
* Fix arbitrary INT_MAX limit on referrer reprPaul Eggert2019-06-201-1/+2
| | | | | * src/pdumper.c (print_paths_to_root_1): Don’t assume strlen (repr) < INT_MAX.
* Minor putc tweaksPaul Eggert2019-06-203-14/+8
| | | | | | | * src/emacs-module.c (module_abort): * src/xdisp.c (vmessage): Prefer fputc to putc, since speed isn’t crucial here. * src/region-cache.c (pp_cache) [ENABLE_CHECKING]: Simplify.
* Change font_put_extra value for property removal from Qnil to QunboundYAMAMOTO Mitsuharu2019-06-201-3/+7
| | | | | | * font.c (font_put_extra): If VAL is Qunbound, delete the slot for PROP from the list of extra properties. Previous value Qnil is valid as boolean. (font_clear_prop): Changed argument of font_put_extra for property removal.
* Fix failure of setting default face attribute in init script (Bug#36284)YAMAMOTO Mitsuharu2019-06-201-6/+2
| | | | | * src/xsettings.c (apply_xft_settings): Undo replacing all #ifdef HAVE_XFT with #if defined USE_CAIRO || defined HAVE_XFT for this function.
* * bookmark.el (bookmark-set-internal): Fix format string.Roland Winkler2019-06-191-1/+1
|
* Add file sorting options to find-dired and grep-find (bug#36110)Juri Linkov2019-06-203-15/+57
| | | | | | | | | | | | | * lisp/find-dired.el (find-ls-option-default-ls) (find-ls-option-default-exec, find-ls-option-default-xargs): New variables for values used for options of 'find-ls-option'. (find-ls-option): Use these variables for default values and options. (find-dired-refine-function): Refine :type. * lisp/progmodes/grep.el (grep-find-use-xargs): Use defcustom instead of defvar. Add new value 'gnu-sort'. (grep-compute-defaults): Handle new 'gnu-sort' option of 'grep-find-use-xargs'.
* Remove XEmacs and ancient Emacs compatibility from newst-backend.elLars Ingebrigtsen2019-06-191-39/+0
| | | | | * lisp/net/newst-backend.el: Remove compatibility with XEmacs and ancient Emacs versions.
* Doc string fixLars Ingebrigtsen2019-06-191-1/+1
| | | | | * lisp/calendar/timeclock.el (timeclock-completing-read): Fix doc string punctuation.
* Remove XEmacs compat code from timeclock.elLars Ingebrigtsen2019-06-191-10/+6
| | | | | | * lisp/calendar/timeclock.el (timeclock-completing-read) (timeclock-ask-for-project, timeclock-ask-for-reason): Remove XEmacs compat code.
* Remove more XEmacs compat code from epa.elLars Ingebrigtsen2019-06-191-2/+0
| | | | | * lisp/epa.el (epa-key-mode, epa-key-list-mode): Remove XEmacs compat code.
* Remove XEmacs compat code from calcLars Ingebrigtsen2019-06-194-59/+29
| | | | | | | | | | | * lisp/calc/calc.el (calc-read-key-sequence) (calcDigit-start, calc-read-key, calc-unread-command) (calc-clear-unread-commands): * lisp/calc/calc-misc.el (calc-dispatch-help): * lisp/calc/calc-help.el (calc-help-for-help) (calc-describe-key): * lisp/calc/calc-ext.el (calc-fancy-prefix, calc-user-key-map): Remove XEmacs compat code.
* Remove XEmacs compat code from savehist.elLars Ingebrigtsen2019-06-191-50/+15
| | | | | | | * lisp/savehist.el: (savehist-install, savehist-uninstall, savehist-save) (savehist-trim-history, savehist-printable) (savehist-minibuffer-hook): Remove XEmacs compat code.
* Remove XEmacs compat code from ps-printLars Ingebrigtsen2019-06-192-306/+73
| | | | | | | | | | | | * lisp/ps-print.el: (ps-print-color-p, ps-postscript-code-directory, ps-setup): * lisp/ps-def.el: (ps-mark-active-p, ps-face-foreground-name) (ps-face-background-name, ps-color-device, ps-color-values) (ps-face-bold-p, ps-face-italic-p, ps-face-strikeout-p) (ps-face-overline-p, ps-face-box-p) (ps-generate-postscript-with-faces1): Remove XEmacs compat code and some outdated Emacs compat code.
* Remove XEmacs compat code from epa.elLars Ingebrigtsen2019-06-191-14/+7
| | | | | | * lisp/epa.el (epa-key-list-mode, epa-key-mode) (epa--find-coding-system-for-mime-charset): Remove XEmacs compat code and comments.
* Remove XEmacs compat code from dframe.elLars Ingebrigtsen2019-06-191-246/+84
| | | | | | | | | | * lisp/dframe.el (dframe-update-speed, dframe-update-keymap) (dframe-frame-mode, dframe-detach, dframe-set-timer-internal) (dframe-popup-kludge, dframe-mouse-event-p) (dframe-track-mouse, dframe-help-echo, dframe-mouse-set-point) (dframe-double-click, dframe-temp-buffer-show-function) (dframe-hack-buffer-menu, dframe-mouse-hscroll): Remove XEmacs compat code (and some ancient Emacs compat code).
* Remove XEmacs compat code from ansi-color.elLars Ingebrigtsen2019-06-191-43/+26
| | | | | | * lisp/ansi-color.el (ansi-color-apply-overlay-face) (ansi-color-make-face, ansi-color-make-extent) (ansi-color-set-extent-face): Remove XEmacs compat code.
* Update CC Mode's version number to 5.34Alan Mackenzie2019-06-192-3/+3
| | | | | * doc/misc/cc-mode.texi (top level, "Introduction"), lisp/progmodes/cc-defs.el (c-version): Update version number to 5.34.
* Update documentation of font backends on MS-WindowsEli Zaretskii2019-06-191-0/+9
| | | | | * doc/emacs/msdos.texi (Windows Fonts): Update the documentation of requesting specific font backends.
* Fix typo in previous erc.el changeLars Ingebrigtsen2019-06-191-18/+18
| | | | * lisp/erc/erc.el (erc-send-input): Fix typo in previous checkin.
* Use add/remove-hook on erc-pre-send-functionsLars Ingebrigtsen2019-06-192-6/+4
| | | | | | * lisp/erc/erc-goodies.el (noncommands): Ditto. * lisp/erc/erc-ring.el (ring): Use add/remove-hook.
* Move around defgeneric/defmethods in eieioLars Ingebrigtsen2019-06-192-17/+19
| | | | | | | * lisp/emacs-lisp/eieio.el (object-print): * lisp/emacs-lisp/eieio-base.el (eieio-object-set-name-string): Move the defgeneric before the defmethod, because that makes more sense.
* Fix previous change to erc (where commands like /me wouldn't be sent)Lars Ingebrigtsen2019-06-193-30/+40
| | | | | | | | | | | * lisp/erc/erc-ring.el (erc-add-to-input-ring): * lisp/erc/erc-goodies.el (erc-send-distinguish-noncommands): Pass in a erc-input structure instead of a simple string. * lisp/erc/erc.el (erc-pre-send-functions): Document the new argument to the filter functions. (erc-send-input): Use the new structure to allow the filter functions to alter all three things: The string, whether to insert the string, and whether to send the string.
* Don't have erc-goodies and erc-ring register functions multiple timesLars Ingebrigtsen2019-06-192-2/+2
| | | | | | | * lisp/erc/erc-goodies.el (noncommands): Don't register functions twice. * lisp/erc/erc-ring.el (ring): Ditto.
* (with-suppressed-warnings): Make it apply to macro-expansion as wellStefan Monnier2019-06-191-20/+14
| | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Change with-suppressed-warnings so it also affects the macro-expansion of the body.
* Rename function in completion.el to use completion- prefixesLars Ingebrigtsen2019-06-191-9/+16
| | | | | | | | | | * lisp/completion.el (locate-completion-entry) (completion-locate-entry, locate-completion-entry-retry) (completion-locate-entry-retry, locate-completion-db-error): Rename to use a completion- prefix and make the old names obsolete aliases. (add-completion-to-head, delete-completion): Use the new function names.
* * lisp/textmodes/page-ext.el: Further cleanupStefan Monnier2019-06-191-39/+36
| | | | | | | | | | (pages--ctl-x-ctl-p-map): Rename from ctl-x-ctl-p-map. Move initialization into declaration. (pages-ctl-x-ctl-p-prefix): Rename from ctl-x-ctl-p-prefix. (sort-subr): Remove redundant autoload. (pages-set-delimiter): Use explicit `interactively` arg instead of `called-interactively`. Use `setq-local`. (pages-directory-for-addresses): Use `setq-local`.
* Fix compilation warning in pcmpl-gnu.elLars Ingebrigtsen2019-06-191-147/+145
| | | | | | | | * lisp/pcmpl-gnu.el (pcomplete/tar): Remove binding of pcomplete-suffix-list, because it's not consulted in any of the functions called here, and has had no effect since 2011. If we want to support not inserting a space after the = sign, we have to implement that, but it's not currently done.
* Revert "Fix one of the tags/xref warnings in viper-ex.el"Lars Ingebrigtsen2019-06-191-1/+1
| | | | | | This reverts commit 4f2f95049738be97df8647705a8fc05a029ed244. We can't mix calls to find-tag and xref-find-definitions
* Fix up the function/variable names in page-ext.elLars Ingebrigtsen2019-06-191-22/+29
| | | | | | | | | | | * lisp/textmodes/page-ext.el (previous-page) (search-pages) (sort-pages-in-region) (sort-pages-buffer) (pages-sort-buffer) (pages-set-delimiter): Rename to have pages- prefixes and make the previous name into aliases for the new names. (ctl-x-ctl-p-map): Use the new command names.
* Touch up the OKURI-NASI progress reportingLars Ingebrigtsen2019-06-191-14/+17
| | | | | | | | * lisp/international/ja-dic-cnv.el (skkdic-convert-okuri-ari) (skkdic-convert-postfix, skkdic-convert-prefix) (skkdic-collect-okuri-nasi): Use INFO progress reporting. (skkdic-set-okuri-nasi): Use the progress reporter instead of a per-1000 output.
* Tweak progess reporting in finder-compile-keywordsLars Ingebrigtsen2019-06-191-63/+70
| | | | | * lisp/finder.el (finder-compile-keywords): Use progress reporter to report the processing.
* Allow specifying the expected number of shift/reduce conflictsLars Ingebrigtsen2019-06-195-16/+57
| | | | | | | | | | | | | | | | | | * admin/grammars/grammar.wy: Add %expectedconflicts. * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--keyword-table): Ditto. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. (semantic-grammar-insert-defconst-with-eval): New function. (semantic-grammar-create-package): Output the number of expected shift/reduce conflicts. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Don't output the warning if the number of shift/reduce conflicts is expected. (wisent-expected-conflicts): Made obsolete.
* Tweak progress reporting in update-directory-autoloadsLars Ingebrigtsen2019-06-191-6/+8
| | | | | * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Use progress reporter so say what percentage the progress is at.
* Compile any subsequence of `cond' clauses to switch (bug#36139)Mattias Engdegård2019-06-192-181/+176
| | | | | | | | | | | | | | | | | | | | A single `cond' form can how be compiled to any number of switch ops, optionally interspersed with non-switch conditions. Previously, switch ops would only be used for whole `cond' forms containing no other tests. * lisp/emacs-lisp/bytecomp.el (byte-compile--cond-vars): Rename from `byte-compile-cond-vars'. (byte-compile--default-val): Remove. (byte-compile--cond-switch-prefix): Replace `byte-compile-cond-jump-table-info'; now also returns trailing non-switch clauses. (byte-compile-cond-jump-table): New arguments; no longer compiles the default case. (byte-compile-cond): Look for and compile switches at any place in the list of clauses. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test expression.
* Compile cond with heterogeneous tests into switch (bug#36139)Mattias Engdegård2019-06-192-13/+41
| | | | | | | | | | Allow any mixture of `eq', `eql' and `equal', `memq', `memql' and `member' in a switch-like `cond' to be compiled into a single switch. * lisp/emacs-lisp/bytecomp.el (byte-compile--common-test): New. (byte-compile-cond-jump-table-info): Use most specific common test. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases for multi-value clause cond forms.
* Tighter pcase or-pattern member function selection (bug#36139)Mattias Engdegård2019-06-192-9/+12
| | | | | | | | | * lisp/emacs-lisp/pcase.el (pcase--u1): Use the most specific of `memq', `memql' and `member' in or-patterns with constant cases. This improves performance and may help the byte-code compiler generate a switch. * test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-member): Add mixed-type or-pattern test cases.
* Compile list member functions in cond to switch (bug#36139)Mattias Engdegård2019-06-192-37/+65
| | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info): Expand `memq', `memql' and `member' to their corresponding equality tests. (byte-compile-cond-jump-table): Cases now have multiple values. * lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1) (byte-optimize-lapcode): Don't assume switch hash tables to be injective.
* Fix oversights of "support X core font driver on cairo" changeYAMAMOTO Mitsuharu2019-06-192-2/+2
| | | | | * src/Makefile.in (FONT_OBJ): Fix comment for USE_CAIRO. * src/xfns.c (x_create_tip_frame) [USE_CAIRO]: Register xfont_driver.
* --with-cairo is no longer experimentalPaul Eggert2019-06-192-1/+5
| | | | | | | Suggested by YAMAMOTO Mitsuharu in: https://lists.gnu.org/r/emacs-devel/2019-06/msg00686.html * configure.ac: Do not say --with-cairo is experimental. * etc/NEWS: Say that --with-cairo is no longer experimental.
* Disable lexical-binding in ediffGlenn Morris2019-06-1810-10/+10
| | | | | | | | Since it breaks the thing (bug#36157, bug#36281). * lisp/vc/ediff-diff.el, lisp/vc/ediff-help.el, lisp/vc/ediff-hook.el: * lisp/vc/ediff-init.el, lisp/vc/ediff-merg.el, lisp/vc/ediff-mult.el: * lisp/vc/ediff-ptch.el, lisp/vc/ediff-vers.el, lisp/vc/ediff-wind.el: * lisp/vc/ediff.el: Set lexical-binding to nil.
* Fix the handling of font backend supersedence on MS-WindowsEli Zaretskii2019-06-183-4/+5
| | | | | | | | | | | * src/w32font.c (syms_of_w32font): Don't make the Uniscribe font backend "superceded" here, ... * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): ... make it "superceded" here, only if the HarfBuzz DLL was successfully loaded. This is because Emacs compiled with HarfBuzz support might run on a system without the DLL. * src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Register the HarfBuzz font backend only if it is available.
* Revert "Add a mechanism to specify expected shift/reduce .wy conflicts"Lars Ingebrigtsen2019-06-183-20/+8
| | | | | | This reverts commit f21ec24524c705e18674a2e9e4db37b11fa3ebab. *sigh* Revert again because this created a bootstrap problem in a different part of the process.
* Add a mechanism to specify expected shift/reduce .wy conflictsLars Ingebrigtsen2019-06-183-8/+20
| | | | | | | | | | | | * admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts.