]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoOffer non-overwrite bookmark setter (Bug#15746)
Karl Fogel [Sun, 8 Nov 2015 19:16:43 +0000 (14:16 -0500)]
Offer non-overwrite bookmark setter (Bug#15746)

* lisp/bookmark.el (bookmark-set-internal): New helper function to do
  what `bookmark-set' used to do, but with more choices for overwrite
  vs push, and with minor changes to the interactive prompt format.
  (bookmark-set): Rewrite as wrapper around above.
  If overwriting, inform the user of that in the prompt.
  (bookmark-set-no-overwrite): New function, also done as wrapper.
  Bind to "M" in `ctl-x-r-map' autoloads.
  (bookmark-map): Similarly bind "M" here.

9 years ago* src/unexelf.c (NEW_PROGRAM_H): Remove unused macro (Bug#20614).
Paul Eggert [Sun, 8 Nov 2015 17:36:14 +0000 (09:36 -0800)]
* src/unexelf.c (NEW_PROGRAM_H): Remove unused macro (Bug#20614).

9 years agoELF unexec: Don't insert a new section
Alan Modra [Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)]
ELF unexec: Don't insert a new section

Reuse the .bss section instead, making it SHT_PROGBITS.  This way we
don't need to mess with symbol st_shndx, or section sh_link and
sh_info.

This does lead to eu-elflint complaints about symbols defined in .bss
with a needed version, because normally it is undefined symbols that
have needed versions;  Defined symbols have version definitions.
The exception is symbols defined by the linker in .dynbss for
variables copied from a shared library in order to avoid text
relocations, with copy relocs to copy their initial values from the
shared library.  These symbols are both defined and have needed
versions, and eu-elflink only expects to see them in SHT_NOBITS
sections.  Of course there is no real problem with having such symbols
in SHT_PROGBITS sections.  glibc ld.so handles them fine.

* unexelf.c: Delete outdated comments.
(PATCH_INDEX): Delete.
(find_section): Delete.
(unexec): Don't add a new section.  Instead reuse the last bss
section, extending it to cover dumped data.  Make bss sections
SHT_PROGBITS.  Remove all patching of sh_link, sh_info and
st_shndx.  Rename bss sections.

9 years agoELF unexec: Drive from PT_LOAD header rather than sections
Alan Modra [Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)]
ELF unexec: Drive from PT_LOAD header rather than sections

This rewrites bss handling in the ELF unexec code.  Finding bss
sections by name results in complicated code that
- does not account for all names of possible bss sections,
- assumes specific ordering of bss sections,
- can wrongly choose a SHT_NOBITS section not in the bss segment,
- incorrectly calculates bss size (no accounting for alignment gaps),
- assumes .data and .bss are in the same segment.

All of these problems and more are solved by finding the bss segment
in PT_LOAD headers, ie. the address range included in p_memsz but not
p_filesz of the last PT_LOAD header, then matching SHT_NOBITS sections
in that address range.

* unexelf.c: Delete old ppc comment.
(OLD_PROGRAM_H): Define.
(round_up): Delete.
(unexec): Don't search for bss style sections by name.  Instead,
use the last PT_LOAD header address range covered by p_memsz
but not p_filesz and match any SHT_NOBITS section in that
address range.  Simplify initialisation of section header vars.
Don't assume that section headers are above bss segment.  Move
copying of bss area out of section loop.  Align .data2 section
to 1, since it now covers the entire bss area.  For SHT_NOBITS
sections in the bss segment, leave sh_addr and sh_addralign
unchanged, but correct sh_offset.  Clear memory corresponding
to SHT_NOBITS .plt section.  Delete comment and hacks for
sections partly overlapping bss range now that the full range
is properly calculated.  Delete now dead .sbss code.
(Bug#20614)

9 years agoELF unexec: R_*_NONE relocs
Alan Modra [Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)]
ELF unexec: R_*_NONE relocs

These should be ignored on all targets.

* unexelf.c (unexec): Ignore R_*_NONE relocs for any target,
not just Alpha.  Comment on reloc size assumption.

9 years agoELF unexec: _OBJC_ symbols in bss sections
Alan Modra [Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)]
ELF unexec: _OBJC_ symbols in bss sections

This code assumed that there was only one bss section.  Rather than
checking for a particular index, check the section type.  Also, handle
the possibility that the section was SHT_NOBITS originally and is
unchanged, in which case no clearing is needed (and sh_offset isn't
necessarily valid, which can lead to a wild memset).

* unexelf.c (unexec): Properly handle _OBJC_ symbols in bss sections.

9 years agoELF unexec: Symbol table patching
Alan Modra [Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)]
ELF unexec: Symbol table patching

No st_shndx value larger than SHN_LORESERVE should be changed.
* unexelf.c (unexec): Don't adjust any st_shndx larger than
SHN_LORESERVE.  Error on SHN_XINDEX.

9 years agoELF unexec: Merge Alpha and MIPS COFF debug handling
Alan Modra [Sun, 8 Nov 2015 17:28:59 +0000 (09:28 -0800)]
ELF unexec: Merge Alpha and MIPS COFF debug handling

* unexelf.c (unexec): Merge Alpha and MIPS COFF debug handling.
Don't find .mdebug section index, find the section in the loop.
Allow for unlikely possibility that .mdebug is located at sh_offset
before bss segment, by calculating move from difference in
sh_offset rather than just assuming new_data2_size.  Simplify
cbLineOffset handling.

9 years agoELF unexec: Tidy code
Alan Modra [Sun, 8 Nov 2015 17:28:59 +0000 (09:28 -0800)]
ELF unexec: Tidy code

Separate out some of the more mechanical changes so following patches
are smaller.

* unexelf.c (unexec): Rearrange initialisation of program
header vars.  Use pointer vars in loops rather than indexing
section header array via macros.  Simplify _OBJC_ sym code
and reloc handling code.

9 years agoELF unexec: Correct section header index
Alan Modra [Sun, 8 Nov 2015 17:28:59 +0000 (09:28 -0800)]
ELF unexec: Correct section header index

First a small fix.  The code incorrectly uses "NEW_SECTION_H (n)" when
it should have been using "NEW_SECTION_H (nn)" to find the name of the
section currently being processed.  Of course, before the bss
sections, n and nn have the same value, so this doesn't matter except
in the case of .sbss.  For .sbss this probably meant .bss (most likely
the next section) was copied from memory.  A later patch removes the
bogus .sbss handling anyway.

* unexelf.c (unexec): Use correct index to look up names.

9 years agoFix Bug#21841
Michael Albinus [Sun, 8 Nov 2015 14:22:09 +0000 (15:22 +0100)]
Fix Bug#21841

* lisp/filenotify.el (file-notify--rm-descriptor):
Use `descriptor' instead of computing its value.
(file-notify--descriptor): Additional argument FILE.  Adapt all callees.
(file-notify-rm-watch): Use `descriptor' when calling file name handler.
(Bug#21841)

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 8 Nov 2015 11:23:33 +0000 (06:23 -0500)]
; Auto-commit of ChangeLog files.

9 years agoPrefer xpalloc to doubling buffers by hand
Paul Eggert [Sun, 8 Nov 2015 07:52:17 +0000 (23:52 -0800)]
Prefer xpalloc to doubling buffers by hand

* src/lread.c (grow_read_buffer): New function, which uses xpalloc.
(read1): Use it for simplicity.
* src/macros.c (store_kbd_macro_char):
* src/minibuf.c (read_minibuf_noninteractive):
* src/term.c (encode_terminal_code):
* src/xrdb.c (magic_db):
Prefer xpalloc to growing buffers by hand.
This doesn’t fix any bugs, but simplifies the code a bit.

9 years agoMerge from gnulib
Paul Eggert [Sun, 8 Nov 2015 07:36:45 +0000 (23:36 -0800)]
Merge from gnulib

This incorporates:
2015-11-05 timespec-sub: fix overflow bug; add tests
2015-11-04 intprops: revise _WRAPV macros, revert _OVERFLOW
2015-11-03 intprops: add parentheses
* lib/intprops.h, lib/timespec-add.c, lib/timespec-sub.c:
Copy from gnulib.

9 years ago;* test/automated/abbrev-tests.el: Fix a typo in a comment
Eli Zaretskii [Sun, 8 Nov 2015 03:43:00 +0000 (05:43 +0200)]
;* test/automated/abbrev-tests.el: Fix a typo in a comment

9 years agoProvide NS notification objects where required to eliminate warnings
David Reitter [Sun, 8 Nov 2015 01:43:29 +0000 (20:43 -0500)]
Provide NS notification objects where required to eliminate warnings

* nsterm.m (windowDidResize:, toggleFullScreen:):
Call notification functions with notification objects
as per delegate APIs.

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 7 Nov 2015 18:05:43 +0000 (20:05 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years agoAdd test for bug #21824
Noam Postavsky [Sat, 7 Nov 2015 18:04:00 +0000 (20:04 +0200)]
Add test for bug #21824

* test/automated/buffer-tests.el: New file.
(overlay-modification-hooks-message-other-buf): New test.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Kelvin White [Sat, 7 Nov 2015 18:03:03 +0000 (13:03 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoerc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771
Kelvin White [Sat, 7 Nov 2015 17:54:58 +0000 (12:54 -0500)]
erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771

9 years agoerc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771
l3thal [Sat, 7 Nov 2015 17:54:58 +0000 (12:54 -0500)]
erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771

9 years ago; ChangeLog.2: Fix formatting of ntlm.el 2.0.0 entry
Thomas Fitzsimmons [Sat, 7 Nov 2015 14:08:19 +0000 (09:08 -0500)]
; ChangeLog.2: Fix formatting of ntlm.el 2.0.0 entry

9 years ago; ChangeLog.2: Fix entry for soap-client 3.0.0 sync
Thomas Fitzsimmons [Sat, 7 Nov 2015 13:53:49 +0000 (08:53 -0500)]
; ChangeLog.2: Fix entry for soap-client 3.0.0 sync

9 years ago; * lisp/abbrev.el (copy-abbrev-table): Remove forgotten debug code.
Eli Zaretskii [Sat, 7 Nov 2015 13:50:40 +0000 (15:50 +0200)]
; * lisp/abbrev.el (copy-abbrev-table): Remove forgotten debug code.

9 years agoIgnore fullscreen exit notifications on NS when frame is dead
David Reitter [Sat, 7 Nov 2015 13:32:59 +0000 (08:32 -0500)]
Ignore fullscreen exit notifications on NS when frame is dead

* nsterm.m (windowDidResize:,windowWillExitFullScreen:)
  (windowDidExitFullScreen:): Return if frame is dead.
  These functions may be called when a fullscreen frame
  is closed; they are called before, not after.

May address Bug#21428.

9 years agoSpeed up lookup in redisplay--variables
Eli Zaretskii [Sat, 7 Nov 2015 13:32:45 +0000 (15:32 +0200)]
Speed up lookup in redisplay--variables

* lisp/frame.el (redisplay--variables): Make it a hash-table.

* src/xdisp.c (maybe_set_redisplay): Access redisplay--variables
as a hash-table.  This speeds up this function by an order of
magnitude: where previously a setq was slowed down by 100% by
introducing the maybe_set_redisplay test, it is now only 5%
slower.
(syms_of_xdisp) <redisplay--variables>: Doc fix.

9 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug
Artur Malabarba [Sat, 7 Nov 2015 11:25:31 +0000 (11:25 +0000)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug

The defsubst was being created as:
    (cl-defsubst name (args) ("DOC") ...)

* test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test

9 years agoUpdate doc string of hexl-mode
Mihai Olteanu [Sat, 7 Nov 2015 12:35:10 +0000 (14:35 +0200)]
Update doc string of hexl-mode

* lisp/hexl.el (hexl-mode): Doc fix.  (Bug#21800)

Copyright-paperwork-exempt: yes

9 years agoFix error in copy-abbrev-table
Eli Zaretskii [Sat, 7 Nov 2015 11:32:33 +0000 (13:32 +0200)]
Fix error in copy-abbrev-table

* lisp/abbrev.el (define-abbrev): Don't erase the :abbrev-table-modiff
property of the abbrev-table.  (Bug#21828)

* test/automated/abbrev-tests.el: New file.

9 years agoAdd test to auto-revert-tests.el for Bug#21841
Michael Albinus [Sat, 7 Nov 2015 10:05:03 +0000 (11:05 +0100)]
Add test to auto-revert-tests.el for Bug#21841

* test/automated/auto-revert-tests.el
(auto-revert-test01-auto-revert-several-files): New test.
(auto-revert-test02-auto-revert-tail-mode)
(auto-revert-test03-auto-revert-mode-dired): Rename them.

9 years ago* doc/lispref/windows.texi (Coordinates and Windows): Fix typo.
Martin Rudalics [Sat, 7 Nov 2015 08:19:03 +0000 (09:19 +0100)]
* doc/lispref/windows.texi (Coordinates and Windows): Fix typo.

9 years agoIn x_consider_frame_title don't set title of tooltip frames
Martin Rudalics [Sat, 7 Nov 2015 07:51:28 +0000 (08:51 +0100)]
In x_consider_frame_title don't set title of tooltip frames

* src/xdisp.c (x_consider_frame_title): Return immediately for
tooltip frames to avoid displaying empty tooltips.

9 years agoFixed NextStep fullscreen problem (bug#21770).
Anders Lindgren [Fri, 6 Nov 2015 21:39:02 +0000 (22:39 +0100)]
Fixed NextStep fullscreen problem (bug#21770).

* nsterm.m (ns_constrain_all_frames): Don't constrain fullscreen
frames.

9 years agoEnsure redisplay after evaluation
Eli Zaretskii [Fri, 6 Nov 2015 19:21:52 +0000 (21:21 +0200)]
Ensure redisplay after evaluation

* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Revert
last change.
* lisp/frame.el (redisplay--variables): Populate the
redisplay--variables list.
* src/xdisp.c (maybe_set_redisplay): New function.
(syms_of_xdisp) <redisplay--variables>: New variable.
* src/window.h (maybe_set_redisplay): Declare prototype.
* src/data.c (set_internal): Call maybe_set_redisplay.  (Bug#21835)

9 years ago* test/automated/subr-tests.el (subr-test-when): Fix again
Artur Malabarba [Fri, 6 Nov 2015 15:53:23 +0000 (15:53 +0000)]
* test/automated/subr-tests.el (subr-test-when): Fix again

9 years agoDon't invoke overlay modification hooks in wrong buffer
Eli Zaretskii [Fri, 6 Nov 2015 15:19:39 +0000 (17:19 +0200)]
Don't invoke overlay modification hooks in wrong buffer

* src/buffer.c (report_overlay_modification): When called with
AFTER non-zero, don't invoke overlay modification hooks if the
buffer recorded in last_overlay_modification_hooks is different
from the current buffer.  (Bug#21824)

9 years ago* admin/notes/repo: Fix a few obsolete references to Bazaar
Juanma Barranquero [Fri, 6 Nov 2015 13:06:29 +0000 (14:06 +0100)]
* admin/notes/repo: Fix a few obsolete references to Bazaar

9 years ago* test/automated/subr-tests.el (subr-test-when): Fix test
Artur Malabarba [Fri, 6 Nov 2015 11:18:23 +0000 (11:18 +0000)]
* test/automated/subr-tests.el (subr-test-when): Fix test

9 years agoAvoid division by zero crash observed by Yuan MEI.
Martin Rudalics [Fri, 6 Nov 2015 11:15:18 +0000 (12:15 +0100)]
Avoid division by zero crash observed by Yuan MEI.

See http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00194.html.

* src/dispnew.c (required_matrix_height, required_matrix_width):
Avoid division by zero.
* src/xterm.c (x_term_init): Init dpyinfo->smallest_font_height and
dpyinfo->smallest_char_width to 1.

9 years agoEnsure redisplay after "C-x C-e"
Eli Zaretskii [Fri, 6 Nov 2015 09:28:46 +0000 (11:28 +0200)]
Ensure redisplay after "C-x C-e"

* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Make sure
redisplay happens to account for any side effects of the evaluated
sexp.  (Bug#21835)

9 years ago; * CONTRIBUTE: Add section about the bug tracker
Eli Zaretskii [Fri, 6 Nov 2015 08:56:59 +0000 (10:56 +0200)]
; * CONTRIBUTE: Add section about the bug tracker

* CONTRIBUTE: Move less important sections after the more
important ones.  Add section about the bug tracker.

9 years agoSkip some file notification tests for cygwin
Michael Albinus [Fri, 6 Nov 2015 06:33:50 +0000 (07:33 +0100)]
Skip some file notification tests for cygwin

* test/automated/file-notify-tests.el (file-notify--test-with-events):
Remove argument TIMEOUT.  Adapt all callees.
(file-notify-test02-events, file-notify-test04-file-validity):
Skip for cygwin.  (Bug#21804)

9 years ago* lisp/progmodes/xref.el: require semantic/symref during compilation.
Stephen Leake [Fri, 6 Nov 2015 03:14:45 +0000 (05:14 +0200)]
* lisp/progmodes/xref.el: require semantic/symref during compilation.

9 years agoSuppress redundant Pinentry startup messages
Daiki Ueno [Fri, 6 Nov 2015 01:28:36 +0000 (10:28 +0900)]
Suppress redundant Pinentry startup messages

* lisp/net/pinentry.el (pinentry-start): Add optional QUIET
argument.
* lisp/epg.el: Declare `pinentry-start'.
(epg--start): Call `pinentry-start' with QUIET argument set.

9 years ago* doc/emacs/ack.texi (Acknowledgments): Updates.
Xue Fuqiao [Thu, 5 Nov 2015 23:30:32 +0000 (07:30 +0800)]
* doc/emacs/ack.texi (Acknowledgments): Updates.

9 years ago* test/automated/elisp-mode-test.el: Silence some run-time warnings
Juanma Barranquero [Thu, 5 Nov 2015 21:47:52 +0000 (22:47 +0100)]
* test/automated/elisp-mode-test.el: Silence some run-time warnings

(xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.

9 years agoAdd prettify symbol for \times
Tassilo Horn [Thu, 5 Nov 2015 20:12:37 +0000 (21:12 +0100)]
Add prettify symbol for \times

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
prettification support for \times.

9 years ago* test/automated/process-tests.el: Skip tests when bash is not available
Juanma Barranquero [Thu, 5 Nov 2015 18:40:42 +0000 (19:40 +0100)]
* test/automated/process-tests.el: Skip tests when bash is not available

(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for): skip-unless bash executable found.

9 years agoAdd test for bug #21831
Eli Zaretskii [Thu, 5 Nov 2015 18:12:19 +0000 (20:12 +0200)]
Add test for bug #21831

* test/automated/process-tests.el
(start-process-should-not-modify-arguments): New test.  (Bug#21831)
Suggested by Nicolas Richard <youngfrog@members.fsf.org>

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 5 Nov 2015 11:17:56 +0000 (06:17 -0500)]
; Auto-commit of loaddefs files.

9 years ago; * test/automated/elisp-mode-tests.el: Fix typo.
Juanma Barranquero [Thu, 5 Nov 2015 11:01:25 +0000 (12:01 +0100)]
; * test/automated/elisp-mode-tests.el: Fix typo.

9 years ago* lisp/emacs-lisp/eieio-compat.el: Typo caught by tests
Stefan Monnier [Wed, 4 Nov 2015 14:42:20 +0000 (09:42 -0500)]
* lisp/emacs-lisp/eieio-compat.el: Typo caught by tests

(eieio--generic-static-object-generalizer): Fix typo.
* test/automated/eieio-tests.el: Byte-compile it again.
It looks like the underlying cause of bug#17852 was fixed in the mean time.

9 years agoRevert "* lisp/subr.el (when): Use `macroexp-progn'"
Artur Malabarba [Wed, 4 Nov 2015 14:22:27 +0000 (14:22 +0000)]
Revert "* lisp/subr.el (when): Use `macroexp-progn'"

This reverts commit 8e843831eaf271801836b7a3e4dd3b4fb0bb72b8.
It breaks bootstrapping (duh).

9 years ago* lisp/files.el (report-errors): Obsolete
Artur Malabarba [Wed, 4 Nov 2015 13:00:04 +0000 (13:00 +0000)]
* lisp/files.el (report-errors): Obsolete

(normal-mode, hack-local-variables, dir-locals-find-file): Use
`with-demoted-errors' instead.

9 years ago* lisp/subr.el (when): Use `macroexp-progn'
Artur Malabarba [Wed, 4 Nov 2015 12:54:53 +0000 (12:54 +0000)]
* lisp/subr.el (when): Use `macroexp-progn'

* test/automated/subr-tests.el (subr-test-when): New test

9 years ago* lisp/progmodes/xref.el: Doc fixes
Juanma Barranquero [Wed, 4 Nov 2015 09:07:25 +0000 (10:07 +0100)]
* lisp/progmodes/xref.el: Doc fixes

(xref-make-file-location, xref-make-buffer-location, xref-make)
(xref-make-bogus-location, xref-make-match): Add cross-references.
(xref--insert-xrefs): Fix typo in docstring.

9 years agoRender fringe bitmaps correctly on NextStep (bug#21301).
Anders Lindgren [Wed, 4 Nov 2015 05:50:19 +0000 (06:50 +0100)]
Render fringe bitmaps correctly on NextStep (bug#21301).

The fringe bitmaps were inverted, the background was not transparent,
the image data was horizontally mirrored, and periodic fringe bitmaps
were not supported.

* nsimage.m ([EmacsImage initFromXBM:width:height:fg:bg:]): When
both background and foreground colors are 0, set the background
alpha channel to 0 (making the background transparent).  When
copying the image data, do this from the most significant bit
(leftmost) to the least (rightmost), to avoid mirroring.
* nsterm.m (ns_draw_fringe_bitmap): Don't invert the image bits. Add
support for periodic images (e.g. the empty line indicator).

9 years ago* lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.
Michael Heerdegen [Tue, 3 Nov 2015 22:42:24 +0000 (23:42 +0100)]
* lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.

9 years ago* admin/MAINTAINERS: Add seq-tests.el, map-tests.el, and thunk-tests.el.
Nicolas Petton [Tue, 3 Nov 2015 22:22:39 +0000 (23:22 +0100)]
* admin/MAINTAINERS: Add seq-tests.el, map-tests.el, and thunk-tests.el.

9 years ago* admin/MAINTAINERS: Add thunk.el.
Nicolas Petton [Tue, 3 Nov 2015 22:20:56 +0000 (23:20 +0100)]
* admin/MAINTAINERS: Add thunk.el.

9 years agoChange maintainer address.
Jay Belanger [Tue, 3 Nov 2015 22:16:54 +0000 (16:16 -0600)]
Change maintainer address.

* lisp/calc/calc (calc-bug-address): Change address.

9 years ago; Shorten TODO list in file-notify-tests.el
Michael Albinus [Tue, 3 Nov 2015 17:33:25 +0000 (18:33 +0100)]
; Shorten TODO list in file-notify-tests.el

9 years agoFix a stupid error in gfilenotify.c.
Michael Albinus [Tue, 3 Nov 2015 17:17:53 +0000 (18:17 +0100)]
Fix a stupid error in gfilenotify.c.

* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
if we've got a `deleted' signal AND the file name is the watched one.

9 years agoFix Bug#21816; case insensitive file system in elisp-mode-tests.el
Stephen Leake [Tue, 3 Nov 2015 14:37:53 +0000 (08:37 -0600)]
Fix Bug#21816; case insensitive file system in elisp-mode-tests.el

* test/automated/elisp-mode-tests.el (xref-elisp-test-run): Use
case-insensitive string compare for file names.
(emacs-test-dir): Add 'downcase' to cause case differences (at least on
my system).

9 years agoFix ChangeLog.2 entry for js-jsx-mode
Jackson Ray Hamilton [Tue, 3 Nov 2015 05:14:05 +0000 (21:14 -0800)]
Fix ChangeLog.2 entry for js-jsx-mode

9 years agoflymake-tests.el (warning-predicate-rx-gcc): Fix check.
Juanma Barranquero [Mon, 2 Nov 2015 17:08:52 +0000 (18:08 +0100)]
flymake-tests.el (warning-predicate-rx-gcc): Fix check.

* test/automated/flymake-tests.el (warning-predicate-rx-gcc):
Also check that "make" is available, not just "gcc".

9 years agoDocument behavior of collation on Cygwin
Ken Brown [Mon, 2 Nov 2015 16:22:51 +0000 (11:22 -0500)]
Document behavior of collation on Cygwin

* test/automated/fns-tests.el (fns-tests-collate-sort): Mark as
expected failure on Cygwin.
* doc/lispref/strings.texi (Text Comparison): Document that
punctuation and whitespace are not ignored for sorting on Cygwin.

9 years ago* build-aux/msys-to-w32: Prevent double slashes in w32 path list.
Dani Moncayo [Mon, 2 Nov 2015 10:48:47 +0000 (11:48 +0100)]
* build-aux/msys-to-w32: Prevent double slashes in w32 path list.

9 years ago* lisp/progmodes/f90.el (f90-no-block-limit):
Glenn Morris [Mon, 2 Nov 2015 02:25:42 +0000 (18:25 -0800)]
* lisp/progmodes/f90.el (f90-no-block-limit):

Add associate.  (Bug#21794)
* test/automated/f90.el (f90-test-bug21794): New test.

9 years agoFix incompatibility with TCC in test for bug#18745
Juanma Barranquero [Sat, 31 Oct 2015 23:22:13 +0000 (00:22 +0100)]
Fix incompatibility with TCC in test for bug#18745

* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.

9 years ago; ChangeLog.2 fixes
Juanma Barranquero [Sun, 1 Nov 2015 18:05:30 +0000 (19:05 +0100)]
; ChangeLog.2 fixes

9 years agoImprove completion in tramp-gvfs.el
Michael Albinus [Sun, 1 Nov 2015 12:43:35 +0000 (13:43 +0100)]
Improve completion in tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-zeroconf-parse-device-names):
Renamed from `tramp-zeroconf-parse-service-device-names'.
(tramp-zeroconf-parse-webdav-device-names): Removed.  Code merged
with `tramp-zeroconf-parse-device-names'.
(tramp-gvfs-parse-device-names): New defun.
(top): Use it when `tramp-zeroconf-parse-device-names' is not
applicable.

* lisp/net/tramp.el (tramp-set-completion-function): The argument
could also be a zeroconf service type.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 1 Nov 2015 11:34:54 +0000 (06:34 -0500)]
; Auto-commit of ChangeLog files.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Nov 2015 11:34:43 +0000 (06:34 -0500)]
; Auto-commit of loaddefs files.

9 years ago; Fix ChangeLog.2 typos and style
Juanma Barranquero [Sun, 1 Nov 2015 04:27:48 +0000 (05:27 +0100)]
; Fix ChangeLog.2 typos and style

9 years agontlm.el: Change version to 2.0.0
Thomas Fitzsimmons [Sun, 1 Nov 2015 03:11:09 +0000 (23:11 -0400)]
ntlm.el: Change version to 2.0.0

9 years agoFix bug#21762
Juanma Barranquero [Sun, 1 Nov 2015 01:55:16 +0000 (02:55 +0100)]
Fix bug#21762

* lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with
`eql' instead of `=' to accommodate the case that (syntax-after (point))
returns nil.

* test/automated/python-tests.el (python-indent-inside-paren-7):
New test.

9 years ago* test/automated/python-tests.el: Avoid warnings
Juanma Barranquero [Sun, 1 Nov 2015 00:17:16 +0000 (01:17 +0100)]
* test/automated/python-tests.el: Avoid warnings

(python-tests-with-temp-buffer, python-tests-with-temp-file):
Bind `python-indent-guess-indent-offset' to nil.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
# modified:   test/automated/python-tests.el
#

9 years ago* src/alloc.c: Silence compiler warnings
Juanma Barranquero [Sat, 31 Oct 2015 21:34:35 +0000 (22:34 +0100)]
* src/alloc.c: Silence compiler warnings

(pointers_fit_in_lispobj_p, mmap_lisp_allowed_p): #ifdef DOUG_LEA_MALLOC.

9 years ago* etc/NEWS: Fix js-jsx-mode entry punctuation
Jackson Ray Hamilton [Sat, 31 Oct 2015 20:35:31 +0000 (13:35 -0700)]
* etc/NEWS: Fix js-jsx-mode entry punctuation

9 years agoAdd JSX indentation via js-jsx-mode. (Bug#21799)
Jackson Ray Hamilton [Sat, 31 Oct 2015 06:55:24 +0000 (23:55 -0700)]
Add JSX indentation via js-jsx-mode.  (Bug#21799)

* progmodes/js.el: Add JSX indentation support.
(js-jsx-indent-line)
(js-jsx-mode): New functions.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Sat, 31 Oct 2015 13:42:28 +0000 (14:42 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoMinor fix in filenotify.el
Michael Albinus [Sat, 31 Oct 2015 13:42:16 +0000 (14:42 +0100)]
Minor fix in filenotify.el

* lisp/filenotify.el (file-notify--event-file-name)
(file-notify--event-file1-name): Normalize result with
`directory-file-name'.

9 years agoAvoid errors in redisplay--pre-redisplay-functions
Eli Zaretskii [Sat, 31 Oct 2015 13:31:17 +0000 (15:31 +0200)]
Avoid errors in redisplay--pre-redisplay-functions

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't
use 'bobp', instead compare window-point with 1.  (Bug#21730)

9 years agoMerge from gnulib.
Paul Eggert [Sat, 31 Oct 2015 02:21:29 +0000 (19:21 -0700)]
Merge from gnulib.

This incorporates:
2015-10-30 intprops: add WRAPV and const flavors for GCC 5
2015-10-25 stdalign: port to Sun C 5.9
* doc/misc/texinfo.tex, lib/intprops.h, lib/stdalign.in.h:
Copy from gnulib.

9 years agoFix a typo in a macro name
Eli Zaretskii [Fri, 30 Oct 2015 21:17:48 +0000 (23:17 +0200)]
Fix a typo in a macro name

* src/w32proc.c (_NLSCMPERROR): Fix a typo in the name of this macro.
(w32_compare_strings): Adjust for the correction.

9 years agoAdd result messages in vc-tests.el
Michael Albinus [Fri, 30 Oct 2015 17:35:58 +0000 (18:35 +0100)]
Add result messages in vc-tests.el

* test/automated/vc-tests.el (vc-test--state)
(vc-test--working-revision, vc-test--checkout-model): Add result messages.

9 years ago* test/automated/faces-tests.el: Add another test
Artur Malabarba [Fri, 30 Oct 2015 18:20:42 +0000 (18:20 +0000)]
* test/automated/faces-tests.el: Add another test

9 years ago* lisp/faces.el (faces--attribute-at-point): Fix bug
Artur Malabarba [Fri, 30 Oct 2015 18:19:26 +0000 (18:19 +0000)]
* lisp/faces.el (faces--attribute-at-point): Fix bug

introduced by previous commit.

9 years ago* test/automated/faces-tests.el: New file
Artur Malabarba [Fri, 30 Oct 2015 18:15:21 +0000 (18:15 +0000)]
* test/automated/faces-tests.el: New file

9 years ago* lisp/faces.el: Refactor common code and fix a bug
Artur Malabarba [Fri, 30 Oct 2015 15:00:37 +0000 (15:00 +0000)]
* lisp/faces.el: Refactor common code and fix a bug

(faces--attribute-at-point): New function.  Fix a bug when the
face at point is a list of faces and the desired attribute is not
on the first one.
(foreground-color-at-point, background-color-at-point): Use it.

9 years ago* etc/tutorials/TUTORIAL.translators: Fix PL names
Przemysław Wojnowski [Fri, 30 Oct 2015 13:49:12 +0000 (14:49 +0100)]
* etc/tutorials/TUTORIAL.translators: Fix PL names

9 years ago* lisp/character-fold.el: Provide `character-fold'
Juanma Barranquero [Fri, 30 Oct 2015 13:49:52 +0000 (14:49 +0100)]
* lisp/character-fold.el: Provide `character-fold'

9 years agoAdd more faces for Gnus and ivy
Tassilo Horn [Fri, 30 Oct 2015 12:39:43 +0000 (13:39 +0100)]
Add more faces for Gnus and ivy

* etc/themes/tsdh-dark-theme.el (tsdh-dark): add more faces for Gnus and
ivy.

9 years agoSome minor fixes for tramp-gvfs.el
Michael Albinus [Fri, 30 Oct 2015 12:11:35 +0000 (13:11 +0100)]
Some minor fixes for tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
An attribute returned by gvfs-info might be empty.  In case of
undetermined uid or gid, return "UNKNOWN" or -1, respectively.
(tramp-zeroconf-parse-service-device-names): New defun.
Derived from `tramp-zeroconf-parse-workstation-device-names'.
(top): Add completion functions for "afp" and "smb" methods.

9 years ago* test/automated/character-fold-tests.el: New file
Artur Malabarba [Fri, 30 Oct 2015 12:18:46 +0000 (12:18 +0000)]
* test/automated/character-fold-tests.el: New file

9 years ago* test/automated/sort-tests.el: New file
Artur Malabarba [Thu, 29 Oct 2015 13:21:48 +0000 (13:21 +0000)]
* test/automated/sort-tests.el: New file

Tests in this file are randomly generated and then tested with
regular, reverse, and case-fold sorting.

9 years agoDescribe known problems with pinning Emacs to taskbar
Eli Zaretskii [Fri, 30 Oct 2015 10:28:00 +0000 (12:28 +0200)]
Describe known problems with pinning Emacs to taskbar

* etc/PROBLEMS: Describe the problem with pinning Emacs to taskbar
on Windows 10.  For the details, see the discussion starting at
http://lists.gnu.org/archive/html/help-emacs-windows/2015-09/msg00000.html.

9 years ago* lisp/isearch.el: Avoid an error that blocks isearch
Artur Malabarba [Fri, 30 Oct 2015 11:04:50 +0000 (11:04 +0000)]
* lisp/isearch.el: Avoid an error that blocks isearch

(isearch-update): Don't error if `isearch--current-buffer' has
been killed.

* test/automated/isearch-tests.el (isearch--test-update): New
file.

9 years agoFix documentation of 'beginning/end-of-buffer'
Phil Sainty [Fri, 30 Oct 2015 10:05:33 +0000 (12:05 +0200)]
Fix documentation of 'beginning/end-of-buffer'

* lisp/simple.el (beginning-of-buffer, end-of-buffer): Clarify
conditions under which the mark will be pushed at the previous
position.  (Bug#21748)