]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoPut "--color" before the other options in grep-command
Dmitry Gutov [Sun, 28 Jun 2015 01:29:03 +0000 (04:29 +0300)]
Put "--color" before the other options in grep-command

* lisp/progmodes/grep.el (grep-compute-defaults): Put "--color"
before the other options in grep-command (bug#20912).

9 years agoAdd --color Grep option to the command dynamically
Dmitry Gutov [Fri, 26 Jun 2015 17:21:50 +0000 (20:21 +0300)]
Add --color Grep option to the command dynamically

* lisp/progmodes/grep.el (grep-template, grep-find-template):
Update the description for <C>.  (Bug#20728)
(grep-compute-defaults): Don't add the --color option to
grep-options.  Only add it to grep-command.
(grep-expand-keywords): Expand the env value opts into <C>.
(grep-expand-template): Replace cf in the env with the opts list,
that can include -i and --color.

* lisp/progmodes/xref.el (xref-collect-matches): Do not remove
"--color=always" from the template, because we don't have to.

9 years agocl-extra fixes for most-negative-fixnum
Paul Eggert [Sat, 27 Jun 2015 19:16:51 +0000 (12:16 -0700)]
cl-extra fixes for most-negative-fixnum

* lisp/emacs-lisp/cl-extra.el (cl-gcd, cl-lcm, cl-random):
Don't mishandle an argument equal to most-negative-fixnum,
whose absolute value equals itself.
(cl-gcd, cl-lcm): Use dolist rather than doing it by hand.

9 years agoInitialize cl--gensym-counter to 0
Paul Eggert [Sat, 27 Jun 2015 17:57:02 +0000 (10:57 -0700)]
Initialize cl--gensym-counter to 0

Previously it was initialized to a random value, which made it
harder to reproduce earlier Emacs runs.  The need for a random
value went away when Emacs introduced and used the #: syntax for
uninterned symbols (Bug#20862).
* doc/misc/cl.texi (Creating Symbols, Common Lisp Compatibility):
Document that cl--gensym-counter now starts with 0.
* lisp/emacs-lisp/cl-lib.el (cl--gensym-counter): Remove.
(cl--random-time): Move to near only remaining use.
* lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Initialize to 0.

9 years agoImprove docstring for macroexp-let2
Paul Eggert [Sat, 27 Jun 2015 15:34:44 +0000 (08:34 -0700)]
Improve docstring for macroexp-let2

* lisp/emacs-lisp/macroexp.el (macroexp-let2):
Improve as per suggestion by RMS in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00621.html
Also, rename args to match new doc string.

9 years agoFix VC test suite on MS-Windows
Eli Zaretskii [Sat, 27 Jun 2015 11:27:23 +0000 (14:27 +0300)]
Fix VC test suite on MS-Windows

* lisp/vc/vc-svn.el (vc-svn-create-repo): Make sure the file: URL
always starts with 3 slashes after the colon.

* test/automated/vc-tests.el (vc-test--create-repo-function): Use
'w32-application-type' to invoke CVS on MS-Windows with properly
formatted CVSROOT directory name.

9 years agoAdd a new function w32-application-type
Eli Zaretskii [Sat, 27 Jun 2015 10:48:26 +0000 (13:48 +0300)]
Add a new function w32-application-type

* src/w32proc.c (Fw32_application_type): New function.
; * etc/NEWS: Mention w32-application-type.

9 years agoAvoid error in TLS connections due to incorrect format
Eli Zaretskii [Sat, 27 Jun 2015 08:00:38 +0000 (11:00 +0300)]
Avoid error in TLS connections due to incorrect format

* src/gnutls.c (Fgnutls_boot): Use the %x conversion specifier in
the call to 'error', instead of the unsupported %u.  Reported by
lo2net <fangtao0901@gmail.com>.  (Bug#20908)

9 years ago; * etc/NEWS: Placeholder entry for recent prog-mode changes.
Glenn Morris [Sat, 27 Jun 2015 00:25:31 +0000 (20:25 -0400)]
; * etc/NEWS: Placeholder entry for recent prog-mode changes.

9 years ago* lisp/replace.el (replace-search): Fix regexp case (bug#20901)
Artur Malabarba [Fri, 26 Jun 2015 18:01:50 +0000 (19:01 +0100)]
* lisp/replace.el (replace-search): Fix regexp case (bug#20901)

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Fri, 26 Jun 2015 10:04:28 +0000 (13:04 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years agoFix indentation for with-output-to-string
Leo Liu [Fri, 26 Jun 2015 10:02:30 +0000 (18:02 +0800)]
Fix indentation for with-output-to-string

* lisp/emacs-lisp/cl-indent.el: Fix indentation for
  `with-output-to-string' in elisp.

  Revert "lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string"
  This reverts commit 659199f2ca5f283fb246faa78a244e5ca25f53dd.

9 years agoMinor corrections in ELisp manual
Eli Zaretskii [Fri, 26 Jun 2015 10:03:02 +0000 (13:03 +0300)]
Minor corrections in ELisp manual

* doc/lispref/nonascii.texi (Character Properties): Correct
inaccuracies in description of values of the Unicode properties.

9 years agoFix invisible mouse pointers on Windows.
Eli Zaretskii [Fri, 26 Jun 2015 06:45:29 +0000 (08:45 +0200)]
Fix invisible mouse pointers on Windows.

* src/w32fns.c: Include windowsx.h.
(w32_wnd_proc): If the mouse moved and the mouse pointer is
invisible, make it visible again even when the main (Lisp)
thread is busy.
* src/w32term.c (w32_toggle_invisible_pointer): Rather then
garbaging the frame have the input thread call SetCursor.

9 years agoProvide invisible mouse pointers on Windows. (Bug#6105) (Bug#12922)
Martin Rudalics [Fri, 26 Jun 2015 06:28:08 +0000 (08:28 +0200)]
Provide invisible mouse pointers on Windows.  (Bug#6105) (Bug#12922)

* src/w32fns.c (w32_wnd_proc): Handle f->pointer_invisible
for WM_SETCURSOR and WM_EMACS_SETCURSOR cases.
* src/w32term.c (w32_hide_hourglass): Handle
f->pointer_invisible.
(w32_toggle_invisible_pointer): New function.
(w32_create_terminal): Add w32_toggle_invisible_pointer as
toggle_invisible_pointer_hook for this terminal.

9 years agoDoc fix for deletion commands
Xue Fuqiao [Fri, 26 Jun 2015 01:05:40 +0000 (09:05 +0800)]
Doc fix for deletion commands

'delete-char' does not respect the value of 'delete-active-region'.
* doc/emacs/killing.texi (Deletion):
Fix documentation for some single-char deletion commands.

9 years ago* doc/emacs/help.texi (Apropos):
Xue Fuqiao [Fri, 26 Jun 2015 00:16:04 +0000 (08:16 +0800)]
* doc/emacs/help.texi (Apropos):
Improve documentation of 'apropos-do-all'.

9 years ago* doc/emacs/help.texi (Help Summary):
Xue Fuqiao [Thu, 25 Jun 2015 23:45:57 +0000 (07:45 +0800)]
* doc/emacs/help.texi (Help Summary):
Improve documentation of 'describe-mode'.

9 years agoFix submake dependency bug with .h files
Paul Eggert [Thu, 25 Jun 2015 20:31:18 +0000 (13:31 -0700)]
Fix submake dependency bug with .h files

* src/Makefile.in ($(libsrc)/make-docfile$(EXEEXT)):
Depend on $(lib)/libgnu.a, so that we build $(lib)/*/*.h
before the submake in $(libsrc) would spin off a subsubmake
for $(lib) in parallel with our submake for $(lib) (Bug#20894).

9 years ago* lisp/character-fold.el (character-fold-table): Reuse `table'
Artur Malabarba [Thu, 25 Jun 2015 17:53:33 +0000 (18:53 +0100)]
* lisp/character-fold.el (character-fold-table): Reuse `table'

9 years agoTranslate undisplayable ‘ to `
Paul Eggert [Thu, 25 Jun 2015 14:21:20 +0000 (07:21 -0700)]
Translate undisplayable ‘ to `

* doc/lispref/help.texi (Keys in Documentation):
* lisp/international/mule-cmds.el (set-locale-environment):
* lisp/term/w32console.el (terminal-init-w32console):
* src/doc.c (Fsubstitute_command_keys, Vhelp_quote_translation):
If ‘ is not displayable, transliterate it to `, not to '.  See:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00542.html

9 years agoFix C99 incompatibilities in Cairo code
Paul Eggert [Thu, 25 Jun 2015 14:08:23 +0000 (07:08 -0700)]
Fix C99 incompatibilities in Cairo code

* src/image.c (xpm_load) [USE_CAIRO]:
* src/xterm.c (x_cr_accumulate_data) [USE_CAIRO]:
Fix pointer signedness problem.

9 years agolisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string
Oleh Krehel [Thu, 25 Jun 2015 11:14:29 +0000 (13:14 +0200)]
lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string

* lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function):
  `with-output-to-string' should have the same indent as `progn'.
  This is in line with the declaration of `with-output-to-string'.

9 years agoGet ‘./configure; make -C src emacs’ to work
Paul Eggert [Thu, 25 Jun 2015 06:34:26 +0000 (23:34 -0700)]
Get ‘./configure; make -C src emacs’ to work

Without this fix, lib/fcntl.h isn't built in time (Bug#20894).
* lib-src/Makefile.in (../lib/libgnu.a):
* src/Makefile.in ($(lib)/libgnu.a): Build all, not libgnu.a.

9 years agoFix GC bugs --with-wide-int and Qnil == 0
Paul Eggert [Thu, 25 Jun 2015 03:10:03 +0000 (20:10 -0700)]
Fix GC bugs --with-wide-int and Qnil == 0

Use the same alignment for the !USE_LSB_TAG case as for the
more-typical USE_LSB_TAG case.  The attempt to support arbitrary
alignments with !USE_LSB_TAG had subtle bugs in garbage collection
once we changed the representation of symbols so that Qnil == 0.
Problem reported by Eli Zaretskii (Bug#20862).
* src/alloc.c (XMALLOC_HEADER_ALIGNMENT) [XMALLOC_OVERRUN_CHECK]:
* src/alloc.c (vector_alignment, union aligned_Lisp_Symbol)
(union aligned_Lisp_Misc, maybe_lisp_pointer, pure_alloc):
Use same alignment for !USE_LSB_TAG as for USE_LSB_TAG.
* src/alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): Remove.
This optimization in the !USE_LSB_TAG case is no longer valid when
symbols are represented via offsets.  Change the only use to
assume that pointers might hide in objects.
* src/lisp.h (alignas) [!USE_LSB_TAG]:
Require support in this case, too.
(TAG_SYMOFFSET, XSYMBOL) [!USE_LSB_TAG]: Do not shift the offset.
This is OK, because the !USE_LSB_TAG case now applies only when
Lisp_Object is wider than void *, so there's no longer any need
to shift the offset.  Not shifting the offset means that
symbol representations have the same alignment as pointers,
which the GC assumes.

9 years ago* doc/lispintro/emacs-lisp-intro.texi (Data types):
Xue Fuqiao [Thu, 25 Jun 2015 02:23:03 +0000 (10:23 +0800)]
* doc/lispintro/emacs-lisp-intro.texi (Data types):
Improve documentation of 'substring'.

9 years ago* lisp/character-fold.el (character-fold-table): Fix table generation
Artur Malabarba [Thu, 25 Jun 2015 01:52:02 +0000 (02:52 +0100)]
* lisp/character-fold.el (character-fold-table): Fix table generation

9 years ago* nextstep/Makefile.in (all): Make it the first target.
Glenn Morris [Thu, 25 Jun 2015 01:26:29 +0000 (21:26 -0400)]
* nextstep/Makefile.in (all): Make it the first target.

(../src/emacs${EXEEXT}): Add rule for making it.

9 years ago; Fix comment typos
Glenn Morris [Thu, 25 Jun 2015 01:25:01 +0000 (21:25 -0400)]
; Fix comment typos

9 years ago; Fix email address in ChangeLog
Artur Malabarba [Wed, 24 Jun 2015 22:22:26 +0000 (23:22 +0100)]
; Fix email address in ChangeLog

9 years ago; make change-history-commit
Artur Malabarba [Wed, 24 Jun 2015 22:17:27 +0000 (23:17 +0100)]
; make change-history-commit

9 years ago* etc/NEWS: Fix mention to old function name
Artur Malabarba [Wed, 24 Jun 2015 22:15:45 +0000 (23:15 +0100)]
* etc/NEWS: Fix mention to old function name

9 years ago* lisp/character-fold.el: New file (Bug#20887)
Artur Malabarba [Wed, 24 Jun 2015 19:01:10 +0000 (20:01 +0100)]
* lisp/character-fold.el: New file (Bug#20887)

(character-fold-to-regexp): New function.

* lisp/replace.el (replace-search): Check value of
`character-fold-search'.

* lisp/isearch.el: Move character-folding code to
character-fold.el
(isearch-toggle-character-fold): New command.
(isearch-mode-map): Bind it to "\M-sf".
(isearch-mode): Check value of `character-fold-search'.

9 years ago* lisp/subr.el (remove-from-invisibility-spec): Handle the t case
Stefan Monnier [Wed, 24 Jun 2015 20:39:52 +0000 (16:39 -0400)]
* lisp/subr.el (remove-from-invisibility-spec): Handle the t case

* lisp/subr.el (remove-from-invisibility-spec): Make sure `element'
is visible even if it's not yet in buffer-invisibility-spec (bug#20468).

9 years ago* lisp/progmodes/xref.el: Avoid init-args in oref.
Stefan Monnier [Wed, 24 Jun 2015 20:32:09 +0000 (16:32 -0400)]
* lisp/progmodes/xref.el: Avoid init-args in oref.

* lisp/progmodes/xref.el (xref-location-group, xref-location-marker)
(xref--insert-xrefs, xref-collect-references): Avoid init-args in oref.

9 years ago* Makefile.in (install-arch-dep): Don't set sticky bit on the binary.
Glenn Morris [Wed, 24 Jun 2015 19:47:01 +0000 (15:47 -0400)]
* Makefile.in (install-arch-dep): Don't set sticky bit on the binary.

; I don't think this actually does anything any more anyway,
; on at least the vast majority of the platforms running Emacs today.

9 years ago* lisp/gnus/nnmaildir.el: Silence lexical warnings
Stefan Monnier [Wed, 24 Jun 2015 13:30:40 +0000 (09:30 -0400)]
* lisp/gnus/nnmaildir.el: Silence lexical warnings

* lisp/gnus/nnmaildir.el (nnmaildir--prepare): Use a more
functional style.
(nnmaildir--update-nov): Remove unused var `numdir'.
(nnmaildir-request-type, nnmaildir--scan, nnmaildir-request-newgroups)
(nnmaildir-request-group, nnmaildir-request-create-group)
(nnmaildir-request-post, nnmaildir-request-move-article)
(nnmaildir-request-accept-article, nnmaildir-active-number): Mark unused args.
(nnmaildir-get-new-mail, nnmaildir-group-alist)
(nnmaildir-active-file): Declare.
(nnmaildir-request-scan): Remove unused vars `group' and `grp-dir'.
(nnmaildir-request-update-info): Remove unused vars `dotfile', `num',
`mark', `end', `new-mark', and `mark-sym'.
(nnmaildir-retrieve-headers): Remove unused args `srv-dir', `dir',
`nlist2'.
(nnmaildir-request-expire-articles):
Remove unused vars `article', `stop' and `nlist2'.
(nnmaildir-request-set-mark): Remove unused vars `begin', `article' and
`end'.  Use nnmaildir--article when dyn-binding is needed.
Give the value directly in the `let' for `del-mark', `del-action',
`add-action', and `set-action'.  Don't use `add-to-list' on a local var.
(nnmaildir-close-server): Declare those local vars that need to be
dyn-bound.

9 years ago* src/keyboard.h (kbd_buffer_store_event_hold): Remove unused local.
Paul Eggert [Wed, 24 Jun 2015 01:07:46 +0000 (18:07 -0700)]
* src/keyboard.h (kbd_buffer_store_event_hold): Remove unused local.

9 years agoPort selection info fix to clang
Paul Eggert [Wed, 24 Jun 2015 01:01:55 +0000 (18:01 -0700)]
Port selection info fix to clang

* src/keyboard.h (kbd_buffer_store_event_hold):
Don't assume C11 semantics for alignof (Bug#20756).

9 years agoFix bug that munged selection info
Paul Eggert [Tue, 23 Jun 2015 23:29:27 +0000 (16:29 -0700)]
Fix bug that munged selection info

On some optimizing C compilers, copying a structure did not
copy the padding bytes between elements, and the type punning
between struct input_data and struct selection_input_data did
not work.  Change the C code to use a proper union type instead.
Problem reported by YAMAMOTO Mitsuharu (Bug#20756).
* src/keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr)
(readable_events, discard_mouse_events, kbd_buffer_events_waiting)
(kbd_buffer_get_event, process_special_events, stuff_buffered_input)
(mark_kboards):
Use union buffered_input_event, not struct input_event.
(clear_event, deliver_input_available_signal, process_special_events):
Remove unnecessary forward decls.
(kbd_buffer_store_buffered_event): New function, mostly just the
old kbd_buffer_store_event_hold, except its argument is of type
union buffered_input_event, not struct input_event.
(kbd_buffer_unget_event): Define only if HAVE_X11, since it's
not needed otherwise.  Argument is now of type
struct selection_input_event *, not struct input_event *.
All callers changed.
(clear_event): Arg is now of type union buffered_input_event *,
not struct input_event *.  All callers changed.
* src/keyboard.h [HAVE_X11]: Include "xterm.h".
(union buffered_input_event): New type.
(kbd_buffer_store_event_hold): Now an inline function,
defined here.
* src/termhooks.h (EVENT_KIND_WIDTH): New constant.
(struct input_event): Use it.
* src/xselect.c (struct selection_event_queue):
Make elements be of type struct selection_input_event,
not struct input_event.
(selection_input_event_equal): New static function.
(x_queue_event): Use it.
(x_queue_event, x_decline_selection_request)
(x_selection_current_request, x_reply_selection_request)
(x_handle_selection_request, x_handle_selection_clear)
(x_handle_selection_event): Use struct selection_input_event,
not struct input_event.  All callers changed.
(x_convert_selection): Omit unused first arg.  All callers changed.
(Fx_disown_selection_internal): Omit unnecessary union.
* src/xterm.c (handle_one_xevent): Use new union buffered_input_event
rather than rolling our own equivalent.  Prefer sie.kind when
setting up that kind of structure.
Call kbd_buffer_store_buffered_event, not kbd_buffer_store_event_hold.
* src/xterm.h (struct selection_input_event: Use EVENT_KIND_WIDTH.
(SELECTION_EVENT_DISPLAY, SELECTION_EVENT_DPYINFO)
(SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION)
(SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY)
(SELECTION_EVENT_TIME, x_handle_selection_event):
Arg is now of type struct selection_input_event *)
not struct input_event *.  All callers changed.

9 years ago* Makefile.in (install-arch-dep): Simplify with Make conditionals.
Glenn Morris [Tue, 23 Jun 2015 20:44:07 +0000 (16:44 -0400)]
* Makefile.in (install-arch-dep): Simplify with Make conditionals.

9 years ago* lisp/isearch.el: Fold many unicode characters to ASCII
Artur Malabarba [Tue, 27 Jan 2015 16:08:01 +0000 (14:08 -0200)]
* lisp/isearch.el: Fold many unicode characters to ASCII

(isearch-character-fold-search, isearch--character-fold-extras)
(isearch--character-fold-table): New variable.
(isearch--character-folded-regexp): New function.
(isearch-search-fun-default): Use them.

* lisp/replace.el (replace-character-fold): New variable.
(replace-search): Use it.

* etc/NEWS: Document it.

9 years agoCheck for an input event before showing a dialog box. (Bug#20813)
Glenn Morris [Tue, 23 Jun 2015 18:02:24 +0000 (14:02 -0400)]
Check for an input event before showing a dialog box.  (Bug#20813)

* lisp/subr.el (y-or-n-p):
* src/fns.c (Fyes_or_no_p): Check last-input-event as well
as last-nonmenu-event.

9 years agoRespect ‘switch-to-visible-buffer’ more rigidly. (Bug#20861)
Jürgen Hartmann [Tue, 23 Jun 2015 15:43:58 +0000 (17:43 +0200)]
Respect ‘switch-to-visible-buffer’ more rigidly.  (Bug#20861)

* lisp/window.el (switch-to-visible-buffer): Doc adjustment.
(switch-to-prev-buffer, switch-to-next-buffer): Respect
switch-to-visible-buffer independent of the windows history.

Copyright-paperwork-exempt: yes

9 years ago* src/keyboard.c (last_timer_event): Remove unused var.
Paul Eggert [Tue, 23 Jun 2015 14:49:44 +0000 (07:49 -0700)]
* src/keyboard.c (last_timer_event): Remove unused var.

9 years ago* test/automated/package-test.el (package-test-update-listing):
Artur Malabarba [Tue, 23 Jun 2015 08:39:27 +0000 (09:39 +0100)]
* test/automated/package-test.el (package-test-update-listing):

Fix test.

9 years agoRevert 2014-06-25 nextstep/Makefile change.
Glenn Morris [Tue, 23 Jun 2015 06:53:22 +0000 (23:53 -0700)]
Revert 2014-06-25 nextstep/Makefile change.

* nextstep/Makefile.in (${ns_appbindir}): Remove rule.
(${ns_appbindir}/Emacs, links): Create ns_appbindir in the rule,
not as an order-only prerequisite.

9 years ago* configure.ac (--with-ns): Enable by default on OS X.
Glenn Morris [Tue, 23 Jun 2015 02:03:33 +0000 (22:03 -0400)]
* configure.ac (--with-ns): Enable by default on OS X.

; * etc/NEWS, nextstep/INSTALL: Mention this.

9 years agoFix shell-for/backward-command to exclude spaces
Leo Liu [Tue, 23 Jun 2015 01:19:36 +0000 (09:19 +0800)]
Fix shell-for/backward-command to exclude spaces

* lisp/shell.el (shell-forward-command, shell-backward-command):
  Handle the 'move case from re-search-forward/backward.

  fixes debbugs:20873

9 years ago* lisp/replace.el (query-replace-read-from): Add separator to
Juri Linkov [Mon, 22 Jun 2015 22:59:23 +0000 (01:59 +0300)]
* lisp/replace.el (query-replace-read-from): Add separator to

the local binding of text-property-default-nonsticky.  (Bug#20690)

9 years ago* lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.
Juri Linkov [Mon, 22 Jun 2015 22:45:33 +0000 (01:45 +0300)]
* lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.

(Bug#20785)

9 years agoEnable CPU profiling on Cygwin
Ken Brown [Mon, 22 Jun 2015 21:38:35 +0000 (17:38 -0400)]
Enable CPU profiling on Cygwin

* src/syssignal.h [CYGWIN] (PROFILER_CPU_SUPPORT): Revert previous
change that undefined this.
(SIGEV_SIGNAL): Ensure that this is defined as a macro.
* src/profiler.c [CYGWIN] (timer_getoverrun): Define as a macro on
  Cygwin.

9 years agoImprove diagnostics of profiler-cpu-start
Ken Brown [Mon, 22 Jun 2015 19:26:44 +0000 (15:26 -0400)]
Improve diagnostics of profiler-cpu-start

* src/profiler.c (setup_cpu_timer): Change return type to 'int';
return -1 if the sampling interval is invalid.
(Fprofiler_cpu_start): Improve error message if 'setup_cpu_timer'
fails.  (Bug#20843)

9 years ago* lisp/emacs-lisp/package.el: Exclude packages by name
Artur Malabarba [Mon, 22 Jun 2015 18:00:55 +0000 (19:00 +0100)]
* lisp/emacs-lisp/package.el: Exclude packages by name

(package-hidden-regexps): New variable.
(package-menu--refresh): Use it.
(package-menu-hide-package): New command.

9 years ago* lisp/emacs-lisp/package.el: Rename hide-obsolete to toggle-hiding
Artur Malabarba [Mon, 22 Jun 2015 15:20:46 +0000 (16:20 +0100)]
* lisp/emacs-lisp/package.el: Rename hide-obsolete to toggle-hiding

9 years agoFix debug-timer-check on systems without HAVE_TIMERFD
Eli Zaretskii [Mon, 22 Jun 2015 16:11:45 +0000 (19:11 +0300)]
Fix debug-timer-check on systems without HAVE_TIMERFD

* src/atimer.c (Fdebug_timer_check) [!HAVE_TIMERFD]: Actively run
the expired timers, since wait_reading_process_output doesn't.
(debug_timer_callback): Enlarge the tolerance to 20 msec.

9 years agoFix RCS crashes in vc-test
Eli Zaretskii [Mon, 22 Jun 2015 16:06:23 +0000 (19:06 +0300)]
Fix RCS crashes in vc-test

* lisp/vc/vc-rcs.el (vc-rcs-register): Avoid crashes with some old
ports of 'ci' on MS-Windows by always passing the -t- switch.

9 years ago* doc/emacs/package.texi (Packages):
Glenn Morris [Mon, 22 Jun 2015 15:35:21 +0000 (08:35 -0700)]
* doc/emacs/package.texi (Packages):

* doc/emacs/trouble.texi (Known Problems): Remove faq cross-references.

9 years ago* doc/misc/efaq-w32.texi (Downloading): Copyedits. (Bug#20851)
Glenn Morris [Mon, 22 Jun 2015 07:02:34 +0000 (00:02 -0700)]
* doc/misc/efaq-w32.texi (Downloading): Copyedits.  (Bug#20851)

9 years agoPort tests to help-quote-translation
Paul Eggert [Mon, 22 Jun 2015 06:09:34 +0000 (23:09 -0700)]
Port tests to help-quote-translation

* test/automated/ert-x-tests.el (ert-test-describe-test):
* test/automated/package-test.el (package-test-describe-package)
(package-test-signed): Allow straight quotes, too.

9 years agoMake find-function-on-key use the current window
Dmitry Gutov [Mon, 22 Jun 2015 00:23:38 +0000 (03:23 +0300)]
Make find-function-on-key use the current window

* lisp/emacs-lisp/find-func.el (find-function-on-key-do-it):
Extract from `find-function-on-key', add a second argument.
(find-function-on-key): Use it (bug#19679).
(find-function-on-key-other-window)
(find-function-on-key-other-frame): New commands.

9 years agoRevert "Define `map-elt' as a generalized variable"
Nicolas Petton [Sun, 21 Jun 2015 21:44:50 +0000 (23:44 +0200)]
Revert "Define `map-elt' as a generalized variable"

This reverts commit 8b6d82d3ca86f76ed964063b3941a7c6ab0bf1c6.

9 years agoDrop support for CPU profiling on Cygwin
Ken Brown [Sun, 21 Jun 2015 20:18:48 +0000 (16:18 -0400)]
Drop support for CPU profiling on Cygwin

* src/syssignal.h (PROFILER_CPU_SUPPORT): Don't define on Cygwin.
(Bug#20843)

9 years agoFix some “nested” quoting confusion in doc strings
Paul Eggert [Sun, 21 Jun 2015 19:34:11 +0000 (12:34 -0700)]
Fix some “nested” quoting confusion in doc strings

* lisp/emacs-lisp/advice.el (ad-map-arglists):
* lisp/kermit.el (kermit-clean-on):
* lisp/mh-e/mh-comp.el (mh-repl-group-formfile):
* src/keyboard.c (Frecursive_edit):
Use curved quotes when quoting text containing apostrophe,
so that the apostrophe isn't curved in the output.

9 years agoDefine `map-elt' as a generalized variable
Nicolas Petton [Sun, 21 Jun 2015 18:46:08 +0000 (20:46 +0200)]
Define `map-elt' as a generalized variable

* lisp/emacs-lisp/map.el (map-elt): Define a gv-expander.

* lisp/emacs-lisp/map.el (map--dispatch): Tighten the code.

* lisp/emacs-lisp/map.el (map-put): Redefine it as a function using a
`setf' with `map-elt'.

* test/automated/map-tests.el: Comment out `test-map-put-literal'.

9 years agoImprove error handling in tramp-adb.el
Michael Albinus [Sun, 21 Jun 2015 18:36:14 +0000 (20:36 +0200)]
Improve error handling in tramp-adb.el

* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
Improve error handling.

9 years agoReuse `alist-get' in map.el
Nicolas Petton [Sun, 21 Jun 2015 18:25:28 +0000 (20:25 +0200)]
Reuse `alist-get' in map.el

* lisp/emacs-lisp/map.el (map-elt): Use `alist-get' to retrieve alist
elements.

9 years agoFix bytecomp-tests--warnings when $TMPDIR has a long name
Eli Zaretskii [Sun, 21 Jun 2015 17:27:48 +0000 (20:27 +0300)]
Fix bytecomp-tests--warnings when $TMPDIR has a long name

* test/automated/bytecomp-tests.el (bytecomp-tests--warnings):
Allow the warning to begin on the 3rd, not only 2nd line, which
happens if temporary-file-directory has a very long name.

9 years agoExpect 2 icalendar tests to fail on MS-Windows
Eli Zaretskii [Sun, 21 Jun 2015 15:10:49 +0000 (18:10 +0300)]
Expect 2 icalendar tests to fail on MS-Windows

* test/automated/icalendar-tests.el (icalendar-import-with-timezone)
(icalendar-real-world): Make them expected failures on MS-Windows.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 21 Jun 2015 10:24:05 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years agoImprove port of settings UI to older displays
Paul Eggert [Sat, 20 Jun 2015 20:35:29 +0000 (13:35 -0700)]
Improve port of settings UI to older displays

* lisp/cus-start.el (standard): Don't assume curved quotes are
easily distinguishable when users are tinkering with a setting
that affects how curved quotes are generated.

9 years agoFix quoting in electric-quote-mode doc string
Paul Eggert [Sat, 20 Jun 2015 20:33:33 +0000 (13:33 -0700)]
Fix quoting in electric-quote-mode doc string

* lisp/electric.el (electric-quote-mode): Fix quoting.
This is a fallout from the recent change introducing
‘help-quote-translation’.

9 years agoSpelling fix
Paul Eggert [Sat, 20 Jun 2015 17:24:08 +0000 (10:24 -0700)]
Spelling fix

9 years ago* doc/misc/texinfo.tex, lib/set-permissions.c: Merge from gnulib.
Paul Eggert [Sat, 20 Jun 2015 17:16:36 +0000 (10:16 -0700)]
* doc/misc/texinfo.tex, lib/set-permissions.c: Merge from gnulib.

9 years ago* src/doc.c (syms_of_doc): Remove unused symbols.
Paul Eggert [Sat, 20 Jun 2015 17:15:24 +0000 (10:15 -0700)]
* src/doc.c (syms_of_doc): Remove unused symbols.

9 years agoIn ‘window-state-put’ undedicate target window. (Bug#20848)
Martin Rudalics [Sat, 20 Jun 2015 08:16:07 +0000 (10:16 +0200)]
In ‘window-state-put’ undedicate target window.  (Bug#20848)

* lisp/window.el (window-state-put): Undedicate target window
before putting STATE into it.  (Bug#20848)

9 years agoMerge from origin/emacs-24
Paul Eggert [Fri, 19 Jun 2015 23:45:50 +0000 (16:45 -0700)]
Merge from origin/emacs-24

a5e6f33 Fixes: debbugs:20832
b9f02cf Fixes: debbugs:20832

9 years agoFix file-in-directory-p when the directory is UNC
Eli Zaretskii [Fri, 19 Jun 2015 17:47:44 +0000 (20:47 +0300)]
Fix file-in-directory-p when the directory is UNC

* lisp/files.el (file-in-directory-p): Support files and
directories that begin with "//".  (Bug#20844)

9 years agoFixes: debbugs:20832
Stephen Berman [Fri, 19 Jun 2015 15:03:49 +0000 (17:03 +0200)]
Fixes: debbugs:20832
* lisp/calendar/todo-mode.el (todo-show): Don't visit todo file
in the minibuffer.

9 years agoFixes: debbugs:20832
Nicolas Richard [Fri, 19 Jun 2015 14:57:26 +0000 (16:57 +0200)]
Fixes: debbugs:20832
* lisp/calendar/todo-mode.el (todo-show): Signal an error
if buffer for adding new todo file is empty but modified.

9 years ago(filepos-to-bufferpos): Further tweaks to the utf-16 code
Stefan Monnier [Fri, 19 Jun 2015 14:51:22 +0000 (10:51 -0400)]
(filepos-to-bufferpos): Further tweaks to the utf-16 code

* lisp/international/mule-util.el (filepos-to-bufferpos):
Fix typo.  Move non-exact check to the utf-16 branch (the only one
affected).  Don't use byte-to-position for the utf-16 case.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 19 Jun 2015 10:20:41 +0000 (06:20 -0400)]
; Auto-commit of loaddefs files.

9 years agoMinor fixes in filepos-to-bufferpos
Eli Zaretskii [Fri, 19 Jun 2015 08:19:06 +0000 (11:19 +0300)]
Minor fixes in filepos-to-bufferpos

* lisp/international/mule-util.el (filepos-to-bufferpos): Remove
test for utf-8-emacs.  Exempt single-byte encodings from the
'use-exact' path when QUALITY is 'exact'.  Test UTF-16 encodings
for BOM before subtracting 2 bytes.  Use 'identity' when adjusting
UTF-16 encoded files for CR-LF EOLs.

9 years agoImprove the optional translation of quotes
Paul Eggert [Fri, 19 Jun 2015 07:35:43 +0000 (00:35 -0700)]
Improve the optional translation of quotes

Fix several problems with the recently-added custom variable
help-quote-translation where the code would quote inconsistently
in help buffers.  Add support for quoting 'like this', which
is common in other GNU programs in ASCII environments.  Change
help-quote-translation to use more mnemonic values: values are now the
initial quoting char, e.g., (setq help-quote-translation ?`) gets the
traditional Emacs help-buffer quoting style `like this'.  Change the
default behavior of substitute-command-keys to match what's done in
set-locale-environment, i.e., quote ‘like this’ if displayable,
'like this' otherwise.
* doc/lispref/help.texi (Keys in Documentation): Document
new behavior of substitute-command-keys, and document
help-quote-translation.
* doc/lispref/tips.texi (Documentation Tips):
Mention the effect of help-quote-translation.
* etc/NEWS: Mention new behavior of substitute-command-keys,
and merge help-quote-translation news into it.
When talking about doc strings, mention new ways to type quotes.
* lisp/cedet/mode-local.el (overload-docstring-extension):
Revert my recent change to this function, which shouldn't be
needed as the result is a doc string.
* lisp/cedet/mode-local.el (mode-local-print-binding)
(mode-local-describe-bindings-2):
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
* lisp/cus-theme.el (describe-theme-1):
* lisp/descr-text.el (describe-text-properties-1, describe-char):
* lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
(eieio-help-constructor):
* lisp/emacs-lisp/package.el (describe-package-1):
* lisp/faces.el (describe-face):
* lisp/help-fns.el (help-fns--key-bindings)
(help-fns--compiler-macro, help-fns--parent-mode)
(help-fns--obsolete, help-fns--interactive-only)
(describe-function-1, describe-variable):
* lisp/help.el (describe-mode):
Use substitute-command-keys to ensure a more-consistent quoting
style in help buffers.
* lisp/cus-start.el (standard):
Document new help-quote-translation behavior.
* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs):
* lisp/help-mode.el (help-xref-symbol-regexp, help-xref-info-regexp)
(help-xref-url-regexp):
* lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
* lisp/wid-edit.el (widget-documentation-link-regexp):
Also match 'foo', in case we're in a help buffer generated when
help-quote-translation is ?'.
* src/doc.c: Include disptab.h, for DISP_CHAR_VECTOR.
(LEFT_SINGLE_QUOTATION_MARK, uLSQM0, uLSQM1, uLSQM2, uRSQM0)
(uRSQM1, uRSQM2, LSQM, RSQM): New constants.
(Fsubstitute_command_keys): Document and implement new behavior.
(Vhelp_quote_translation): Document new behavior.

9 years ago* lisp/cus-start.el (help-quote-translation): Add :version.
Glenn Morris [Fri, 19 Jun 2015 01:07:27 +0000 (21:07 -0400)]
* lisp/cus-start.el (help-quote-translation): Add :version.

; * etc/NEWS: Add placeholder.

9 years ago* src/doc.c (Fsubstitute_command_keys): Make previous change compile.
Glenn Morris [Thu, 18 Jun 2015 23:15:05 +0000 (19:15 -0400)]
* src/doc.c (Fsubstitute_command_keys): Make previous change compile.

9 years agoMake translation of quotes to curly in doc strings optional.
Alan Mackenzie [Thu, 18 Jun 2015 21:00:20 +0000 (21:00 +0000)]
Make translation of quotes to curly in doc strings optional.

src/doc.c (traditional, prefer-unicode): new symbols.
(help-quote-translation): new variable.
(Fsubstitute_command_keys): make translation of quotes dependent on
`help-quote-translation'; also translate curly quotes back to ASCII
ones.

lisp/cus-start.el (top-level): Add a customization entry for
`help-quote-translation'.

9 years ago* lisp/emacs-lisp/package.el: Don't always propagate async errors
Artur Malabarba [Thu, 18 Jun 2015 13:27:19 +0000 (14:27 +0100)]
* lisp/emacs-lisp/package.el: Don't always propagate async errors

(package--with-work-buffer-async): Only propagate the error if the
callback returns non-nil.
(package--download-one-archive): Return nil on the signature
checking callback if we accept unsigned.
(package--download-and-read-archives): Return non-nil on the
archive download callback.

9 years agoFix last fix"
Martin Rudalics [Thu, 18 Jun 2015 12:45:43 +0000 (14:45 +0200)]
Fix last fix"

9 years agoSet image_cache_refcount before x_default_parameter calls. (Bug#20802)
Martin Rudalics [Thu, 18 Jun 2015 12:32:32 +0000 (14:32 +0200)]
Set image_cache_refcount before x_default_parameter calls.  (Bug#20802)

* src/nsfns.m (Fx_create_frame):
* src/xfns.c (Fx_create_frame, x_create_tip_frame): Move setting
image_cache_refcount before first x_default_parameter call.

9 years agoImprove and extend filepos-to-bufferpos
Eli Zaretskii [Thu, 18 Jun 2015 12:06:53 +0000 (15:06 +0300)]
Improve and extend filepos-to-bufferpos

* lisp/international/mule-util.el (filepos-to-bufferpos--dos):
Don't barf if F returns nil for some argument.
(filepos-to-bufferpos): Expand to support UTF-16 and not assume
that every encoding of type 'charset' is single-byte.

9 years ago* lisp/emacs-lisp/package.el (package-menu--perform-transaction):
Artur Malabarba [Thu, 18 Jun 2015 08:23:54 +0000 (09:23 +0100)]
* lisp/emacs-lisp/package.el (package-menu--perform-transaction):

Properly delete packages.  (Bug#20836)

9 years agoUpdate data files from just-released Unicode 8.0
Eli Zaretskii [Thu, 18 Jun 2015 08:14:13 +0000 (11:14 +0300)]
Update data files from just-released Unicode 8.0

* etc/NEWS: Update wording since Unicode 8.0 is no longer in draft
status.
* test/BidiCharacterTest.txt: Update from Unicode 8.0.
* admin/unidata/BidiMirroring.txt:
* admin/unidata/BidiBrackets.txt:
* admin/unidata/UnicodeData.txt: Update from Unicode 8.0.

9 years agoDocument curved quotes a bit better
Paul Eggert [Thu, 18 Jun 2015 06:50:45 +0000 (23:50 -0700)]
Document curved quotes a bit better

* doc/emacs/basic.texi (Inserting Text):
Mention C-x 8.  Change example to use curved quote rather
than infinity, as this lets us give more ways to do it.
* doc/emacs/mule.texi (International Chars): Mention C-x 8 shortcuts
and quotation marks.
* doc/emacs/text.texi (Quotation Marks):
* doc/lispref/tips.texi (Documentation Tips):
Add "curly quotes" and "curved quotes" to the index.
* doc/emacs/text.texi (Quotation Marks):
Give the C-x 8 shorthands for curved quotes.
Cross-reference to "Quotation Marks".

9 years agoAdd pinentry.el for better GnuPG integration
Daiki Ueno [Thu, 18 Jun 2015 01:08:04 +0000 (10:08 +0900)]
Add pinentry.el for better GnuPG integration

* lisp/pinentry.el: New file.
* etc/NEWS: Add entry about pinentry.el.
* lisp/epg.el (epg--start): Set INSIDE_EMACS envvar.

Fixes: debbugs:20550
9 years ago* lisp/emacs-lisp/package.el: Slightly better error reporting.
Artur Malabarba [Wed, 17 Jun 2015 19:33:08 +0000 (20:33 +0100)]
* lisp/emacs-lisp/package.el: Slightly better error reporting.

9 years ago(define-minor-mode): Use setq-default for :global minor modes
Stefan Monnier [Wed, 17 Jun 2015 18:52:54 +0000 (14:52 -0400)]
(define-minor-mode): Use setq-default for :global minor modes

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
Use setq-default for :global minor modes (bug#20712).

9 years agoAvoid infloop in redisplay with tall images
Eli Zaretskii [Wed, 17 Jun 2015 17:18:11 +0000 (20:18 +0300)]
Avoid infloop in redisplay with tall images

* src/xdisp.c (try_scrolling): Prevent an infloop when scrolling
down near ZV.  (Bug#20808)
Call bidi_unshelve_cache to avoid memory leaks.  Use IT_CHARPOS
instead of CHARPOS.

9 years ago* lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Artur Malabarba [Wed, 17 Jun 2015 15:59:55 +0000 (16:59 +0100)]
* lisp/emacs-lisp/package.el (package--with-work-buffer-async):

Fix error reporting.

9 years ago* lisp/let-alist.el: move to lisp/emacs-lisp/let-alist.el
Artur Malabarba [Wed, 17 Jun 2015 14:38:46 +0000 (15:38 +0100)]
* lisp/let-alist.el: move to lisp/emacs-lisp/let-alist.el