1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00
Commit graph

131369 commits

Author SHA1 Message Date
Stefan Monnier
512f81407c * lisp/calendar/solar.el: Use lexical-binding
(date): Don't declare globally.
(solar-time-string): Use calendar-dlet*.

* lisp/calendar/calendar.el (calendar-dlet*): New macro.
2017-12-04 15:36:22 -05:00
Stefan Monnier
4cf5a3ac57 * lisp/emacs-lisp/faceup.el: Don't require CL
(faceup-markup-start-char, faceup-markup-end-char): Use char immediates.
2017-12-04 13:49:46 -05:00
Stefan Monnier
f55293159f * lisp/emacs-lisp/elint.el (elint-init-form): Remove outdated CL hack 2017-12-04 13:43:23 -05:00
Eli Zaretskii
42ba2a2e1f Fix an omission in lookup_basic_face
* src/xfaces.c (lookup_basic_face): Handle 'vertical-border' face
as well.  (Bug#29557)
2017-12-04 17:43:35 +02:00
Paul Eggert
a597969f13 allocate_vectorlike minor cleanup
* src/alloc.c (allocate_vectorlike): Move a bit of code out of the
critical section.  Although this doesn’t really help performance,
it cleans up the code a bit and should make it easier to add
pointer bounds checking.
2017-12-03 18:18:02 -08:00
Paul Eggert
c54718e0bb Omit exprintf if modules but no X
* src/doprnt.c (exprintf): Do not define if HAVE_MODULES &&
!(have_X_WINDOWS || USE_X_TOOLKIT), as the modules code no longer
uses exprintf.
2017-12-03 18:18:02 -08:00
Paul Eggert
1dcf8b5ec5 Pacify GCC on Ubuntu 17.10 x86-64
* src/xfns.c (x_real_pos_and_offsets): Pull out parent frame
into a local, so that GCC doesn't warn about dereferencing
a possibly-null pointer.
2017-12-03 18:18:01 -08:00
Lars Ingebrigtsen
66396972ed Allow shr to use data: URLs without encoding
* lisp/net/shr.el (shr-image-from-data): Don't bug out on
image data: URLs that have no base64 encoding like
(shr-image-from-data
"text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E").
2017-12-03 23:47:42 +01:00
Alan Third
e4f2061ebc Add image resizing and rotation to NS port
* lisp/image.el (image--get-imagemagick-and-warn): Bypass imagemagick
check when using NS.
* src/nsimage.m (ns_load_image): Add rotation and resizing
functionality. Move the getMetaData call to before the resize/rotation
so it returns correct metadata.
(EmacsImage::setSizeFromSpec, EmacsImage::rotate): New functions.
* src/nsterm.h (EmacsImage): Add new function prototypes.
(NSCompositingOperationCopy): Add define to older equivalent for
GNUstep and pre-10.12 macOS.
* configure.ac: Don't use libjpeg on Cocoa.
2017-12-03 22:41:05 +00:00
Noam Postavsky
1cdd0e8cd8 Disable history expansion in eshell (Bug#29157)
History expansion is not so useful since interactive history commands
are already provided.  It can produce surprising errors when the user
is not aware of the history designator syntax.
* lisp/eshell/em-hist.el (eshell-hist-initialize): Don't add
eshell-expand-history-references to eshell-expand-input-functions.
* etc/NEWS: Announce it.
2017-12-03 15:39:02 -05:00
Noam Postavsky
cfa50d30f2 ; Tracing for eieio-test random failure (Bug#24503)
* test/Makefile.in [EMACS_HYDRA_CI]: Always show log for eieio-tests.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (top-level): Trace
cl-generic functions.
(eieio-test-dump-trace): New function.
(eieio-test-37-obsolete-name-in-constructor): Use it.
2017-12-03 15:39:02 -05:00
Noam Postavsky
6e0008890f * lisp/emacs-lisp/package.el (package-read-from-string): Simplify. 2017-12-03 15:39:02 -05:00
Noam Postavsky
dbe410d9ad Fix faceup tests when run from elc
String literals may be shared by the compiler, so the test string
needs to be copied before adding properties to it.  For single
properties, just use a string literal with properties.
* test/lisp/emacs-lisp/faceup-tests/faceup-test-basics.el
(faceup-markup): Split into...
(faceup-markup-basics, faceup-markup-escaping, faceup-markup-plain)
(faceup-markup-plain-full-text, faceup-markup-anonymous-face)
(faceup-markup-anonymous-face-2keys, faceup-markup-anonymous-nested)
(faceup-markup-nested, faceup-markup-overlapping)
(faceup-markup-multi-face, faceup-markup-multi-property): New tests.
2017-12-03 15:39:01 -05:00
Noam Postavsky
f924956ed1 ; test/lisp/dired-aux-tests.el (with-dired-bug28834-test): Fix debug decl. 2017-12-03 14:53:36 -05:00
Paul Eggert
9d7f0e27e0 Merge from origin/emacs-26
04e5b28ff1 Fix bug in i18n/l10n optimization
8227087194 Let autoload-compute-prefix be set file-locally (Bug#29471)
98ca7d5f26 Improve edit-kbd-macro prompting in case of remapped keys ...
c02c1f6be7 Add tests on electric-indentation and Python multiline str...
946bb6d225 Disable electric indent for python strings (Bug#29305)
35f1ed10e4 ; ChangeLog.2: Fix bug reference.
ac316634e4 Fix buffer overflow in fontname conversion (Bug#29523)
bf9b972843 Fix byte compilation of files with leading directories
ac144dc835 * lisp/files.el (make-backup-file-name-1): Fix scoping error.
1b351c8a47 Revert Tramp commit from 2017-11-20
77cf972592 Improve documentation of buffer-list commands and features
66ec92af00 Fix backing up remote files in local directories on MS-Win...
7e61e74da7 * doc/emacs/mule.texi (Output Coding): Clarify sendmail co...
1e25cd79ff Revert "Fix backing up remote files in local directories o...
f52d79500b Fix a typo in ELisp manual
bf26fc3656 * lisp/composite.el (find-composition): Fix a typo in the ...
2017-12-02 21:38:05 -08:00
Paul Eggert
4c048aaf06 ; Merge from origin/emacs-26
The following commit was skipped:

34a21c3bf6 ; Auto-commit of loaddefs files.
2017-12-02 21:38:05 -08:00
Paul Eggert
f1204e1dda Merge from origin/emacs-26
8c8b673288 Fix backing up remote files in local directories on MS-Win...
8eb6870be6 Fix vertical cursor motion in pixel-scroll.el
625e84f156 Fix typos in doc strings of message.el
9292276a44 Fix a typo in the Emacs manual
42509c0649 Improve the documentation of 'table-insert-sequence'
93dc7ae4a4 Port better to QNX
ad99550610 Make tramp-test42-auto-load more robust
af0ce33d08 ; * lisp/composite.el (find-composition): Fix a typo in la...
bdbcdbac43 Avoid assertions in find-composition
2017-12-02 21:38:05 -08:00
Paul Eggert
04e5b28ff1 Fix bug in i18n/l10n optimization
This fixes a off-by-one buffer overrun bug introduced in
2017-06-04T15:39:37Z!eggert@cs.ucla.edu.  Problem uncovered by an
experimental version of Emacs built with -fcheck-pointer-bounds
and running on Intel MPX hardware.
* src/editfns.c (styled_format): Avoid overrunning internal buffers.
2017-12-02 21:32:26 -08:00
Noam Postavsky
8227087194 Let autoload-compute-prefix be set file-locally (Bug#29471)
* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark
boolean values as safe.
2017-12-02 09:35:44 -05:00
Noam Postavsky
98ca7d5f26 Improve edit-kbd-macro prompting in case of remapped keys (Bug#29399)
* lisp/edmacro.el (edit-kbd-macro): Use substitute-command-keys to
present the current bindings in the prompt.  Check the the
non-remapped binding of the entered key sequence as well.
2017-12-02 09:35:44 -05:00
Lele Gaifax
c02c1f6be7 Add tests on electric-indentation and Python multiline strings (Bug#29305)
* test/lisp/progmodes/python-tests.el
(python-indent-electric-comma-inside-multiline-string,
python-indent-electric-comma-after-multiline-string): New tests.
2017-12-02 09:35:44 -05:00
Noam Postavsky
946bb6d225 Disable electric indent for python strings (Bug#29305)
* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Do nothing when point or beginning of line is in string.
2017-12-02 09:35:40 -05:00
Noam Postavsky
35f1ed10e4 ; ChangeLog.2: Fix bug reference. 2017-12-02 09:21:50 -05:00
Yuuki Harano
ac316634e4 Fix buffer overflow in fontname conversion (Bug#29523)
* src/nsterm.m (ns_xlfd_to_fontname): Fix sscanf format.

Copyright-paperwork-exempt: yes
2017-12-02 13:45:51 +00:00
Eli Zaretskii
bf9b972843 Fix byte compilation of files with leading directories
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Pass basename
of target-file to make-temp-file, in case target-file includes a
leading directory that might not exist under TMPDIR.  See
http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00680.html
for the details.
2017-12-02 13:29:39 +02:00
Michael Albinus
ac144dc835 * lisp/files.el (make-backup-file-name-1): Fix scoping error. 2017-12-02 12:27:27 +01:00
Michael Albinus
1b351c8a47 Revert Tramp commit from 2017-11-20
* lisp/net/tramp.el (tramp-drop-volume-letter)
(tramp-handle-find-backup-file-name): Revert change from
2017-11-20.  Emacs' `make-backup-file-name-1' handles this
case now.
2017-12-02 12:09:57 +01:00
Eli Zaretskii
77cf972592 Improve documentation of buffer-list commands and features
* doc/emacs/buffers.texi (List Buffers): Add a cross-reference to
"Several Buffers", to establish a relation between the two
sections.
(Buffer Menus): Expand on customizability of alternative buffer
menu offered by bs.el.  Mention IBuffer.
Suggested by Alex Branham <alex.branham@gmail.com> in
emacs-manual-bugs@gnu.org.
2017-12-02 12:56:45 +02:00
Alan Mackenzie
bc092fcaea For help commands, ensure all keys of a mouse sequence are reported.
This solves the problem where read_key_sequence initializes and uses a global
buffer raw_keybuf, yet is called recusrsively.  The initialization is now done
elsewhere, avoiding the reinitialization of that global buffer.

* src/keyboard.c (command_loop_1, read_key_sequence_vs): Initialize
raw_event_count before calling read_key_sequence.
(read_char_x_menu_prompt): Call x_popup_menu_1 in place of Fx_popup_menu.
(init_raw_keybuf_count): New function.
(read_key_sequence): Remove initialization of raw_event_count.  Add a missing
GROW_RAW_KEYBUF invocation.

* src/keyboard.h: (init_raw_keybuf_count): New declaration.

* src/menu.c: (x_popup_menu_1): New function with the functionality of the
former Fx_popup_menu.
(Fx_popup_menu): Replace with function which initializes raw_event_count then
calls x_popup_menu_1.

* src/menu.h: (x_popup_menu_1): New declaration.
2017-12-02 10:00:56 +00:00
Eli Zaretskii
66ec92af00 Fix backing up remote files in local directories on MS-Windows
* lisp/files.el (make-backup-file-name-1): Support remote file
names correctly when they are backed up into a local directory on
MS-Windows and MS-DOS.  (Bug#29440)
2017-12-02 10:57:15 +02:00
Vibhav Pant
4856ee1717
lisp/erc/erc.el: Use inline-letevals for when args are buffer local.
* lisp/erc/erc.el: (erc-get-server-user, erc-add-server-user,
  erc-remove-server-user): Use inline-letevals for when the arguments
  refer to buffer-local variables.
2017-12-02 11:08:34 +05:30
Glenn Morris
0b6f4f2c60 * admin/gitmerge.el (gitmerge-resolve): Handle NEWS. (Bug#29366) 2017-12-01 22:06:40 -05:00
Glenn Morris
7c95819de0 Don't hard-code gitmerge.el's default merge branch
* admin/gitmerge.el (gitmerge-default-branch): Make it a variable,
defaulting to nil.
(gitmerge-emacs-version, gitmerge-default-branch): New functions.
(gitmerge): Guess the branch to merge from.
2017-12-01 22:03:05 -05:00
Glenn Morris
52097314c1 * admin/gitmerge.el (gitmerge-resolve):
Fix treatment of generated files.
2017-12-01 22:00:02 -05:00
Glenn Morris
7e61e74da7 * doc/emacs/mule.texi (Output Coding): Clarify sendmail coding. 2017-12-01 19:59:11 -05:00
John Wiegley
1e25cd79ff Revert "Fix backing up remote files in local directories on MS-Windows"
This reverts commit 8c8b673288.
2017-12-01 12:42:58 -08:00
Eli Zaretskii
f52d79500b Fix a typo in ELisp manual
* doc/lispref/sequences.texi (Sequence Functions): Fix the example
of using 'seq-uniq'.  (Bug#29524)
2017-12-01 21:56:31 +02:00
Eli Zaretskii
1ed8ff2aa9 ; * doc/lispref/eval.texi (Deferred Eval): Improve wording. 2017-12-01 20:26:35 +02:00
Eli Zaretskii
bf26fc3656 * lisp/composite.el (find-composition): Fix a typo in the doc string. 2017-12-01 18:59:13 +02:00
Glenn Morris
c643e0c3ac ; Auto-commit of loaddefs files. 2017-12-01 07:26:59 -05:00
Glenn Morris
34a21c3bf6 ; Auto-commit of loaddefs files. 2017-12-01 06:27:29 -05:00
Eli Zaretskii
8c8b673288 Fix backing up remote files in local directories on MS-Windows
* lisp/files.el (make-backup-file-name-1): Support remote file
names correctly when they are backed up into a local directory on
MS-Windows and MS-DOS.  (Bug#29440)
2017-12-01 12:40:26 +02:00
Tak Kunihiro
8eb6870be6 Fix vertical cursor motion in pixel-scroll.el
* lisp/pixel-scroll.el (pixel-scroll-up): Move cursor down
regardless of whether EOB is shown at the top.
(pixel-scroll-down) Move cursor up regardless of whether BOB
is shown at the top.  (Bug#29374)
2017-12-01 10:54:37 +02:00
Basil L. Contovounesios
625e84f156 Fix typos in doc strings of message.el
* lisp/gnus/message.el (message-header-to)
(message-header-subject, message-header-newsgroups)
(message-header-other): Fix typos in doc strings.  (Bug#29405)
2017-12-01 10:49:57 +02:00
Eli Zaretskii
9292276a44 Fix a typo in the Emacs manual
* doc/emacs/abbrevs.texi (Abbrev Concepts): Fix a typo.  Reported
by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org.
2017-12-01 10:26:58 +02:00
Eli Zaretskii
42509c0649 Improve the documentation of 'table-insert-sequence'
* doc/emacs/text.texi (Table Misc): Fix the description of
'table-insert-sequence'.  Reported by jack <jackh@gmx.co.uk> in
emacs-manual-bugs@gnu.org.
2017-12-01 10:20:47 +02:00
Michael Heerdegen
cc58d4de56 Add macros thunk-let' and thunk-let*'
* lisp/emacs-lisp/thunk.el (thunk-let, thunk-let*): New macros.
* test/lisp/emacs-lisp/thunk-tests.el:
(thunk-let-basic-test, thunk-let*-basic-test)
(thunk-let-bound-vars-cant-be-set-test)
(thunk-let-laziness-test, thunk-let*-laziness-test)
(thunk-let-bad-binding-test): New tests for `thunk-let' and
`thunk-let*.

* doc/lispref/eval.texi (Deferred Eval): New section.
* doc/lispref/elisp.texi: Update menu.
2017-12-01 08:54:05 +01:00
Paul Eggert
93dc7ae4a4 Port better to QNX
Problem reported by Elad Lahav on emacs-devel.
* configure.ac: On QNX, default CC to qcc (a GCC wrapper),
and default LDFLAGS to -N2MB so that the initial stack size
is not too small.  Also, fix misspelling of ‘qnxnto’.
2017-11-30 15:32:37 -08:00
Phillip Lord
ef183144ad Add date to dependency and source zips for snapshots
* admin/nt/dist-build/build-zips.sh,
  admin/nt/dist-build/build-dep-zips.py: Support snapshot naming
2017-11-30 22:59:39 +00:00
Michael Albinus
ad99550610 Make tramp-test42-auto-load more robust
* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Make it more robust.  Don't skip.
2017-11-30 20:31:33 +01:00