1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-28 07:50:48 -08:00
Commit graph

130436 commits

Author SHA1 Message Date
Sam Steingold
cd726ef68e Save and restore buffer-display-time
* desktop.el (desktop-locals-to-save): Add `buffer-display-time'
(desktop-read): Set `desktop-file-modtime' before loading the desktop file
(desktop-create-buffer): Adjust `buffer-display-time' for the downtime
2016-10-15 23:14:48 -04:00
Philipp Stephani
cf566b46a6 Disable bracketed paste in a terminal in char mode
In char mode, a terminal doesn't accept bracketed paste events,
therefore we should disable them; see Bug#24639.  To decouple the XTerm
management from term.el, introduce a per-buffer setting to disable
bracketed paste for that buffer.  If bracketed paste is inhiited for at
least one buffer in a terminal, it is disabled for the whole terminal.

* term/xterm.el (xterm-inhibit-bracketed-paste-mode): New mode to
inhibit XTerm bracketed paste per buffer.
(xterm--buffer-terminals, xterm--update-bracketed-paste)
(xterm--bracketed-paste-possible, xterm--is-xterm): New helper
functions.
(xterm--init-bracketed-paste-mode): Remove unused helper
function.
(terminal-init-xterm): Update bracketed paste status when
initializing an XTerm and on window configuration change.

* term.el (term-char-mode, term-line-mode): Inhibit XTerm
bracketed paste in char mode.
2016-10-15 17:13:27 +02:00
Eli Zaretskii
4eb4463abf Fix char-width-table values for some Emoji
* lisp/international/characters.el (char-width-table): Add missing
range U+1F400..U+1F43E.  (Bug#24699)

* admin/notes/unicode: Mention the need to verify char-width-table
setting against data in EastAsianWidth.txt.
2016-10-15 17:58:57 +03:00
Eli Zaretskii
f68b463d1b ; * src/keyboard.c (make_lispy_event): Fix code formatting in last change. 2016-10-15 17:21:49 +03:00
Dima Kogan
a38096f8e2 Undo the effect of CapsLock when other modifiers are present
* src/keyboard.c (make_lispy_event): Effectively undo the effect
of CapsLock if any modifiers other than Shift are present in a key.
(Bug#24456)
2016-10-15 17:18:40 +03:00
Eli Zaretskii
528997daa1 Keep point when switching from and to *terminal* buffer
* lisp/term.el (term-reset-size): Don't reset the size if it
didn't change.  If the size did change, restore point after
adjusting the size.  (Bug#24465)
2016-10-15 16:53:36 +03:00
Michael Albinus
21300051eb * INSTALL: Use correct Emacs release number 25. 2016-10-15 12:40:45 +02:00
Simen Heggestøyl
07c0db4344 Add tests for foreign completions in CSS mode
* test/lisp/textmodes/css-mode-tests.el
(css-test-foreign-completions): New test for
`css--foreign-completions'.
(css-test-complete-selector-tag): Rename test.
(css-test-complete-selector-class): New test testing completion of
class names in selectors.
(css-test-complete-selector-id): New test testing completion of IDs in
selectors.
2016-10-15 11:23:26 +02:00
Eli Zaretskii
10835b18cd Avoid crashes due to objects read with the #n=object form
* src/lread.c (read1): Use Fcons for 'placeholder', not AUTO_CONS,
because elements of the list in 'read_objects' cannot be allocated
off the stack.  (Bug#24640)
2016-10-14 22:52:46 +03:00
Lars Ingebrigtsen
1a99d5dda2 Cosmetic change to last mm-url change
* lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
Tweak last change slightly for more readability.
2016-10-14 01:35:15 +02:00
Lars Ingebrigtsen
a6e0188dff Fix problem with submitting binary data via HTTP forms
* lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
Document the parameters, clean up the code, and make uploading
binary data really work (which it didn't if the binary bits
were in the last part of the data).
2016-10-13 21:39:34 +02:00
Mark Oteiza
4c620c20d4 * lisp/time.el (display-time-string-forms): Fix custom type. 2016-10-13 14:41:46 -04:00
Mark Oteiza
506a97a58d Derive Man and WoMan modes from special-mode
* lisp/man.el (Man-mode-map): Set parent to map composed from both
button-buffer-map and special-mode-map.  Remove redundant bindings.
Fix menu to refer to the quit-window command.
(Man-mode): Derive from special-mode.  Fix docstring.  Remove redundant
buffer-read-only binding.
(Man-quit): Remove.
* lisp/woman.el (woman-really-find-file): Use setq-local.
(woman-mode-map): Refer to woman-mode in docstring.
(woman-mode): Derive from special-mode.  Document woman-mode-map in
docstring.  Use setq-local where possible; imenu-generic-expression is
already buffer-local.
(woman-negative-vertical-space): Replace unused binding with _.
2016-10-13 14:37:10 -04:00
Eli Zaretskii
4de671d844 Improve doc string of 'completion-at-point-functions'
* lisp/minibuffer.el (completion-at-point-functions): Doc fix.
(Bug#24663)
2016-10-13 20:15:21 +03:00
Philipp Stephani
ceb46f0021 Fix crash in evaluating functions
See Bug#24673

* src/eval.c (funcall_lambda): Fix crash for bogus functions such
as (closure).
2016-10-13 13:03:31 +02:00
Philipp Stephani
8ee95221c7 Fix crash in evaluating functions
See Bug#24673

* src/eval.c (funcall_lambda): Fix crash for bogus functions such
as (closure).

* test/src/eval-tests.el (eval-tests--bug24673): Add test.
2016-10-13 13:00:48 +02:00
Tino Calancha
b0f1d23ec4 Add test for Bug#24627
* /test/lisp/thingatpt-tests.el (thing-at-point-bug24627): New test.
2016-10-13 17:56:22 +09:00
Paul Eggert
d8374c4e95 * src/filelock.c (current_lock_owner): Update comment. 2016-10-12 17:48:34 -07:00
Paul Eggert
eb17d6f575 Port --enable-gcc-warnings to GCC 6.2.1
Backport from master.
* src/conf_post.h (GNUC_PREREQ): New macro.
* src/keyboard.c: Use it to work around GCC bug 54561.
* src/process.c (would_block): New function.
(server_accept_connection, wait_reading_process_output, send_process):
Use it.
2016-10-12 09:19:44 -07:00
Paul Eggert
2deb20c1bd Port last_marked change to full-program optimizers
* src/alloc.c (last_marked): Now EXTERNALLY_VISIBLE.
2016-10-12 09:19:44 -07:00
Paul Eggert
40c426a150 Work around Samba bug with ':' in symlink contents
* src/filelock.c (current_lock_owner): When reading the contents
of a lock, treat the UTF-8 for U+F022 as if it were ':' (Bug#24656).
Backport from master.
2016-10-12 09:19:44 -07:00
Eli Zaretskii
59c5f36acf * lib-src/etags.c (invalidate_nodes): Remove a redundant nullp test. 2016-10-12 18:24:21 +03:00
Eli Zaretskii
27eb668ac3 Adapt GDB scripts to '--enable-check-lisp-object-type' builds
* etc/emacs-buffer.gdb <$qnil>: New variable.
(ybuffer-list, yset-buffer): Use $qnil for comparing against
'nil', as direct comparison with Qnil doesn't work in a build with
'--enable-check-lisp-object-type'.

* src/.gdbinit: Adapt commands of the temporary breakpoint in
init_sys_modes to a build with '--enable-check-lisp-object-type'.
2016-10-12 11:59:53 +03:00
Paul Eggert
1dd54e3eef Work around Samba bug with ':' in symlink contents
* src/filelock.c (current_lock_owner): When reading the contents
of a lock, treat the UTF-8 for U+F022 as if it were ':' (Bug#24656).
2016-10-11 13:07:19 -07:00
Stefan Monnier
5cc3c13d16 If autoloads buffer is unchanged, mark it as such (bug#23692)
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
If autoloads buffer is unchanged, mark it as such (bug#23692).
2016-10-11 15:52:14 -04:00
Michael Albinus
8b4aebf455 Use "26.1" version string in Tramp, fix some comments
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
Use "26.1" version string.
2016-10-11 16:53:33 +02:00
Eli Zaretskii
dac64e35dd Avoid optimizing out the last_marked[] array
* src/alloc.c <last_marked>: No longer 'static', to avoid having
it optimized out in optimized builds, which then makes debugging
GC problems harder.
2016-10-11 14:38:48 +03:00
Tino Calancha
9640e9f4e9 form-at-point work for all kind of THINGS
* lisp/thingatpt.el (form-at-point):
Use thing-at-point--read-from-whole-string only if thing-at-point
returns a string (Bug#24605).
2016-10-11 11:47:32 +09:00
Eli Zaretskii
db677f5dfe Fix compilation warnings on MS-Windows
* src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Remove
definitions of these macros, which seem to be unneeded and cause
compiler warnings.
* src/fileio.c (NOMINMAX): Avoid compiler warnings about unused
macros.
* src/firstfile.c (dummy_main_reference): Rename from 'dummy' and
make it external, to avoid compiler warning.
2016-10-10 19:22:40 +03:00
Paul Eggert
fd45b3f604 Spelling and clarity fixes 2016-10-10 07:58:45 -07:00
Paul Eggert
46b83c0f08 Merge from origin/emacs-25
4f406e9 CC Mode manual: remove reference to former Emacs variable las...
44e402e Allow to disable compaction of font caches
4ff4b66 Allow selection of font for symbols as in Emacs 24.x
c03d44b ; Fix last commit
d4be4f3 ; Fix indexing in lispref manual
ed399f2 ; Minor improvement in documentation of generators
197a6bc Fix horizontal scrolling during Isearch
3566644 Fix infloop in redisplay due to truncated lines and invisible...

# Conflicts:
#	etc/NEWS
2016-10-10 07:39:05 -07:00
Paul Eggert
be589ea0dc ; Merge from origin/emacs-25
The following commits were skipped:

a6e0a67 gitmerge: Add cherry pick to gitmerge-skip-regexp
fb12af2 ; Merge: some backports from master
6234012 Don't require isearch-update before isearch-done
5e50114 Avoid error in icalendar--read-element
ace9d22 Make a menu less ambiguous
e683495 Doc fix for url-http
2016-10-10 07:35:33 -07:00
Paul Eggert
cf9bdf12da Merge from origin/emacs-25
c4a5e7e Improve documentation of 'menu-bar-open'
2016-10-10 07:35:33 -07:00
Paul Eggert
53d1b9dbbe ; Merge from origin/emacs-25
The following commits were skipped:

34b6df1 Fix compilation with MinGW runtime 3.22.2 and w32api 3.18.2
4ef9ea2 Add documentation note from Alex
9d6026d * src/alloc.c: call only non-null finalizers
2016-10-10 07:35:33 -07:00
Paul Eggert
97046e811c Merge from origin/emacs-25
4b347fe Clarify that doc fixes are okay in feature freeze
01669ad Avoid crashes when setting the cursor
f2144ee Restore 'command-debug-status' functionality
ec6e4b9 ; Minor addition to CONTRIBUTE
2016-10-10 07:35:32 -07:00
Paul Eggert
314f3972bf ; Merge from origin/emacs-25
The following commit was skipped:

e1b2918 Document yank behavior in the right place
2016-10-10 07:35:32 -07:00
Paul Eggert
8a64559989 Merge from origin/emacs-25
74b4f13 Document nil args of compare-buffer-substrings
9fc81bc * doc/misc/message.texi (Bcc Warning): Fix markup.
95baa25 * doc/misc/message.texi (Bcc Warning): Document mml-secure-sa...
2016-10-10 07:35:31 -07:00
Paul Eggert
2923b3dd14 ; Merge from origin/emacs-25
The following commits were skipped:

6234012 Don't require isearch-update before isearch-done
5e50114 Avoid error in icalendar--read-element
ace9d22 Make a menu less ambiguous
e683495 Doc fix for url-http
2016-10-10 07:35:31 -07:00
Paul Eggert
4e42e8453e Merge from origin/emacs-25
f1247f0 * lisp/frame.el (blink-cursor-delay): Doc fix.  (Bug#24372)
ace7f14 * lisp/gnus/gnus-art.el (gnus-button-handle-library): Fix typo.
bbf1ffd Regexp Functions doc minor fixes
2016-10-10 07:35:31 -07:00
Alan Mackenzie
4f406e9813 CC Mode manual: remove reference to former Emacs variable last-command-char
* doc/misc/cc-mode.texi (Hanging Semicolons and Commas): Replace reference to
variable last-command-char by one to macro c-last-command-char.
2016-10-09 13:42:57 +00:00
Eli Zaretskii
44e402ead3 Allow to disable compaction of font caches
* src/font.c (syms_of_font) <inhibit-compacting-font-caches>: New
boolean variable.
* src/alloc.c (compact_font_caches): Use it to bypass the call to
compact_font_cache_entry.  (Bug#24634)  (Bug#24565)

* etc/NEWS: Mention the new variable.
2016-10-08 22:31:14 +03:00
Eli Zaretskii
4ff4b66df8 Allow selection of font for symbols as in Emacs 24.x
* src/fontset.c (syms_of_fontset) <use-default-font-for-symbols>:
New boolean variable.
(face_for_char): Use it to fall back to pre-Emacs 25.1 behavior
when selecting fonts for displaying symbol and punctuation
characters.  (Bug#24644)

* etc/NEWS: Mention the new variable.
2016-10-08 22:03:51 +03:00
Philipp Stephani
5b774598f4 Don’t consider nested let-alist forms
See Bug#24641.

* lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Don’t
consider symbols in nested ‘let-alist’ forms.

* test/lisp/emacs-lisp/let-alist-tests.el
(let-alist--deep-dot-search--nested): Add a unit test.
2016-10-08 18:36:54 +02:00
Eli Zaretskii
c03d44bb3d ; Fix last commit
* doc/lispref/functions.texi (Argument List): Restore the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)
* doc/lispref/errors.texi: Fix cross-reference for
'wrong-number-of-arguments'.
2016-10-08 17:16:33 +03:00
Eli Zaretskii
d4be4f3f12 ; Fix indexing in lispref manual
* doc/lispref/functions.texi (Argument List): Remove the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)
2016-10-08 17:01:54 +03:00
Alain Schneble
f3eedc7e68 Support SIGTRAP in kill emulation on Windows
* src/w32proc.c (sys_kill): Translate SIGTRAP signal into a call to
'DebugBreakProcess' to cause a breakpoint exception to occur in the
specified process.  On Windows versions prior to Windows XP that do
not support 'DebugBreakProcess' return -1 and set errno to ENOTSUP
(as opposed to EINVAL before this change).
* src/w32proc.c: Add typedef for 'DebugBreakProcess' function pointer
and global variable to track state of run-time dynamic linking of this
function.

* etc/NEWS: Add entry to document that 'signal-process' now supports
SIGTRAP.
2016-10-08 16:52:40 +03:00
Wilfred Hughes
ed399f26fa ; Minor improvement in documentation of generators
* doc/lispref/control.texi (Generators): Add a 'require' to the
example code.  (Bug#24539)
2016-10-08 16:44:47 +03:00
Eli Zaretskii
67d14c8222 Deprecate 'wp' group and introduce a new group 'text'
* lisp/textmodes/tildify.el (tildify):
* lisp/textmodes/text-mode.el (text-mode-hook):
* lisp/textmodes/table.el (table):
* lisp/textmodes/rst.el (rst):
* lisp/textmodes/refer.el (refer):
* lisp/textmodes/refbib.el (refbib):
* lisp/textmodes/picture.el (picture):
* lisp/textmodes/nroff-mode.el (nroff):
* lisp/textmodes/enriched.el (enriched):
* lisp/textmodes/bib-mode.el (bib):
* lisp/progmodes/ebnf2ps.el (ebnf2ps):
* lisp/nxml/rng-valid.el (relax-ng):
* lisp/view.el (view):
* lisp/ps-print.el (ps-print):
* lisp/printing.el (printing):
* lisp/outline.el (outlines):
* lisp/lpr.el (lpr):
* lisp/delim-col.el (columns): Use 'text' group instead of 'wp'.
* lisp/cus-edit.el (wp): Remove the "text" tag.
(text): New defgroup, inherits from the deprecated 'wp'.
(outlines): Remove, in favor of the definition in outline.el.
(tex): Inherit from 'text'.
Suggested by Drew Adams <drew.adams@oracle.com>.  (Bug#24549)
2016-10-08 16:37:42 +03:00
Laimonas Vėbra
2913fa2d47 Extend dictionary and library-directory handling for Ispell
* lisp/textmodes/ispell.el (ispell-check-version): Allow
overriding LIBDIR via the variable defined by LIBRARYVAR (usually
ISPELL_DICTDIR).
(ispell-valid-dictionary-list): If the -d option to Ispell
specifies an absolute file name, use that regardless of
ispell-library-directory.  (Bug#24439)

Copyright-paperwork-exempt: yes
2016-10-08 15:15:22 +03:00
Eli Zaretskii
197a6bcc20 Fix horizontal scrolling during Isearch
* lisp/isearch.el (isearch-update): Compute the window's body
width in a way that is correct when there are no fringes.
(Bug#24584)
2016-10-08 12:35:17 +03:00