]> code.delx.au - gnu-emacs/log
gnu-emacs
8 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.

8 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.

8 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

8 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)

8 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)

8 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.

8 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)

8 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.

8 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

8 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.

8 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.

8 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.

8 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)

8 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.

8 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.

8 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.

8 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)

8 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.

8 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'.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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’.

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

8 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.

8 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.

8 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)

8 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

8 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)

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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'.

8 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.

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

8 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.

8 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.

8 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)

8 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.

8 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".

8 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
8 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.

8 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).

8 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.

8 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.

8 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

8 years ago* lisp/emacs-lisp/package.el: Revert buffer after any operation
Artur Malabarba [Wed, 17 Jun 2015 14:37:51 +0000 (15:37 +0100)]
* lisp/emacs-lisp/package.el: Revert buffer after any operation

Call `package-menu--post-refresh' after any operation that changes
the package database (`package-install' and `package-delete').  To
avoid performance issues in large transactions, these functions
add `post-refresh' to `post-command-hook' instead of calling it
immediately.
(package-menu--mark-or-notify-upgrades): New function.
(list-packages): Add it to `package--post-download-archives-hook'.
(package-menu--post-refresh): Lose the upgrade-checking code, add
code to remove itself from `post-command-hook'.
(package-install, package-delete): Add it to `post-command-hook'.
(package-menu-execute): Don't call `package-menu--post-refresh'.

8 years agoAdd missing function xref-location-group for elisp-mode.
Stephen Leake [Tue, 16 Jun 2015 21:22:50 +0000 (16:22 -0500)]
Add missing function xref-location-group for elisp-mode.

* lisp/progmodes/elisp-mode.el: Add missing function xref-location-group.

8 years ago* src/editfns.c (Fbyte_to_position): Fix bytepos not at char boundary.
Wolfgang Jenkner [Wed, 17 Jun 2015 11:41:57 +0000 (13:41 +0200)]
* src/editfns.c (Fbyte_to_position): Fix bytepos not at char boundary.

The behavior now matches the description in the manual.  (Bug#20783)

8 years agoUpdate tutorials/TUTORIAL.cn
Xue Fuqiao [Wed, 17 Jun 2015 08:45:08 +0000 (16:45 +0800)]
Update tutorials/TUTORIAL.cn

* etc/tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.

8 years agoGenerate char-script-table from Unicode source. (Bug#20789)
Glenn Morris [Wed, 17 Jun 2015 06:43:03 +0000 (23:43 -0700)]
Generate char-script-table from Unicode source.  (Bug#20789)

* admin/unidata/Makefile.in (AWK): New, set by configure.
(all): Add charscript.el.
(blocks): New variable.
(charscript.el, ${unidir}/charscript.el): New targets.
(extraclean): Also remove generated charscript.el.

* admin/unidata/blocks.awk: New script.

* admin/unidata/Blocks.txt: New data file, from unicode.org.

* lisp/international/characters.el: Load charscript.

* src/Makefile.in (charscript): New variable.
(${charscript}): New target.
(${lispintdir}/characters.elc): Depend on charscript.elc.
(temacs$(EXEEXT)): Depend on charscript.

; * admin/unidata/README: Mention Blocks.txt.

; * .gitignore: Add lisp/international/charscript.el.

8 years ago* lisp/international/characters.el (char-script-table): Tweak
Glenn Morris [Wed, 17 Jun 2015 06:26:16 +0000 (23:26 -0700)]
* lisp/international/characters.el (char-script-table): Tweak

some ranges to better match the source.  (Bug#20789#17)

8 years agoRemove "no-byte-compile: t" from a few files.
Glenn Morris [Wed, 17 Jun 2015 05:47:21 +0000 (22:47 -0700)]
Remove "no-byte-compile: t" from a few files.

* lisp/obsolete/bruce.el, lisp/obsolete/keyswap.el:
* lisp/obsolete/patcomp.el: No reason not to compile these.

8 years agoFix some typos in copied Unicode data. (Bug#20789)
Glenn Morris [Wed, 17 Jun 2015 00:54:40 +0000 (20:54 -0400)]
Fix some typos in copied Unicode data.  (Bug#20789)

* lisp/international/characters.el (char-script-table):
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Fix typos.

8 years ago* lisp/emacs-lisp/check-declare.el (check-declare-warn):
Glenn Morris [Wed, 17 Jun 2015 00:45:35 +0000 (20:45 -0400)]
* lisp/emacs-lisp/check-declare.el (check-declare-warn):

Don't print filename twice (it's in the prefix now).

8 years ago* lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround.
Glenn Morris [Wed, 17 Jun 2015 00:44:57 +0000 (20:44 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround.

No longer needed.

8 years agoAddress a compilation warning.
Glenn Morris [Wed, 17 Jun 2015 00:44:23 +0000 (20:44 -0400)]
Address a compilation warning.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias):
Replace 't' with '_' in pcase.

8 years agoAddress some check-declare warnings.
Glenn Morris [Wed, 17 Jun 2015 00:33:48 +0000 (20:33 -0400)]
Address some check-declare warnings.

* lisp/simple.el (tabulated-list-print):
* lisp/progmodes/elisp-mode.el (xref-collect-matches):
* lisp/term/ns-win.el (ns-selection-owner-p, ns-selection-exists-p)
(ns-get-selection): Update declarations.

8 years agoAddress some compilation warnings.
Glenn Morris [Wed, 17 Jun 2015 00:28:48 +0000 (20:28 -0400)]
Address some compilation warnings.

* lisp/elec-pair.el (electric-pair-post-self-insert-function):
* lisp/vc/vc-git.el (vc-git-file-type-as-string):
Replace 't' with '_' in pcase.

8 years agoAddress some compilation warnings.
Glenn Morris [Wed, 17 Jun 2015 00:04:35 +0000 (20:04 -0400)]
Address some compilation warnings.

* lisp/face-remap.el (text-scale-adjust):
* lisp/menu-bar.el (popup-menu-normalize-position):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
* lisp/emacs-lisp/generator.el (cps--transform-1):
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
* lisp/obsolete/vc-arch.el (vc-arch-mode-line-string):
* lisp/progmodes/octave.el (octave-goto-function-definition)
(octave-find-definition-default-filename):
Replace 't' with '_' in pcase.

8 years ago* lisp/emacs-lisp/pcase.el (pcase--u1):
Glenn Morris [Tue, 16 Jun 2015 22:27:02 +0000 (18:27 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--u1):

Paper-over today's bootstrap failure.

8 years ago* lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase.
Nicolas Petton [Tue, 16 Jun 2015 21:49:17 +0000 (23:49 +0200)]
* lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase.

8 years ago* lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning.
Nicolas Petton [Tue, 16 Jun 2015 21:04:03 +0000 (23:04 +0200)]
* lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning.

8 years agoBetter confirmation message in `find-alternate-file' (Bug#20830)
Nicolas Petton [Tue, 16 Jun 2015 20:52:24 +0000 (22:52 +0200)]
Better confirmation message in `find-alternate-file' (Bug#20830)

* lisp/files.el (find-alternate-file'): Improve the confirmation
message to show the buffer name.

8 years agoBetter docstring for null. (Bug#20815)
Nicolas Petton [Tue, 16 Jun 2015 19:45:07 +0000 (21:45 +0200)]
Better docstring for null. (Bug#20815)

* src/data.c (null): Improves the docstring, saying what null returns
when OBJECT is non-nil.

8 years ago* lisp/net/newst-treeview.el: Use lexical-binding.
Stefan Monnier [Tue, 16 Jun 2015 19:39:35 +0000 (15:39 -0400)]
* lisp/net/newst-treeview.el: Use lexical-binding.

8 years ago(filepos-to-bufferpos): Add missing cases. Make sure it terminates.
Stefan Monnier [Tue, 16 Jun 2015 18:28:38 +0000 (14:28 -0400)]
(filepos-to-bufferpos): Add missing cases.  Make sure it terminates.

* lisp/international/mule-util.el (filepos-to-bufferpos--dos):
New auxiliary function, extracted from filepos-to-bufferpos.
Make sure it terminates.
(filepos-to-bufferpos): Use it to fix the latin-1-dos case.
Add support for the `exact' quality.

8 years agoIdentify feeds in newsticker treeview with :nt-feed property
Cédric Chépied [Tue, 16 Jun 2015 17:38:38 +0000 (19:38 +0200)]
Identify feeds in newsticker treeview with :nt-feed property

* lisp/net/newst-treeview.el:
(newsticker--treeview-nodes-eq): Use property :nt-feed instead of :tag.

8 years ago* lisp/emacs-lisp/pcase.el: Improve docs and error handling
Stefan Monnier [Tue, 16 Jun 2015 16:37:33 +0000 (12:37 -0400)]
* lisp/emacs-lisp/pcase.el: Improve docs and error handling

(pcase--self-quoting-p): Floats aren't self-quoting.
(pcase): Tweak docstring.
(pcase--u1): Deprecate the t pattern.  Improve error detection for
the nil pattern.
(\`): Tweak docstring.  Signal an error for unrecognized cases.

(bug#20784)

8 years agoFix infloop in filepos-to-bufferpos
Eli Zaretskii [Tue, 16 Jun 2015 14:37:45 +0000 (17:37 +0300)]
Fix infloop in filepos-to-bufferpos

* lisp/international/mule-util.el (filepos-to-bufferpos): Fix EOL
offset calculation, and make it conditional on the eol-type of the
file's encoding.  (Bug#20825)

8 years agoFix handling of image cache refcounts. (Bug#20802)
Martin Rudalics [Tue, 16 Jun 2015 13:09:24 +0000 (15:09 +0200)]
Fix handling of image cache refcounts.  (Bug#20802)

This backports Eli Zaretskii's solution of this problem for W32
to X and NS.

* src/nsfns.m (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame): Set image_cache_refcount unconditionally.
* src/xfns.c (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame, x_create_tip_frame): Set image_cache_refcount
unconditionally.
* src/w32fns.c (image_cache_refcount): Make it a ptrdiff_t as on
X and NS.

8 years agoImprove reftex-label-regexps default value
Nils Ackermann [Tue, 16 Jun 2015 07:24:47 +0000 (09:24 +0200)]
Improve reftex-label-regexps default value

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Make
keyvals label regexp more strict to better cope with unbalanced
brackets common in math documents.

8 years ago* doc/emacs/calendar.texi (Format of Diary File):
Glenn Morris [Tue, 16 Jun 2015 07:01:21 +0000 (00:01 -0700)]
* doc/emacs/calendar.texi (Format of Diary File):

Move "nonmarking" from here...
(Displaying the Diary): ... to here.

8 years ago* doc/emacs/calendar.texi (Format of Diary File, Displaying the Diary):
Glenn Morris [Tue, 16 Jun 2015 06:53:24 +0000 (23:53 -0700)]
* doc/emacs/calendar.texi (Format of Diary File, Displaying the Diary):

Swap the order of these nodes.

* doc/emacs/emacs.texi: Update detailed menu for the above change.

8 years ago* doc/emacs/calendar.texi (Specified Dates, Special Diary Entries):
Glenn Morris [Tue, 16 Jun 2015 06:49:17 +0000 (23:49 -0700)]
* doc/emacs/calendar.texi (Specified Dates, Special Diary Entries):

Update date of examples.
(Diary, Format of Diary File): Move example from former to latter.
Reduce duplication.

8 years agoNo need for cp51932.el, eucjp-ms.el to not be compiled any more.
Glenn Morris [Tue, 16 Jun 2015 06:02:58 +0000 (23:02 -0700)]
No need for cp51932.el, eucjp-ms.el to not be compiled any more.

* admin/charsets/cp51932.awk, admin/charsets/eucjp-ms.awk:
Don't set no-byte-compile in the outputs.

* lisp/loadup.el: Don't specify uncompiled cp51932, eucjp-ms.

8 years ago; Comment fixes.
Glenn Morris [Tue, 16 Jun 2015 01:24:24 +0000 (21:24 -0400)]
; Comment fixes.

8 years ago* lisp/calendar/calendar.el (diary-file): Use locate-user-emacs-file.
Glenn Morris [Tue, 16 Jun 2015 00:46:01 +0000 (20:46 -0400)]
* lisp/calendar/calendar.el (diary-file): Use locate-user-emacs-file.

* doc/emacs/calendar.texi (Diary, Format of Diary File):
Update for above diary-file change.

: * etc/NEWS: Mention this.

8 years ago* lisp/macros.el (name-last-kbd-macro, kbd-macro-query)
Glenn Morris [Tue, 16 Jun 2015 00:41:54 +0000 (20:41 -0400)]
* lisp/macros.el (name-last-kbd-macro, kbd-macro-query)

(apply-macro-to-region-lines): Use user-error.

8 years ago* lisp/textmodes/page-ext.el (add-new-page, pages-directory)
Glenn Morris [Tue, 16 Jun 2015 00:40:41 +0000 (20:40 -0400)]
* lisp/textmodes/page-ext.el (add-new-page, pages-directory)

(pages-directory-for-addresses): Doc fixes.

8 years ago* lisp/info.el: Cleanup bytepos/charpos issues
Stefan Monnier [Mon, 15 Jun 2015 22:48:08 +0000 (18:48 -0400)]
* lisp/info.el: Cleanup bytepos/charpos issues

* lisp/international/mule-util.el: Use lexical-binding.
(filepos-to-bufferpos): New function.
* lisp/info.el (Info-find-in-tag-table-1): Use 0-based file positions.
(Info-find-node-2): Use filepos-to-bufferpos (bug#20704).
(Info-read-subfile, Info-search): Use 0-based file positions.

8 years ago; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Glenn Morris [Mon, 15 Jun 2015 22:02:33 +0000 (18:02 -0400)]
; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Fix recent change.

8 years ago* lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/
Stefan Monnier [Mon, 15 Jun 2015 21:10:06 +0000 (17:10 -0400)]
* lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/

(perl--syntax-exp-intro-keywords): New var.
(perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it.
(bug#20800).

8 years agoFix quoting when making derived mode docstring
Paul Eggert [Mon, 15 Jun 2015 19:40:32 +0000 (12:40 -0700)]
Fix quoting when making derived mode docstring

* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Nest regexp-quote inside format, not the reverse.
Problem reported by Artur Malabarba in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00206.html

8 years ago;* src/fontset.c: Update obsolete commentary.
Eli Zaretskii [Mon, 15 Jun 2015 17:14:11 +0000 (20:14 +0300)]
;* src/fontset.c: Update obsolete commentary.

8 years agoFix current-iso639-language on MS-Windows
Eli Zaretskii [Mon, 15 Jun 2015 17:10:19 +0000 (20:10 +0300)]
Fix current-iso639-language on MS-Windows

* lisp/international/mule-cmds.el (set-locale-environment):
Downcase the locale name before interning it.  This is so the
'current-iso639-language' on MS-Windows matches the ':lang'
property of font-spec objects.

8 years agoLimit Symbola usage some more
Eli Zaretskii [Mon, 15 Jun 2015 16:11:43 +0000 (19:11 +0300)]
Limit Symbola usage some more

* lisp/international/fontset.el (setup-default-fontset): Limit
Symbol coverage of Currency Symbols to u+20B6..u+20CF.
(Bug#20727)

8 years ago* lisp/emacs-lisp/map.el (map-let): Better docstring.
Nicolas Petton [Mon, 15 Jun 2015 10:43:09 +0000 (12:43 +0200)]
* lisp/emacs-lisp/map.el (map-let): Better docstring.

8 years agoSpelling fixes
Paul Eggert [Mon, 15 Jun 2015 05:55:16 +0000 (22:55 -0700)]
Spelling fixes

8 years ago; Omit mistaken update
Paul Eggert [Mon, 15 Jun 2015 05:24:03 +0000 (22:24 -0700)]
; Omit mistaken update

8 years ago* lisp/version.el (emacs-repository-version-git): Demote errors.
Glenn Morris [Sun, 14 Jun 2015 23:33:05 +0000 (16:33 -0700)]
* lisp/version.el (emacs-repository-version-git): Demote errors.

Check result is a hash.

8 years ago* lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Artur Malabarba [Sun, 14 Jun 2015 21:48:18 +0000 (22:48 +0100)]
* lisp/emacs-lisp/package.el (package--with-work-buffer-async):

Catch errors that happen before going async.  (Bug#20809)