summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove compat code from allout.elLars Ingebrigtsen2020-08-111-6/+4
| | | | | * lisp/allout.el: (allout-process-exposed): Make allout-region-active-p an obsolete alias, and adjust callers.
* Remove compat code in prolog.elLars Ingebrigtsen2020-08-111-4/+0
| | | | * lisp/progmodes/prolog.el (use-region-p): Remove compat code.
* Slight allout.el clean-upLars Ingebrigtsen2020-08-111-9/+5
| | | | | * lisp/allout.el (allout-end-of-line, allout-mark-active-p): Make allout-mark-active-p obsolete, and adjust callers.
* Minor idlwave clean upLars Ingebrigtsen2020-08-112-7/+3
| | | | | | | | * lisp/progmodes/idlw-shell.el (idlwave-shell-mouse-examine) (idlwave-shell-print): Adjust callers. * lisp/progmodes/idlwave.el (idlwave-region-active-p): Make into obsolete alias.
* Slight gnus-util clean-upLars Ingebrigtsen2020-08-111-3/+1
| | | | | * lisp/gnus/gnus-util.el (gnus-message-with-timestamp-1): messages-buffer is always defined.
* Slight cleanup in calc-yankLars Ingebrigtsen2020-08-111-3/+1
| | | | * lisp/calc/calc-yank.el (calc-yank): Remove compat code.
* Unbreak build with --enable-checking=allPhilipp Stephani2020-08-111-1/+1
| | | | | | | | | Commit 16a16645f524c62f7906036b0e383e4247b58de7 has only changed a comment in ‘struct Lisp_Hash_Table’, so the portable dumper doesn’t need to be adapted. * src/pdumper.c (dump_hash_table): Update hash code for ‘struct Lisp_Hash_Table’.
* Use Gnulib inttypes modulePaul Eggert2020-08-113-1/+4
| | | | | | Needed for platforms like MinGW that don’t support C99 PRIdPTR. * admin/merge-gnulib (GNULIB_MODULES): Add inttypes. * m4/gnulib-comp.m4: Regenerate.
* Update from GnulibPaul Eggert2020-08-1120-75/+137
| | | | | | | | | | | | | | | | | | | | | | | | This incorporates: 2020-08-11 Use expression statements also on clang 2020-08-10 Use many __attribute__s with clang 2020-08-09 Use attribute __aligned__ with clang 2020-08-09 Use __alignof__ with clang 2020-08-09 ignore-value: Simplify on clang 2020-08-09 Use __typeof__ with clang 2020-08-09 intprops: Fix typo in comment 2020-08-09 Silence warnings from clang 10 with -Wimplicit-fallthrough 2020-08-09 count-one-bits: Use __builtin_popcount{,l,ll} on clang 2020-08-09 string: Fix build error in C++ mode with clang 2020-08-09 Add ability to emit user-defined diagnostics with clang 2020-08-07 alloca: No need to compile alloca.c with clang 2020-08-06 Use __builtin_assume with clang * lib/alloca.in.h, lib/arg-nonnull.h, lib/c++defs.h, lib/cdefs.h: * lib/count-one-bits.h, lib/dirent.in.h, lib/ignore-value.h: * lib/intprops.h, lib/malloca.h, lib/regex_internal.h: * lib/stdalign.in.h, lib/stddef.in.h, lib/stdio.in.h: * lib/stdlib.in.h, lib/string.in.h, lib/verify.h, lib/warn-on-use.h: * m4/gnulib-common.m4, m4/stddef_h.m4, m4/stdint.m4: Copy from Gnulib.
* Prefer make_nil_vector to make-vector with nilPaul Eggert2020-08-113-3/+6
| | | | | | | * src/pdumper.c (hash_table_thaw): Pacify -Wconversion so we can use make_nil_vector again. * src/timefns.c (syms_of_timefns): Prefer make_nil_vector to make_vector with Qnil.
* Fix MinGW build broken by recent pdumper changes.Eli Zaretskii2020-08-111-2/+2
| | | | | | | | * src/pdumper.c (hash_table_thaw): Use Fmake_vector. Suggested by Pip Cet <pipcet@gmail.com>. (dump_trace): Declare ATTRIBUTE_FORMAT_PRINTF, not ATTRIBUTE_FORMAT((__printf__), so that we pick the right attribute for MinGW.
* Make mouse-2 respect select-enable-primary etcBastian Beischer2020-08-111-21/+37
| | | | | | | | | * lisp/calc/calc-yank.el (calc-yank-internal): Factor out into its own function (bug#23629). (calc-yank): Factored out from here. (calc-yank-mouse-primary): New command to Copyright-paperwork-exempt: yes
* Allow count-lines to ignore invisible linesRobert Weiner2020-08-113-18/+44
| | | | | | | * doc/lispref/positions.texi (Text Lines): Document it (bug#23675). * lisp/simple.el (count-lines): Add an optional parameter to ignore invisible lines (bug#23675).
* * lisp/net/tramp.el: Make last change backward compatible.Michael Albinus2020-08-111-2/+5
|
* Fix face merging at EOL when inherited face specifies :extendEli Zaretskii2020-08-111-3/+17
| | | | | | * src/xfaces.c (merge_face_ref): Handle correctly faces that inherit from another, and in addition specify :extend. (Bug#42552)
* Add new commands for environment movement in .texi filesRobert Weiner2020-08-112-0/+79
| | | | | * lisp/textmodes/texinfo.el (texinfo-mode-map): New keystrokes for environment movement commands (bug#23985).
* Allow specifying the callback in new xwidget sessionsPuneeth Chaganti2020-08-111-8/+5
| | | | | | * lisp/xwidget.el (xwidget-webkit-new-session): Optional callback arg (bug#24019). (xwidget-event-handler): Respect the 'callback parameter.
* Fix (end-of-defun N) for N >= 2Noam Postavsky2020-08-112-1/+57
| | | | | | | * lisp/emacs-lisp/lisp.el (end-of-defun): Only skip to next line when after end of defun when ARG is 1 or less. * test/lisp/emacs-lisp/lisp-tests.el (end-of-defun-twice): New test (bug#24427).
* Change the Calc text input method to insert at pointTino Calancha2020-08-112-14/+45
| | | | | | | | * lisp/calc/calc.el (calcDigit-delchar): New command to delete chars forward in the calc minibuffer. (calc-digit-map): Bind calcDigit-delchar to '\C-d'. (calcDigit-key): Do not go to (point-max) in calc minibuffer before insert a digit (Bug#24612).
* Only search for a variable when instructedAlexander Gramiak2020-08-112-0/+12
| | | | | | * lisp/help-fns.el (find-lisp-object-file-name): Check for 'defvar argument before searching for an internal variable (Bug#24697). * test/lisp/help-fns-tests.el: New tests.
* Allow Dired to dereference symbolic links when copyingKaushal Modi2020-08-114-6/+39
| | | | | | | | | | | | | | | | | * doc/emacs/dired.texi (Operating on Files): Mention the new defcustom (bug#25075). * lisp/dired-aux.el (dired-do-copy): Invert the value of `dired-copy-dereference' in lexical scope when prefix argument is '(4). Update function documentation for the new defcustom. * lisp/dired-aux.el (dired-copy-file): Use `dired-copy-dereference' as the `dereference' argument to `dired-copy-file-recursive'. * lisp/dired-aux.el (dired-copy-file-recursive): Add new optional argument `dereference'. * lisp/dired.el (dired-copy-dereference): New defcustom, defaults to nil.
* Mark further mml-sec-tests as unstableLars Ingebrigtsen2020-08-111-0/+2
| | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-3): (mml-secure-en-decrypt-sign-1-3-double): These tests are unstable on Ubuntu (bug#42803).
* Further tweaks to the user manual about shell-command-buffer-nameLars Ingebrigtsen2020-08-111-8/+8
| | | | | | | * doc/emacs/misc.texi (Single Shell): Reintroduce the actual buffer names in the user manual (bug#39138), but keep the references to the variables. It's easier for people reading the user manual to deal with actual names.
* pdumper avoid listing hash table contentsPaul Eggert2020-08-111-11/+14
| | | | | * src/pdumper.c (hash_table_contents): Create a vector directly, instead of creating a list and then converting that to a vector.
* pdumper speed tweeks for hash tablesPaul Eggert2020-08-111-12/+10
| | | | | | | | | * src/pdumper.c (dump_queue_empty_p): Avoid unnecessary call to Fhash_table_count on a known hash table. (dump_hash_table_list): !NILP, not CONSP. (hash_table_freeze, hash_table_thaw): ASIZE, not Flength, on vectors. Initialize in same order as struct. (hash_table_thaw): make_nil_vector, not Fmake_vector with nil.
* In pdumper, simplify INT_MAX computationPaul Eggert2020-08-111-5/+4
| | | | | | * src/pdumper.c (dump_read_all): Avoid unnecessary cast. Also, round down to page size, as sysdep.c does. Also, don’t assume INT_MAX <= UINT_MAX (!).
* Don’t needlessly convert to ‘unsigned’ in pdumperPaul Eggert2020-08-111-27/+31
| | | | | | | | | | * src/pdumper.c (PRIdDUMP_OFF): New macro. (EMACS_INT_XDIGITS): New constant. (struct dump_context): Use dump_off for relocation counts. All uses changed. (dump_queue_enqueue, dump_queue_dequeue, Fdump_emacs_portable): Don’t assume counts fit in ‘unsigned’ or ‘unsigned long’. Use EMACS_INT_XDIGITS instead of assuming it’s 16.
* * src/pdumper.c (pdumper_load): XSETVECTOR -> make_lisp_ptr.Paul Eggert2020-08-111-3/+5
|
* * src/fns.c (hash_table_rehash): Help the compiler a bit.Paul Eggert2020-08-111-4/+6
|
* Rehash hash tables eagerly after loading a dumpPip Cet2020-08-118-185/+109
| | | | | | | | | | | | | | | | This simplifies code, and helps performance in some cases (Bug#36597). * src/lisp.h (hash_rehash_needed_p): Remove. All uses removed. (hash_rehash_if_needed): Remove. All uses removed. (struct Lisp_Hash_Table): Remove comment about rehashing hash tables. * src/pdumper.c (thaw_hash_tables): New function. (hash_table_thaw): New function. (hash_table_freeze): New function. (dump_hash_table): Simplify. (dump_hash_table_list): New function. (hash_table_contents): New function. (Fdump_emacs_portable): Handle hash tables by eager rehashing. (pdumper_load): Restore hash tables. (init_pdumper_once): New function.
* ; * lisp/leim/quail/latin-ltx.el: Fix regexp in last commit.Stefan Kangas2020-08-111-1/+1
|
* Fix \epsilon and \varepsilon in TeX input methodStefan Kangas2020-08-111-2/+5
| | | | | * lisp/leim/quail/latin-ltx.el: Add correct \epsilon and \varepsilon characters to TeX input method. (Bug#26060)
* Fix fontification of outdated TeX formLars Ingebrigtsen2020-08-101-1/+1
| | | | | | | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): End the expression before the terminating $ in constructions like $\it identifiername$ (bug#28277). This avoids italicising the final $ character. This fixes the final $ of the final test case here: $foo$ \textit{foo} {\it foo} $\mathit{identifiername}$ $\textit{identifiername}$ ${\it identifiername}$ $\it identifiername$
* Add new command apropos-function (Bug#41021)Stefan Kangas2020-08-102-0/+17
| | | | | * lisp/apropos.el (apropos-function): New command. * etc/NEWS: Announce it.
* ; Add my last change to NEWS.Stefan Kangas2020-08-101-0/+4
|
* Change 'M-:' to not error out on incomplete expressionsCharles A. Roelli2020-08-102-0/+52
| | | | | | | | * lisp/simple.el (read--expression-try-read): New function to read a Lisp expression from the minibuffer (bug#30697). This will not (as before) signal an error on incomplete expressions, but allow users to continue editing it. (read--expression): Use it (and add a doc string).
* Fix problem with /- incorrectly starting a comment in SQL modeLars Ingebrigtsen2020-08-101-19/+11
| | | | | | * lisp/progmodes/sql.el (sql-mode): Move all the syntax setup stuff here (bug#35646). Add handling of -* and /- from Kristian Hole <kristian@hole.priv.no>.
* Add term/st.el (Bug#33182)Stefan Kangas2020-08-101-0/+12
| | | | | This is a copy of term/konsole.el with konsole -> st. * lisp/term/st.el: New file.
* ; Copyright fixGlenn Morris2020-08-101-6/+10
| | | | Author has assignment on file
* Add zsh extended_history handling for comint.el input ringMatthew Bauer2020-08-102-3/+24
| | | | | | | | * lisp/comint.el (comint-input-ring-file-prefix): New variable (bug#36034). (comint-read-input-ring): Use it. * lisp/shell.el (shell-mode): Set it.
* ; Fix typos.Stefan Kangas2020-08-103-4/+4
|
* ; * lisp/man.el (manual-entry): Fix comment to say we will keep it.Stefan Kangas2020-08-101-1/+2
|
* * lisp/vt100-led.el: Use lexical-binding.Stefan Kangas2020-08-101-1/+1
|
* Revert "Indent python multiline strings to start and previous levels"Lars Ingebrigtsen2020-08-091-8/+7
| | | | | | This reverts commit b78583cde7d8aaa1fa19c20975c03d689c78baef. The multi-line string indentation was incorrect after applying this patch.
* Add ability to mark/unmark/delete all bookmarksMatthew White2020-08-093-2/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Karl Fogel for pre-commit review. * lisp/bookmark.el (bookmark-delete-all): New function to delete all bookmarks. (bookmark-bmenu-mark-all): New function to mark all bookmarks in the bookmark list buffer. (bookmark-bmenu-unmark-all): New function to unmark all bookmarks in the bookmark list buffer. (bookmark-bmenu-delete-all): New function to mark for deletion all bookmarks in the bookmark list buffer. (bookmark-map): Map "D" to `bookmark-delete-all'. (bookmark-bmenu-mode-map): New mappping for "M" to `bookmark-bmenu-mark-all'. (bookmark-bmenu-mode-map): New mappping for "U" to `bookmark-bmenu-unmark-all'. (bookmark-bmenu-mode-map): New mappping for "D" to `bookmark-bmenu-delete-all'. (bookmark-bmenu-mark-all): New bookmark menu to `bookmark-delete-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-mark-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-unmark-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-delete-all'. (bookmark-bmenu-select): Update docstring to include a reference to `bookmark-bmenu-mark-all'. (bookmark-bmenu-mode): Update docstring. Add/Update description: `bookmark-bmenu-mark-all', `bookmark-bmenu-delete-all', `bookmark-bmenu-execute-deletions', and `bookmark-bmenu-unmark-all'. * test/lisp/bookmark-resources/test-list.bmk: New bookmark file to test a list of bookmarks. * test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file-list): New reference to the bookmark file used for testing a list of bookmarks. (bookmark-tests-bookmark-list-0, bookmark-tests-bookmark-list-1, bookmark-tests-bookmark-list-2): New cached values for testing a list of bookmark. (bookmark-tests-cache-timestamp-list): New variable to set `bookmark-bookmarks-timestamp'. (with-bookmark-test-list): New macro environment to test a list of bookmarks. (with-bookmark-test-file-list): New macro environment to test a list of bookmarks with example.txt. (with-bookmark-bmenu-test-list): New macro environment to test functions about a list of bookmarks from `bookmark-bmenu-list'. (bookmark-tests-all-names-list, bookmark-tests-get-bookmark-list, bookmark-tests-get-bookmark-record-list): New functions to test the records of the list of bookmarks. (bookmark-tests-make-record-list): New function to test the creation of a record from example.txt with a list of bookmarks loaded. (bookmark-tests-delete-all): New function to test `bookmark-delete-all'. (bookmark-test-bmenu-any-marks-list): New function to test `bookmark-bmenu-any-marks' with a list of bookmarks. (bookmark-test-bmenu-mark-all): New function to test `bookmark-bmenu-mark-all'. (bookmark-test-bmenu-unmark-all): New function to test `bookmark-bmenu-unmark-all'. (bookmark-test-bmenu-delete-all): New function to test `bookmark-bmenu-delete-all'.
* Use one src status -a call for vc-src-dir-status-filesWolfgang Scherer2020-08-091-22/+45
| | | | | | lisp/vc/vc-src.el: (vc-src--parse-state) new function. (vc-src-state) use vc-src--parse-state. (vc-src-dir-status-files) use recursive calls to `src status -a' (bug#39502).
* Adds backslash as escape character to mysql syntax-alistKristian Hole2020-08-091-2/+2
| | | | | | | | | * lisp/progmodes/sql.el (sql-product-alist): The \ character is an escape character in mysql (bug#37459). (sql-mode): Changes the example from the incorrect use of punctuation rule, to the escape character rule. Copyright-paperwork-exempt: yes
* Indent python multiline strings to start and previous levelsCarlos Pita2020-08-091-7/+8
| | | | | | | * progmodes/python.el (python-indent--calculate-indentation): Add an additional indentation point to match indentation of previous line in a multiline string. Then Tab iterates between 0, the start indentation level and the previous line level (bug#37726).
* * src/json.c (lisp_to_json): Simplify.Philipp Stephani2020-08-091-3/+1
|
* Revert obsoletion of manual-entryStefan Kangas2020-08-091-1/+1
| | | | | | Ref: https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00167.html * lisp/man.el (manual-entry): Revert obsoletion of this alias.