1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00
Commit Graph

121915 Commits

Author SHA1 Message Date
Daiki Ueno
dbc192b4c2 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
2015-06-18 10:22:38 +09:00
Artur Malabarba
5dc72bc4ba * lisp/emacs-lisp/package.el: Slightly better error reporting. 2015-06-17 20:33:38 +01:00
Stefan Monnier
82585144b6 (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).
2015-06-17 14:52:54 -04:00
Eli Zaretskii
4e53d722ae 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.
2015-06-17 20:18:11 +03:00
Artur Malabarba
d6dd70b064 * lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Fix error reporting.
2015-06-17 16:59:55 +01:00
Artur Malabarba
02617f1507 * lisp/let-alist.el: move to lisp/emacs-lisp/let-alist.el 2015-06-17 15:40:58 +01:00
Artur Malabarba
a142b77028 * 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'.
2015-06-17 15:40:58 +01:00
Stephen Leake
4b1613762f Add missing function xref-location-group for elisp-mode.
* lisp/progmodes/elisp-mode.el: Add missing function xref-location-group.
2015-06-17 09:35:00 -05:00
Wolfgang Jenkner
cf23c335ac * src/editfns.c (Fbyte_to_position): Fix bytepos not at char boundary.
The behavior now matches the description in the manual.  (Bug#20783)
2015-06-17 13:41:57 +02:00
Xue Fuqiao
fd7bbfbe62 Update tutorials/TUTORIAL.cn
* etc/tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.
2015-06-17 16:45:08 +08:00
Glenn Morris
d67d49ceb3 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.
2015-06-16 23:43:03 -07:00
Glenn Morris
c9e2003b44 * lisp/international/characters.el (char-script-table): Tweak
some ranges to better match the source.  (Bug#20789#17)
2015-06-16 23:26:16 -07:00
Glenn Morris
5a90d5125b 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.
2015-06-16 22:47:21 -07:00
Glenn Morris
0fe54891f0 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.
2015-06-16 20:54:40 -04:00
Glenn Morris
b7d5033c39 * lisp/emacs-lisp/check-declare.el (check-declare-warn):
Don't print filename twice (it's in the prefix now).
2015-06-16 20:45:35 -04:00
Glenn Morris
d3b779fa79 * lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround.
No longer needed.
2015-06-16 20:44:57 -04:00
Glenn Morris
c07e67aaaf Address a compilation warning.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias):
Replace 't' with '_' in pcase.
2015-06-16 20:44:23 -04:00
Glenn Morris
fb77502f69 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.
2015-06-16 20:33:48 -04:00
Glenn Morris
d5152a7eef 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.
2015-06-16 20:28:48 -04:00
Glenn Morris
55b41a82cd 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.
2015-06-16 20:04:35 -04:00
Glenn Morris
cf94a3e0c4 * lisp/emacs-lisp/pcase.el (pcase--u1):
Paper-over today's bootstrap failure.
2015-06-16 18:27:02 -04:00
Nicolas Petton
70a567971a * lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase. 2015-06-16 23:49:35 +02:00
Nicolas Petton
7d5c120fed * lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning. 2015-06-16 23:04:03 +02:00
Nicolas Petton
3986489aef Better confirmation message in `find-alternate-file' (Bug#20830)
* lisp/files.el (find-alternate-file'): Improve the confirmation
message to show the buffer name.
2015-06-16 22:52:24 +02:00
Nicolas Petton
deb6e89caf Better docstring for null. (Bug#20815)
* src/data.c (null): Improves the docstring, saying what null returns
when OBJECT is non-nil.
2015-06-16 21:47:46 +02:00
Stefan Monnier
ac1e89ebac * lisp/net/newst-treeview.el: Use lexical-binding. 2015-06-16 15:39:35 -04:00
Stefan Monnier
a1f543b4aa (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.
2015-06-16 14:28:38 -04:00
Cédric Chépied
08f8fb327b 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.
2015-06-16 19:38:38 +02:00
Stefan Monnier
3ef311678b * 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)
2015-06-16 12:37:33 -04:00
Eli Zaretskii
34a43ba26a 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)
2015-06-16 17:37:45 +03:00
Martin Rudalics
93ae9f46e7 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.
2015-06-16 15:09:24 +02:00
Nils Ackermann
32a4883440 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.
2015-06-16 09:24:47 +02:00
Glenn Morris
5b0acc59e8 * doc/emacs/calendar.texi (Format of Diary File):
Move "nonmarking" from here...
(Displaying the Diary): ... to here.
2015-06-16 00:01:21 -07:00
Glenn Morris
b73912bd2e * 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.
2015-06-15 23:53:24 -07:00
Glenn Morris
bb53338aaf * 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.
2015-06-15 23:49:17 -07:00
Glenn Morris
7ca145d3f9 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.
2015-06-15 23:02:58 -07:00
Glenn Morris
e80225000d ; Comment fixes. 2015-06-15 21:24:24 -04:00
Glenn Morris
6ebbc2f698 * 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.
2015-06-15 20:46:01 -04:00
Glenn Morris
c57b0e4b24 * lisp/macros.el (name-last-kbd-macro, kbd-macro-query)
(apply-macro-to-region-lines): Use user-error.
2015-06-15 20:41:54 -04:00
Glenn Morris
2f1f014b93 * lisp/textmodes/page-ext.el (add-new-page, pages-directory)
(pages-directory-for-addresses): Doc fixes.
2015-06-15 20:40:41 -04:00
Stefan Monnier
b95f53f038 * 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.
2015-06-15 18:48:08 -04:00
Glenn Morris
4c4a329cf4 ; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Fix recent change.
2015-06-15 18:02:33 -04:00
Stefan Monnier
f784272f73 * 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).
2015-06-15 17:10:06 -04:00
Paul Eggert
e58a815339 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
2015-06-15 12:41:01 -07:00
Eli Zaretskii
f0f216eaa1 ;* src/fontset.c: Update obsolete commentary. 2015-06-15 20:14:11 +03:00
Eli Zaretskii
ee715b9f6d 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.
2015-06-15 20:10:19 +03:00
Eli Zaretskii
643e0527b1 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)
2015-06-15 19:11:43 +03:00
Nicolas Petton
c8dc4d6804 * lisp/emacs-lisp/map.el (map-let): Better docstring. 2015-06-15 12:43:09 +02:00
Paul Eggert
08bad175d4 Spelling fixes 2015-06-14 22:56:45 -07:00
Paul Eggert
a281b3db3e ; Omit mistaken update 2015-06-14 22:24:25 -07:00