1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00
Commit graph

65348 commits

Author SHA1 Message Date
Artur Malabarba
e60a1e2717 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort):
Check if column can be sorted before trying.  (Bug#21639)
2015-10-07 15:13:07 +01:00
Artur Malabarba
4d04cee060 * lisp/progmodes/prog-mode.el (prettify-symbols-alist):
Document more possible values.
2015-10-07 09:40:25 +01:00
Stefan Monnier
8528f7c9f1 * lisp/textmodes/tex-mode.el: Use lexical-binding 2015-10-06 22:57:53 -04:00
Stefan Monnier
f54e5ccfdb * lisp/indent.el (indent--default-inside-comment): New function
(indent-for-tab-command): Use it for `noindent' indentation.
2015-10-06 22:56:24 -04:00
Tassilo Horn
a4a98a1b25 Add prettified version of \\Bbb{Q}.
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
prettified version for \\Bbb{Q}.
2015-10-06 21:00:02 +02:00
Aaron Ecay
81558130c1 lisp/emacs-lisp/package.el (package-install): Fix name error
* lisp/emacs-lisp/package.el (package-install): Fix error when pkg is
  not a package-desc object.  Also clarify documentation.  (Bug#21625)
2015-10-06 19:38:11 +01:00
Eli Zaretskii
7e83f50226 ; Another minor fix in misc-lang.el 2015-10-05 22:24:25 +03:00
Eli Zaretskii
0a74e2b590 Fix composition-function-table for Arabic and Syriac
* lisp/language/misc-lang.el (composition-function-table): Fix
entries for Arabic and Syriac.
2015-10-05 22:19:39 +03:00
Stefan Merten
94e5235007 Pull in version numbers from rst.el upstream release.
* lisp/textmodes/rst.el (rst-cvs-header, rst-svn-rev)
	(rst-svn-timestamp, rst-official-version)
	(rst-official-cvs-rev, rst-package-emacs-version-alist):
	Update version numbers.
2015-10-04 22:30:30 +02:00
Michael Albinus
acfb5cd035 Improve XEmacs compatibility of Tramp
* lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
Declare if it doesn't exist.
(file-remote-p): Remove defalias, which was necessary for GNU Emacs 21.
(redisplay): Make it an alias if it doesn't exist.

* lisp/net/tramp.el (tramp-get-remote-tmpdir): Don't use
`file-remote-p' (due to XEmacs compatibility).

* lisp/net/trampver.el (locate-dominating-file)
(tramp-compat-replace-regexp-in-string): Autoload.
(tramp-repository-get-version): Do not dupe byte-compiler.
2015-10-04 13:00:33 +02:00
Eli Zaretskii
45d0b3dd11 shr: fix too long lines in rendered buffers (Bug#21012)
Co-authored-by: Michael Heerdegen <michael_heerdegen@web.de>
* lisp/net/shr.el (shr-insert-document, shr-fill-text):
Correct calculation of available width.
(shr-find-fill-point): Don't overflow window edge if shr-kinsoku-shorten
is nil.
2015-10-04 09:35:25 +02:00
Vincent Belaïche
460c357676 Support MSW filename style for ant compilation error regexp
* etc/compilation.txt (symbol ant):
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Support MSW filename style
2015-10-04 07:57:28 +02:00
Paul Eggert
99763700e3 * lisp/ibuffer.el: Fix docstring length (Bug#21541). 2015-10-03 17:26:02 -07:00
Simen Heggestøyl
6b66375133 Maintain ordering of JSON object keys by default
* lisp/json.el (json-object-type): Mention order handling in doc-string.
(json--plist-reverse): New utility function.
(json-read-object): Maintain ordering for alists and plists.
(json-pretty-print): Ensure that ordering is maintained.

* test/automated/json-tests.el (test-json-plist-reverse): New test for
`json--plist-reverse'.
(json-read-simple-alist): Update test to accommodate for changes in
`json-read-object'.

* etc/NEWS: Document the new behavior of the pretty printing functions.
2015-10-03 23:52:36 +02:00
Michael Albinus
40892b46f8 ; Tramp: Suppress compiler warnings. 2015-10-03 10:09:41 +02:00
Markus Triska
d771ae0d5f * prolog.el: Update and extend operator table
(prolog-smie-grammar): Add multifile, public etc.
2015-10-02 16:47:06 -04:00
Stefan Monnier
a5c20339c5 * lisp/vc/vc-git.el (vc-git-region-history): Handle local changes
Adjust lto/lfrom when we have uncommitted changes.
2015-10-02 15:24:23 -04:00
Daniel Colascione
87fb1e38dc Fix winner in cl-lib not loaded case
* lisp/winner.el (winner-change-fun): Don't use cl-lib functions
without requiring CL
2015-10-01 22:27:41 -07:00
Paul Eggert
dd6346e00c Fix a few problems with directed quotes
This is in response to a problem report by Kaushal Modi in:
http://bugs.gnu.org/21588#25
* lisp/cedet/mode-local.el (describe-mode-local-overload):
* lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header):
* lisp/info-xref.el (info-xref-check-all-custom):
* lisp/mail/emacsbug.el (report-emacs-bug-hook):
Prefer directed to undirected single quotes in diagnostics.
2015-10-01 21:44:35 -07:00
Stephen Leake
632847e07c Set default base-size in minibuffer-completion-help
* lisp/minibuffer.el (minibuffer-completion-help): Set default base-size,
in case completion table does not set it.
2015-10-01 09:33:59 -05:00
Eli Zaretskii
9c86325b69 ; * lisp/progmodes/gdb-mi.el (gdb-mi-decode): Improve last change. 2015-10-01 14:52:03 +03:00
Eli Zaretskii
439f483be3 Fix GUD display of GDB output with non-ASCII text
* lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): New defcustom.
(gdb-mi-decode): New function.
(gud-gdbmi-marker-filter): If gdb-mi-decode-strings is non-nil,
decode octal escapes in GDB output.  (Bug#21572)
2015-10-01 14:40:10 +03:00
Glenn Morris
cedcce77f7 ; Auto-commit of loaddefs files. 2015-10-01 06:18:29 -04:00
Tassilo Horn
9e4a6ad1c7 Un- and re-prettification are not exclusive
* lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
Re-apply prettification to previous symbol also when unprettifying next
one.
2015-10-01 08:07:40 +02:00
Tassilo Horn
35ad158f3d Don't unprettify symbol at point by default
* lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
Default to disabled (nil).
2015-10-01 07:54:45 +02:00
Artur Malabarba
cbae4820f9 * lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
Support unprettifying when point is after a symbol.

* etc/NEWS: Document `prettify-symbols-unprettify-at-point'
2015-10-01 02:14:14 +01:00
Eli Zaretskii
80a86074a8 ; Revert inadvertent premature commit. 2015-09-30 22:42:59 +03:00
Eli Zaretskii
5c9304ea86 Disable some display optimizations when frames need redisplay
These optimizations were previously disabled by the
windows_or_buffers_changed flag, which now is not set
when only some frames need to be redrawn.
* src/xdisp.c (redisplay_internal): Redisplay any frame whose
'redisplay' flag is set.
(try_window_reusing_current_matrix, try_window_id)
(try_cursor_movement): Disable these optimizations when the
frame's 'redisplay' flag is set.
2015-09-30 22:32:14 +03:00
Tassilo Horn
82df1878e6 Don't modify buffer by unprettification
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
(prettify-symbols--post-command-hook, prettify-symbols-mode): Don't
modify buffer when setting/removing custom prettify-symbols-start/end
text properties.  Add them to font-lock-extra-managed-props, too.
2015-09-30 20:15:22 +02:00
Tassilo Horn
e73b0d6f03 Implement unprettification of symbol at point
* lisp/progmodes/prog-mode.el: Implement feature for unprettifying the
symbol at point.
(prettify-symbols--current-symbol-bounds): New variable.
(prettify-symbols--post-command-hook): New function.
(prettify-symbols-unprettify-at-point): New defcustom.
(prettify-symbols-mode): Use it.
(prettify-symbols--compose-symbol): Use them.
2015-09-30 12:30:45 +02:00
Nicolas Petton
d1fb5e6c49 * lisp/arc-mode.el (archive-rar-summarize): Better alignment of the columns. 2015-09-30 10:13:26 +02:00
Nicolas Petton
25979c8e35 Use unar and lsar to handle RAR archives in arc-mode
* lisp/arc-mode.el (archive-rar-extract, archive-extract-by-file): Rely
on unar and lsar instead of unrar-free for RAR archives (Bug#17663).
2015-09-30 10:13:26 +02:00
Wieland Hoffmann
afd17a95b8 Clarify :create in auth-source's docs
* auth-source.el (auth-source-search): Clarify :create's meaning.

Copyright-paperwork-exempt: yes
2015-09-30 09:51:32 +02:00
Phil Sainty
3968fa6a44 Avoid empty -path arguments in rgrep
* lisp/progmodes/grep.el (rgrep-default-command): Remove nil from
the list produced according to grep-find-ignored-directories,
before passing it to Find/Grep invocation.  (Bug#21548)
2015-09-30 10:39:21 +03:00
Stefan Monnier
e1877439d8 * lisp/progmodes/prolog.el: Fix various indentation cases
(prolog-operator-chars): New const (add \\).
(prolog-smie-forward-token, prolog-smie-backward-token): Use it.
(prolog-smie-rules): Add rules according to bug#21526.
2015-09-29 23:28:32 -04:00
Stefan Monnier
d6b49570f6 * lisp/progmodes/sh-script.el: Old "dumb" continued line indent
(sh-indent-after-continuation): Add new value `always' (bug#17620)
(sh-smie-sh-rules): Remove old handling of continued lines.
(sh-smie--indent-continuation): New function.
(sh-set-shell): Use it.
2015-09-29 21:43:07 -04:00
Stefan Monnier
90a6f8d074 * lisp/progmodes/octave.el: Use grammar more; Handle enumeration fun
Remove redundant :group keyword args.
(octave-begin-keywords, octave-else-keywords, octave-end-keywords):
Remove variables.
(octave-operator-table, octave-smie-bnf-table): Use let-when-compile to
turn them into compile-time variables.
Auto-generate the "foo ... end" rules from the "foo ... endfoo" rules.
Add rules for break, continue, return, global, and persistent.
Refine the rule for "until".
(octave-smie--funcall-p, octave-smie--end-index-p)
(octave-smie--in-parens-p): New functions.
(octave-smie-backward-token, octave-smie-forward-token): Use them to
distinguish the "enumeration" function and the "end" index from
their corresponding keywords.
(octave--block-offset-keywords): New constant.
(octave-smie-rules): Use it.  Adjust rules for new global/persistent parsing.
(octave-reserved-words): Redefine using octave-smie-grammar.
(octave-font-lock-keywords): Use octave-smie--funcall-p and
octave-smie--end-index-p.
2015-09-29 15:13:44 -04:00
Stefan Monnier
1fea2f3b74 * lisp/emacs-lisp/lisp-mode.el (let-when-compile): Work like let* 2015-09-29 15:08:55 -04:00
Glenn Morris
2211052bbf ; ChangeLog fix 2015-09-29 12:31:41 -04:00
Katsumi Yamaoka
8b95ee49bc * net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
Suggested by Eli Zaretskii.
2015-09-29 06:30:48 +00:00
Katsumi Yamaoka
888d644f0b * net/shr.el (shr-colorize-region):
Don't do it on a system not supporting 256 above colors (bug#21557).
2015-09-29 02:01:50 +00:00
Dmitry Gutov
166a6556d0 ; Remove extraneous "coding: utf-8" specifications in Elisp files 2015-09-29 01:39:46 +03:00
Dmitry Gutov
2d712286ac Revert "Don't rely on defaults in decoding UTF-8 encoded Lisp files"
This reverts commit db828f62f6.
2015-09-29 01:39:46 +03:00
Nicolas Petton
f0b71429b9 Better documentation for seq-some
* doc/lispref/sequences.texi:
* lisp/emacs-lisp/seq.el: Update the documentation of seq-some to
guarantee that the returned value is the first non-nil value that
resulted from applying the predicate.
2015-09-28 21:15:58 +02:00
Nicolas Petton
5526561b0c * lisp/arc-mode.el: Sharp-quote function arguments. 2015-09-28 21:15:58 +02:00
Eli Zaretskii
1f279344e4 Avoid redisplay error in ediff-regions-wordwise
* lisp/vc/ediff-util.el
(ediff-clone-buffer-for-region-comparison): Make sure the mark is
set before activating it.  (Bug#21567)
2015-09-28 18:53:26 +03:00
(tiny change) Arash Esbati
d944f728b7 Improve wrapfig package support and caption parsing
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Correct
description string and add wraptable environment.
(reftex-default-context-regexps): Improve caption regexp.

Copyright-paperwork-exempt: yes
2015-09-28 08:31:57 +02:00
Simen Heggestøyl
1ac5a9c20c Add prettify-symbols-alist for js-mode
* lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst.
(js-mode): Use it.
2015-09-27 10:04:09 +02:00
Alan Mackenzie
3d16ffb304 Fix follow-scroll-up/down, making them replacements for scroll-up/down.
1. Allow point to move between follow windows in scroll operations.
2. Fix bug where `right-char' just before EOB caused spurious scrolling,
when EOB was isolated in the last follow window.

lisp/follow.el (follow-fixed-window): New variable.
(follow-get-scrolled-point): New function.
(follow-scrol-up, follow-scroll-down): Add autoload cookies.
Reformulate
the code.  Put `scroll-command' properties on the functions.  Correct
minor errors in ...-down's doc string and code.
(follow-calc-win-end): Amend incomplete doc string.  Use
`pos-visible-in-window-p' to check whether EOB is in the window.
(follow-estimate-first-window-start): Correct an off-by-1 error.
(follow-adjust-window): Add handling for explicit scrolling operations.
2015-09-26 19:07:24 +00:00
Zachary Kanfer
80cc5d13d4 New DWIM commands for changing letter-case
* lisp/simple.el (upcase-dwim, downcase-dwim, capitalize-dwim):
New functions.  (Bug#21501)

Copyright-paperwork-exempt: yes
2015-09-26 11:09:19 +03:00