]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 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).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

9 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

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

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

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

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

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

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

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

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

9 years agoAnother improvement of documentation of set-fontset-font
Eli Zaretskii [Sun, 14 Jun 2015 15:13:06 +0000 (18:13 +0300)]
Another improvement of documentation of set-fontset-font

* doc/lispref/display.texi (Fontsets): Say explicitly that
CHARACTER can be a single codepoint.
* src/fontset.c (Fset_fontset_font): Doc fix.

9 years agoAnother improvement for symbol and punctuation characters
Eli Zaretskii [Sun, 14 Jun 2015 15:02:55 +0000 (18:02 +0300)]
Another improvement for symbol and punctuation characters

* lisp/international/fontset.el (setup-default-fontset): Exclude
from Symbola character ranges for symbols and punctuation covered
well by popular Unicode fonts.  Prefer fixed-misc Unicode font, if
installed and where its coverage of symbols and punctuation is
known to be good.  (Bug#20727)

9 years agoSome generic support for multi-mode indentation.
Christoph Wedler [Sun, 14 Jun 2015 14:47:16 +0000 (14:47 +0000)]
Some generic support for multi-mode indentation.

* lisp/progmodes/prog-mode.el (prog-indentation-context): New
variable.
(prog-first-column, prog-widen): New convenience functions.

9 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
Artur Malabarba [Sun, 14 Jun 2015 13:40:48 +0000 (14:40 +0100)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):

Don't assume that `tabulated-list-printer' will leave point at the
end of the buffer.  (Bug#20810)

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

9 years agoTweaks for getting repository version; a bit more like it was for bzr.
Glenn Morris [Sun, 14 Jun 2015 00:17:47 +0000 (17:17 -0700)]
Tweaks for getting repository version; a bit more like it was for bzr.

* lisp/version.el (emacs-repository-version-git)
(emacs-repository--version-git-1): New functions,
split from emacs-repository-get-version.
(emacs-repository-get-version): Make the second argument meaningful.

9 years ago* lisp/startup.el (command-line-1): Inform if skipping relative
Glenn Morris [Sat, 13 Jun 2015 23:41:55 +0000 (16:41 -0700)]
* lisp/startup.el (command-line-1): Inform if skipping relative

file names due to deleted PWD.

9 years ago* src/xsmfns.c (x_session_initialize): Avoid libSM crash
Glenn Morris [Sat, 13 Jun 2015 23:35:54 +0000 (16:35 -0700)]
* src/xsmfns.c (x_session_initialize): Avoid libSM crash

when starup directory is missing.  (Bug#18851)
(errno.h): Include it.

9 years agoBetter fix for documenting `X as "`X"
Paul Eggert [Sat, 13 Jun 2015 16:35:10 +0000 (09:35 -0700)]
Better fix for documenting `X as "`X"

Fix suggested by Stefan Monnier.
* lisp/help-fns.el (help-fns--signature):
Insert "`X", not "(\` X)", when documenting `X (Bug#20759).
* lisp/help.el (help-split-fundoc, help--make-usage-docstring):
Don't treat `X specially, as help-fns--signature now handles this.

9 years agoImprove the default fontset when Symbola is not installed
Eli Zaretskii [Sat, 13 Jun 2015 11:51:33 +0000 (14:51 +0300)]
Improve the default fontset when Symbola is not installed

* lisp/international/fontset.el (setup-default-fontset): Only
prepend Symbola and FreeMono font specs for symbols and
punctuation; do not replace the default spec for them.  This
should have better results when Symbola/FreeMono are not
installed.  (Bug#20727)

9 years agoImprove documentation of ':lang' in font specs
Eli Zaretskii [Sat, 13 Jun 2015 10:23:42 +0000 (13:23 +0300)]
Improve documentation of ':lang' in font specs

* src/font.c (Ffont_spec): Doc fix: elaborate on the values and
use of the ':lang' property of the font spec.
* doc/emacs/frames.texi (Fonts): Document the language names that
can be in the STYLE part of XLFD.
* doc/lispref/display.texi (Low-Level Font): Document the ':lang'
property.

9 years ago* nt/README: Don't advertise the (obsolescent) w32 FAQ.
Eli Zaretskii [Sat, 13 Jun 2015 09:34:09 +0000 (12:34 +0300)]
* nt/README: Don't advertise the (obsolescent) w32 FAQ.

9 years ago* nt/README.W32: Don't advertise the (obsolescent) w32 FAQ.
Eli Zaretskii [Sat, 13 Jun 2015 08:41:08 +0000 (11:41 +0300)]
* nt/README.W32: Don't advertise the (obsolescent) w32 FAQ.

9 years agoRevert last change in fontset.el
Eli Zaretskii [Sat, 13 Jun 2015 07:31:37 +0000 (10:31 +0300)]
Revert last change in fontset.el

* lisp/international/fontset.el (setup-default-fontset): Revert
the change "Configure Symbola font only if installed", since font
search is evidently not yet set up when this function is called.
(Bug#20727)

9 years agoEnsure early startup warnings are visible at the end. (Bug#20792)
Glenn Morris [Sat, 13 Jun 2015 02:26:21 +0000 (19:26 -0700)]
Ensure early startup warnings are visible at the end.  (Bug#20792)

* lisp/emacs-lisp/warnings.el (display-warning):
If startup isn't complete, delay the warning.

* lisp/startup.el (normal-top-level, command-line):
Let display-warning automatically handle the needed delays.
Run delayed-warnings-hook.

9 years ago* lisp/version.el (emacs-repository-get-version):
Glenn Morris [Sat, 13 Jun 2015 01:22:00 +0000 (21:22 -0400)]
* lisp/version.el (emacs-repository-get-version):

Avoid calling external executable if possible.  (Bug#20799)

9 years agoDocument `X as "`X", not as "(` X)"
Paul Eggert [Fri, 12 Jun 2015 23:27:42 +0000 (16:27 -0700)]
Document `X as "`X", not as "(` X)"

* lisp/help.el (help-split-fundoc, help--make-usage-docstring):
Document (backquote FOO) as "`FOO", not as "(` FOO)" (Bug#20759).

9 years ago* src/print.c (print_object): Minor simplification.
Paul Eggert [Fri, 12 Jun 2015 23:18:05 +0000 (16:18 -0700)]
* src/print.c (print_object): Minor simplification.

9 years ago* src/buffer.c (init_buffer): Add final newline to message.
Glenn Morris [Fri, 12 Jun 2015 22:07:48 +0000 (18:07 -0400)]
* src/buffer.c (init_buffer): Add final newline to message.

9 years ago; * lisp/international/fontset.el (setup-default-fontset): Fix typo.
Glenn Morris [Fri, 12 Jun 2015 22:03:10 +0000 (18:03 -0400)]
; * lisp/international/fontset.el (setup-default-fontset): Fix typo.

9 years agoConfigure Symbola font only if installed
Paul Eggert [Fri, 12 Jun 2015 20:39:57 +0000 (13:39 -0700)]
Configure Symbola font only if installed

* lisp/international/fontset.el (setup-default-fontset):
Don't specify the Symbola font if it's not installed.
Likewise for FreeMono.  (Bug#20727)

9 years agoConfigure Symbola font only for symbols and punctuation
Eli Zaretskii [Fri, 12 Jun 2015 19:45:41 +0000 (22:45 +0300)]
Configure Symbola font only for symbols and punctuation

* lisp/international/fontset.el (setup-default-fontset): Leave
only symbols and punctuation in the fontset setup for Symbola
font; remove "Greek and Coptic" and "Cyrillic Supplement".
(Bug#20798)

9 years agoFix crash in fontset-info
Andreas Schwab [Fri, 12 Jun 2015 19:09:23 +0000 (21:09 +0200)]
Fix crash in fontset-info

* src/fontset.c (Ffontset_info): Check that the RFONT-DEF elt is
non-nil.

9 years agoPort to Solaris 10 sparc + Sun C 5.13
Paul Eggert [Fri, 12 Jun 2015 05:49:02 +0000 (22:49 -0700)]
Port to Solaris 10 sparc + Sun C 5.13

* configure.ac (SETUP_SLAVE_PTY) [sol2* | unixware]:
Adjust to process.c change.
* src/process.c (create_process): Declare volatile variables at
top level of this function, so that they're less likely to be
reused later in the function in the code executed by the vforked
child.  Do not declare locals used only in the vforked child, as
they might share memory with locals still live in the parent.
Instead, use the same variables in the child as in the parent.
This works around a subtle bug that causes a garbage collector
crash when Emacs is built with Sun C 5.13 sparc on Solaris 10.

9 years ago* lisp/startup.el (normal-top-level): Don't let *Messages* get
Glenn Morris [Fri, 12 Jun 2015 04:57:47 +0000 (21:57 -0700)]
* lisp/startup.el (normal-top-level): Don't let *Messages* get

a nil default-directory.

9 years ago* lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792)
Glenn Morris [Fri, 12 Jun 2015 01:12:29 +0000 (21:12 -0400)]
* lisp/startup.el (normal-top-level): Use delay-warning.  (Bug#20792)

9 years ago; * lisp/startup.el (normal-top-level): Fix previous change.
Glenn Morris [Fri, 12 Jun 2015 00:47:45 +0000 (20:47 -0400)]
; * lisp/startup.el (normal-top-level): Fix previous change.

9 years agoSome progress towards starting with PWD deleted. (Bug#18851)
Glenn Morris [Fri, 12 Jun 2015 00:34:54 +0000 (20:34 -0400)]
Some progress towards starting with PWD deleted.  (Bug#18851)

* src/buffer.c (init_buffer): Handle get_current_dir_name failures.

* lisp/startup.el (normal-top-level, command-line-1):
* lisp/minibuffer.el (read-file-name-default):
Handle default-directory being nil.

9 years agoFix "not a tty" bug on Solaris 10
Paul Eggert [Thu, 11 Jun 2015 23:41:36 +0000 (16:41 -0700)]
Fix "not a tty" bug on Solaris 10

* configure.ac (PTY_OPEN): Define to plain 'open'
on SVR4-derived hosts, so that the O_CLOEXEC flag isn't set.
* src/process.c (allocate_pty): Set the O_CLOEXEC flag after
calling PTY_TTY_NAME_SPRINTF, for the benefit of SVR4-derived
hosts that call grantpt which does its work via a setuid subcommand
(Bug#19191, Bug#19927, Bug#20555, Bug#20686).
Also, set O_CLOEXEC even if PTY_OPEN is not defined, since it
seems relevant in that case too.

9 years ago* lisp/bindings.el (debug-ignored-errors): Add mark-inactive.
Juri Linkov [Thu, 11 Jun 2015 23:17:23 +0000 (02:17 +0300)]
* lisp/bindings.el (debug-ignored-errors): Add mark-inactive.

* lisp/simple.el (kill-region): Replace 'error' with 'user-error'.
(Bug#20785)

9 years ago* lisp/international/characters.el (char-script-table): Fix typo.
Glenn Morris [Thu, 11 Jun 2015 22:23:08 +0000 (18:23 -0400)]
* lisp/international/characters.el (char-script-table): Fix typo.

9 years agoFix quoting of help for functions with odd names
Paul Eggert [Thu, 11 Jun 2015 17:23:46 +0000 (10:23 -0700)]
Fix quoting of help for functions with odd names

While investigating Bug#20759, I discovered other quoting problems:
C-h f mishandled characters like backslash and quote in function names.
This fix changes the behavior so that 'C-h f pcase RET' now
generates "... (\` QPAT) ..." instead of "... (` QPAT) ...",
because '(format "%S" '(` FOO))' returns "(\\` FOO)".  A comment
in src/lread.c's read1 function says that the backslash will be
needed starting in Emacs 25, which implies that 'format' is
correct and the old pcase documention was wrong to omit the backslash.
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
* lisp/help-fns.el (help-fns--signature):
* lisp/help.el (help-add-fundoc-usage):
* lisp/progmodes/elisp-mode.el (elisp-function-argstring):
Use help--make-usage-docstring rather than formatting
help-make-usage.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring):
Return raw docstring.
* lisp/help-fns.el (help-fns--signature): New arg RAW, to return
raw docstring.  Take more care to distinguish raw from cooked dstrings.
(describe-function-1): Let help-fns--signature substitute
command keys.
* lisp/help.el (help--docstring-quote): New function.
(help-split-fundoc): Use it, to quote funny characters more
systematically.
(help--make-usage): Rename from help-make-usage, since this
should be private.  Leave an obsolete alias for the old name.
(help--make-usage-docstring): New function.
* test/automated/help-fns.el (help-fns-test-funny-names): New test.

9 years ago* lisp/thingatpt.el (in-string-p): Revert last change,
Stefan Monnier [Thu, 11 Jun 2015 17:20:41 +0000 (13:20 -0400)]
* lisp/thingatpt.el (in-string-p): Revert last change,

since in-string-p is not used in thingatpt.el but only from outside.

Also, use lexical binding.

9 years ago; * ChangeLog.2: Remove entries from a merged feature branch.
Eli Zaretskii [Thu, 11 Jun 2015 16:10:42 +0000 (19:10 +0300)]
; * ChangeLog.2: Remove entries from a merged feature branch.

9 years ago* lisp/let-alist.el (let-alist--deep-dot-search): Fix cons
Artur Malabarba [Thu, 11 Jun 2015 14:08:32 +0000 (15:08 +0100)]
* lisp/let-alist.el (let-alist--deep-dot-search): Fix cons

* test/automated/let-alist.el (let-alist-cons): Test it.

9 years ago* src/syntax.c (Fbackward_prefix_chars): Reword docstring
Nicolas Richard [Thu, 11 Jun 2015 09:46:14 +0000 (11:46 +0200)]
* src/syntax.c (Fbackward_prefix_chars): Reword docstring

9 years ago* build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.
Glenn Morris [Thu, 11 Jun 2015 01:37:06 +0000 (21:37 -0400)]
* build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.

; * ChangeLog.2: Related fixes.

9 years agoImprove generated ChangeLog for gitmerge.el commits. (Bug#20717)
Glenn Morris [Thu, 11 Jun 2015 01:13:51 +0000 (21:13 -0400)]
Improve generated ChangeLog for gitmerge.el commits.  (Bug#20717)

* build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.

* admin/gitmerge.el (gitmerge-commit-message):
Exclude "skipped" messages from ChangeLog once again.

; * ChangLog.2: Related fixes.

9 years agoSlight namespace cleanup for thingatpt.el.
Glenn Morris [Wed, 10 Jun 2015 23:07:09 +0000 (19:07 -0400)]
Slight namespace cleanup for thingatpt.el.

* lisp/thingatpt.el (thing-at-point--in-string-p)
(thing-at-point--end-of-sexp, thing-at-point--beginning-of-sexp)
(thing-at-point--read-from-whole-string): Rename from
old versions without "thing-at-point--" prefix.
Keep old versions as obsolete aliases.  Update all uses.

9 years ago* lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):
Glenn Morris [Wed, 10 Jun 2015 21:06:02 +0000 (17:06 -0400)]
* lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):

Move requiring of finder from here...
(checkdoc-package-keywords): ... to here.

9 years agoUse 'user-error' in a few calendar files.
Glenn Morris [Wed, 10 Jun 2015 21:04:54 +0000 (17:04 -0400)]
Use 'user-error' in a few calendar files.

* lisp/calendar/appt.el (appt-add):
* lisp/calendar/calendar.el (calendar-absolute-from-gregorian)
(calendar-generate):
* lisp/calendar/diary-lib.el (diary-mail-entries, diary-cyclic):
Replace 'error' with 'user-error'.

9 years ago* lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error.
Glenn Morris [Wed, 10 Jun 2015 20:57:59 +0000 (16:57 -0400)]
* lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error.

9 years ago* lisp/files-x.el (add-file-local-variable):
Glenn Morris [Wed, 10 Jun 2015 20:38:18 +0000 (16:38 -0400)]
* lisp/files-x.el (add-file-local-variable):

Special-case 'lexical-binding'.  (Bug#20641)

9 years ago* lisp/progmodes/executable.el (executable-self-display): Obsolete.
Glenn Morris [Wed, 10 Jun 2015 20:24:32 +0000 (16:24 -0400)]
* lisp/progmodes/executable.el (executable-self-display): Obsolete.

No longer autoload.

* doc/misc/autotype.texi (Executables):
Undocument executable-self-display.

9 years ago* lisp/progmodes/executable.el (executable-self-display):
Glenn Morris [Wed, 10 Jun 2015 20:19:13 +0000 (16:19 -0400)]
* lisp/progmodes/executable.el (executable-self-display):

Use non-obsolete tail syntax.  (Bug#20779)
(executable-self-display): Doc update.

9 years ago* lisp/emacs-lisp/checkdoc.el: Use lexical-binding
Stefan Monnier [Wed, 10 Jun 2015 13:11:20 +0000 (09:11 -0400)]
* lisp/emacs-lisp/checkdoc.el: Use lexical-binding

(finder-known-keywords): Silence byte-compiler.

9 years ago; * lisp/simple: Revert presumably unintentional deletion of special-mode.
Glenn Morris [Wed, 10 Jun 2015 03:34:50 +0000 (20:34 -0700)]
; * lisp/simple: Revert presumably unintentional deletion of special-mode.

9 years ago* lisp/simple.el (eval-expression): Macroexpand before evaluating (bug#20730)
Stefan Monnier [Wed, 10 Jun 2015 02:14:47 +0000 (22:14 -0400)]
* lisp/simple.el (eval-expression): Macroexpand before evaluating (bug#20730)

9 years ago* lisp/progmodes/sh-script.el: Better handle nested quotes
Stefan Monnier [Wed, 10 Jun 2015 02:10:38 +0000 (22:10 -0400)]
* lisp/progmodes/sh-script.el: Better handle nested quotes

(sh-here-doc-open-re): Don't mis-match the <<< operator (bug#20683).
(sh-font-lock-quoted-subshell): Make sure double quotes within single
quotes don't mistakenly end prematurely the surrounding string.

9 years ago* lisp/progmodes/elisp-mode.el: Require cl-lib for cl-defstruct.
Stefan Monnier [Wed, 10 Jun 2015 01:21:29 +0000 (21:21 -0400)]
* lisp/progmodes/elisp-mode.el: Require cl-lib for cl-defstruct.

9 years ago* test/automated/Makefile.in (ELFILES): Sort.
Glenn Morris [Tue, 9 Jun 2015 19:24:17 +0000 (15:24 -0400)]
* test/automated/Makefile.in (ELFILES): Sort.

9 years ago* Makefile.in (SUBDIR_MAKEFILES):
Glenn Morris [Tue, 9 Jun 2015 19:23:47 +0000 (15:23 -0400)]
* Makefile.in (SUBDIR_MAKEFILES):

* lwlib/Makefile.in (WARN_CFLAGS):
Use built-in Make functions rather than echo+sed.

9 years agoUpdate char-script-table
Eli Zaretskii [Tue, 9 Jun 2015 16:36:14 +0000 (19:36 +0300)]
Update char-script-table

* lisp/international/characters.el (char-script-table): Update
from Unicode 8.0 Draft.

9 years agoImprove font selection for punctuation and other symbols
Eli Zaretskii [Tue, 9 Jun 2015 14:56:39 +0000 (17:56 +0300)]
Improve font selection for punctuation and other symbols

* src/fontset.c (face_for_char): If the character's script is
'symbol', and the font used for ASCII face has a glyph for it, use
the font for the ASCII face instead of searching the fontsets.
This comes instead of NS-specific code that used the current
face's font instead, which is now disabled due to undesirable
consequences.  (Bug#20727)

9 years agoSkip past `#' to find BEG
Dmitry Gutov [Mon, 8 Jun 2015 22:08:01 +0000 (01:08 +0300)]
Skip past `#' to find BEG

* lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Skip
past `#' to find BEG (bug#20771).

* test/automated/elisp-mode-tests.el
(elisp-completes-functions-after-hash-quote): New test.

9 years agoFix compilation warning/error in --without-x builds
Eli Zaretskii [Mon, 8 Jun 2015 18:15:05 +0000 (21:15 +0300)]
Fix compilation warning/error in --without-x builds

* src/xdisp.c (append_space_for_newline): Condition GUI-specific
code on HAVE_WINDOW_SYSTEM.

9 years agoImprove the default fontset wrt symbols
Eli Zaretskii [Mon, 8 Jun 2015 18:04:08 +0000 (21:04 +0300)]
Improve the default fontset wrt symbols

* lisp/international/fontset.el (setup-default-fontset): Better
setup of fontset-default for symbols: use Symbola and FreeMono.
(Bug#20727)

9 years agoAdd new command checkdoc-package-keywords
Oleh Krehel [Mon, 8 Jun 2015 14:41:00 +0000 (16:41 +0200)]
Add new command checkdoc-package-keywords

* lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): New
  defcustom.
(checkdoc-list-of-strings-p): Add doc.
(checkdoc-current-buffer): When `checkdoc-package-keywords-flag' is
non-nil, call `checkdoc-package-keywords'.
(checkdoc-get-keywords): New defun.
(checkdoc-package-keywords): New command. Warns if the current file
has package.el-style keywords that aren't in `finder-known-keywords'.

* etc/NEWS: Add entry.

9 years agoAvoid crashes when key-binding is called from a timer
Eli Zaretskii [Mon, 8 Jun 2015 14:39:35 +0000 (17:39 +0300)]
Avoid crashes when key-binding is called from a timer

* src/keymap.c (Fkey_binding): Don't segfault if called with an
empty vector as KEY.  (Bug#20705)

9 years agoFix a thinko in arc-mode.el
Eli Zaretskii [Mon, 8 Jun 2015 14:22:44 +0000 (17:22 +0300)]
Fix a thinko in arc-mode.el

* lisp/arc-mode.el (archive-zip-summarize): Fix last change in the
non-Zip64 case.  (Bug#20769)

9 years ago* lisp/emacs-lisp/package.el (package-delete): Make interactive
Artur Malabarba [Mon, 8 Jun 2015 09:50:22 +0000 (10:50 +0100)]
* lisp/emacs-lisp/package.el (package-delete): Make interactive

9 years agocheckdoc.el (checkdoc-file): New function
Oleh Krehel [Mon, 8 Jun 2015 06:30:32 +0000 (08:30 +0200)]
checkdoc.el (checkdoc-file): New function

* lisp/emacs-lisp/checkdoc.el (checkdoc-error): When
  `checkdoc-diagnostic-buffer' is set to "*warn*", print the warning
  to the standard output.

(bug#20754)