Stefan Monnier
8fd527eb00
* lisp/emacs-lisp/cl|eieio: Minor tweaks
...
* lisp/emacs-lisp/cl-macs.el (cl-dolist, cl-dotimes): Silence byte-compiler.
* lisp/emacs-lisp/eieio.el (defclass): Change internal name so as to make
sure only EIEIO files should have "eieio--" prefixes in their .elc.
2015-03-26 13:32:45 -04:00
Boruch Baum
3e0fc97bef
* lisp/bookmark.el (bookmark-show-all-annotations): Sort them
...
Fixes: debbugs:20177
2015-03-25 21:43:51 -04:00
Paul Eggert
124ea7763a
Spelling fixes
2015-03-25 18:19:52 -07:00
Dmitry Gutov
58c86059c6
Only escape quotation mark, backslash and cntrl U+0000 to U+001F
...
* lisp/json.el (json-special-chars): Don't treat `/' specially, there's
no need to.
(json-encode-string): Only escape quotation mark, backslash and
the control characters U+0000 to U+001F.
2015-03-25 21:54:29 +02:00
Stefan Monnier
2b828866c2
* etc/TODO: Remove obsolete entries.
2015-03-25 14:28:25 -04:00
Artur Malabarba
eeb515715d
emacs-lisp/checkdoc.el: Don't complain about args starting with _.
2015-03-25 17:48:38 +00:00
Stefan Monnier
7c4a0e3b46
* international/mule-cmds.el: Show chars in C-x 8 RET completions
...
* lisp/international/mule-cmds.el (mule--ucs-names-annotation): New func.
(read-char-by-name): Use it.
2015-03-25 13:45:34 -04:00
Stefan Monnier
76040ddd8a
* lisp/xt-mouse.el (xterm-mouse--read-number-from-terminal): Fix last commit.
2015-03-25 09:34:20 -04:00
Stefan Monnier
176d864cbf
* lisp/erc/erc.el (erc-switch-to-buffer): Fix last change.
...
Fixes: debbugs:20187
2015-03-25 08:53:44 -04:00
Nicolas Petton
d46f31b4b2
* lisp/emacs-lisp/seq.el: Documentation improvements
2015-03-25 09:21:14 +01:00
Glenn Morris
f314d48159
browse-url: mark some of the more obsolete stuff as such
...
* lisp/net/browse-url.el (browse-url-browser-function)
(browse-url-default-browser):
Remove obsolete items from the explicit listing.
(browse-url-new-window-flag, browse-url-of-file-hook): Doc fixes.
(browse-url-netscape-program, browse-url-netscape-arguments)
(browse-url-netscape-startup-arguments)
(browse-url-galeon-program, browse-url-galeon-arguments)
(browse-url-galeon-startup-arguments)
(browse-url-gnome-moz-program, browse-url-gnome-moz-arguments)
(browse-url-galeon-new-window-is-tab)
(browse-url-netscape-new-window-is-tab)
(browse-url-mosaic-program, browse-url-mosaic-arguments)
(browse-url-mosaic-pidfile, browse-url-CCI-port)
(browse-url-CCI-host, browse-url-netscape-version)
(browse-url-netscape, browse-url-netscape-sentinel)
(browse-url-netscape-reload, browse-url-netscape-send)
(browse-url-galeon, browse-url-galeon-sentinel)
(browse-url-gnome-moz, browse-url-mosaic, browse-url-cci)
(browse-url-w3-gnudoit): Make obsolete.
* etc/NEWS: Mention this.
* doc/misc/idlwave.texi (HTML Help Browser Tips): Remove obsolete info.
* lisp/ffap.el (ffap-url-fetcher): Simplify default and doc.
* lisp/x-dnd.el: Comment update.
2015-03-24 23:26:48 -07:00
Olaf Rogalsky
c2385c6f36
* lisp/xt-mouse.el: Add mouse-tracking support.
...
Fixes: debbugs:19416
* lisp/xt-mouse.el: Add mouse-tracking support.
(xterm-mouse-translate-1): Handle mouse-movement events.
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): Delete functions.
(xterm-mouse--read-event-sequence): New function that handles both at
the same time. Handle mouse-movements.
(xterm-mouse--read-utf8-char, xterm-mouse--read-number-from-terminal):
New functions.
(xterm-mouse-event): Simplify.
(xterm-mouse-tracking-enable-sequence)
(xterm-mouse-tracking-disable-sequence): Enable mouse tracking.
* lisp/mouse.el (mouse-drag-line): Also ignore `vertical-line' prefix events.
2015-03-24 21:04:00 -04:00
Eric Abrahamsen
b28753b55c
lisp/gnus/nnimap.el: Don't split imap messages back into original group
2015-03-24 22:12:58 +00:00
Michael Albinus
444975fa54
Improve special char handling in Tramp
...
* net/tramp-sh.el (tramp-do-file-attributes-with-ls)
(tramp-do-file-attributes-with-stat): Quote file names in output.
(tramp-do-directory-files-and-attributes-with-stat): Use "//" as marker.
2015-03-24 20:05:00 +01:00
Daiki Ueno
71fdbd770b
epg: Fix key generation interface
...
* epg.el (epg-start-generate-key): Fix typo in "gpg --gen-key"
invocation; make the PARAMETERS documentation clearer.
2015-03-24 16:32:08 +09:00
Stefan Monnier
d7d72624b2
Add cl-struct specific optimizations to pcase.
...
* lisp/emacs-lisp/cl-macs.el (cl--struct-all-parents)
(cl--pcase-mutually-exclusive-p): New functions.
(pcase--mutually-exclusive-p): Advise to optimize cl-struct patterns.
* lisp/emacs-lisp/pcase.el (pcase--split-pred): Handle quoted string.
2015-03-23 23:40:06 -04:00
Stefan Monnier
ae277259b1
Add new cl-struct' and eieio' pcase patterns.
...
* lisp/emacs-lisp/cl-macs.el (cl-struct): New pcase pattern.
* lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-table)
(eieio-pcase-slot-index-from-index-table): New functions.
(eieio): New pcase pattern.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): New function.
(pcase): Use it to build the docstring.
(pcase-defmacro): Make sure the macro is lazy-loaded.
(\`): Move its docstring from `pcase'.
2015-03-23 18:24:30 -04:00
Paul Eggert
2393085c9a
Merge from origin/emacs-24
...
ad89f85 Another minor improvement in ELisp manual (Bug#20168)
5e2951b Improve docs of 'posn-actual-col-row' (Bug#20169)
1291ce1 Minor documentation fix in ELisp manual (Bug#20174)
33e2236 * display.texi (Useless Whitespace): Fix thinko.
ff3878d * configure.ac: Fix jpeg version check to work with gcc >= 5.
90b46f5 Work for the case nnmail-expiry-target is an nnmh group (bug#20170)
e7f92aa authors.el small additions
0bfe915 * etc/PROBLEMS: Add entry about dir-locals and some auto-mounters.
c3c4b75 Fixes: debbugs:18939
Conflicts:
ChangeLog
doc/lispref/ChangeLog
etc/PROBLEMS
lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/simple.el
2015-03-23 10:30:33 -07:00
Paul Eggert
a660037698
Merge from origin/emacs-24
...
bb7b23c In `debug' don't try using window on inaccessible frame (Bug#17170).
Conflicts:
lisp/ChangeLog
2015-03-23 10:17:21 -07:00
Dmitry Gutov
a50c95dbd2
Get rid of json-decode-char0 as well
...
Fixes: debbugs:20154
* lisp/json.el (json-decode-char0): Delete this alias as well.
(json-read-escaped-char): Don't call it.
2015-03-23 18:00:39 +02:00
Daniel Colascione
bad7308e0c
Fix previous commit (again)
2015-03-23 01:54:42 -07:00
Daniel Colascione
b8d7d7e8e6
Fix previous commit
2015-03-23 01:42:56 -07:00
Daniel Colascione
d235b1d261
Try to avoid fontifying macros in funcall position
...
* lisp/emacs-lisp/lisp-mode.el
(lisp--el-non-funcall-position-p): New function.
(lisp--el-match-keyword): Use it.
2015-03-23 01:38:20 -07:00
Ben Bacarisse
90b46f5b54
lisp/gnus/nnmh.el (nnmh-request-expire-articles): Work for the case nnmail-expiry-target is an nnmh group (bug#20170)
2015-03-23 08:02:01 +00:00
Daiki Ueno
47e0e31932
Generalize start-process with keyword args
...
* src/process.c (Fmake_process): New function.
(create_process, create_pty): Check p->pty_flag instead of
Vprocess_connection_type.
(syms_of_process): Register QCcommand, QCconnection_type, Qpty,
Qpipe, and Smake_process. Unregister Sstart_process.
* lisp/subr.el (start-process): New function, ported from the C
implementation.
* doc/lispref/processes.texi (Asynchronous Processes): Mention
`make-process'.
* etc/NEWS: Mention `make-process'.
2015-03-23 16:27:29 +09:00
Daniel Colascione
165bea7800
Automatically adjust process window sizes
...
* lisp/window.el (window-adjust-process-window-size-function): New
customizable variable.
(window-adjust-process-window-size)
(window-adjust-process-window-size-smallest)
(window-adjust-process-window-size-largest)
(window--process-window-list, window--adjust-process-windows):
New functions.
(window-configuration-change-hook): Add
`window--adjust-process-windows'.
* lisp/term.el (term-mode): Observe result of
`window-adjust-process-window-size-function'.
(term-check-size): Delete.
2015-03-22 21:09:32 -07:00
Jackson Ray Hamilton
f4c23f4583
Have `sgml-attribute-offset' control SGML attribute indentation
...
Fixes: debbugs:20161
* textmodes/sgml-mode.el (sgml-attribute-offset): New defcustom.
(sgml-calculate-indent): Use `sgml-attribute-offset' for attribute
indentation.
2015-03-22 20:47:43 -07:00
Glenn Morris
e7f92aa3d3
authors.el small additions
...
* lisp/emacs-lisp/authors.el (authors-aliases)
(authors-obsolete-files-regexps): Additions.
2015-03-22 17:33:49 -07:00
Dmitry Gutov
a3b6c249e9
Rewrite json-encode-string
...
Fixes: debbugs:20154
* lisp/json.el (json-decode-char0): Delete this alias.
(json-encode-string): Rewrite to improve performance.
(json-encode-char): Fold into `json-encode-string'.
2015-03-23 00:50:58 +02:00
Artur Malabarba
2a954e8aa6
* menu-bar.el (menu-bar-update-buffers): Properly count buffers.
2015-03-22 19:29:57 +00:00
Jan D
c3c4b758c6
Fixes: debbugs:18939
...
* simple.el (deactivate-mark): Only modify PRIMARY if we own PRIMARY.
2015-03-22 19:31:46 +01:00
Martin Rudalics
bb7b23c5cb
In `debug' don't try using window on inaccessible frame (Bug#17170).
...
* emacs-lisp/debug.el (debug): Don't try using "previous"
window when its not live or on an invisible frame (Bug#17170).
2015-03-22 12:40:21 +01:00
Eric Abrahamsen
6e1fac9bc7
lisp/gnus/{registry.el,gnus-registry.el}: Use slot names in references to object slot values
2015-03-21 23:59:30 +00:00
Titus von der Malsburg
4a50af936e
Add new functions for computing default font dimensions
...
lisp/window.el (window-font-width, window-font-height)
(window-max-chars-per-line): New functions.
lisp/simple.el (default-font-height): Doc fix.
(default-font-width): New function.
etc/NEWS: Mention `default-font-width', `window-font-height',
`window-font-width', and `window-max-chars-per-line'.
2015-03-21 12:31:29 +02:00
Eli Zaretskii
e72edc05c3
Fix lisp/ChangeLog entry from last commit.
2015-03-21 12:04:39 +02:00
Mario Lang
17ad6f839e
Fix problems caused by calling 'recenter' in auto-revert (Bug#20122)
...
lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.
(cherry picked from commit 4a81602043 )
2015-03-21 12:01:27 +02:00
Tassilo Horn
fa734d07ab
Handle setf methods in elisp font-locking.
...
* emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Also
recognize (cl-)defmethod with (setf method) name.
2015-03-21 08:52:34 +01:00
Tassilo Horn
73b8237c19
Fix CL function name font-lock bug.
...
* emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-1): Fix
false positive in function name font-locking.
2015-03-20 23:35:22 +01:00
Tassilo Horn
c9998fcbf4
Fix elisp function name font-lock bug.
...
* emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Fix
false positive in function name font-locking.
2015-03-20 23:09:06 +01:00
Stefan Monnier
4cd31cf019
(cl-defsubst): Ignore false-positive occurrences of args via &cl-defs
...
Fixes: debbugs:20149
* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Ignore false-positive
occurrences of args via &cl-defs.
2015-03-20 16:29:21 -04:00
Alan Mackenzie
932d0fdb4f
Fix debbugs#20146
...
* font-lock.el (font-lock-extend-jit-lock-region-after-change):
Return the calculated values, as per spec.
2015-03-20 15:39:37 +00:00
Eric Abrahamsen
1fcc552ac2
lisp/gnus/registry.el (registry-prune): Allow registry to reach full size before pruning
2015-03-20 10:49:41 +00:00
Eric Abrahamsen
b8ea3aa9db
lisp/gnus/registry.el (registry-collect-prune-candidates): Fix call to cl-subseq
2015-03-20 10:49:06 +00:00
Glenn Morris
395a76ad1c
# ChangeLog fixes
...
Using eg add-change-log-entry-other-window, C-x 4 a, would avoid these issues
2015-03-19 23:02:28 -07:00
Dmitry Gutov
8142fc97af
ruby-mode: Fix a "required arguments" confusion
...
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit'
and `callcc' to the "methods with required arguments" section,
they need a block argument. Remove a `throw' duplicate.
2015-03-20 07:03:54 +02:00
Dmitry Gutov
1c4900d953
Backport: ruby-mode: Detect regexps after `!'
...
Fixes: debbugs:19285
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Detect
regexps after `!'.
(cherry picked from commit 8854b9cf52 )
2015-03-20 06:05:02 +02:00
Dmitry Gutov
f74843a7f1
Backport: ruby-mode: Change faces used for self, true, false and nil
...
Fixes: debbugs:17733
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Use
`font-lock-constant-face' for nil, true and false. Highlight
`self' as a keyword.
(cherry picked from commit e991af9228 )
2015-03-20 06:04:54 +02:00
Nobuyoshi Nakada
a5d1f94fec
Backport: ruby-mode: Expect regexp after { or | too
...
Fixes: debbugs:20026
* progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Expect
beginning of regexp also after open brace or vertical bar.
(cherry picked from commit dad0fc589c )
2015-03-20 06:04:36 +02:00
Vibhav Pant
3ffcf0e3de
Call delete-backward-space interactively.
...
* lisp/progmodes/cperl-mode.el (cperl-electric-backspace):
Call delete-backward-space interactively instead of delete-char.
* lisp/Changelog: Fix previous changelog.
2015-03-20 01:43:37 +05:30
Stefan Monnier
8aa13d07fe
* lisp/emacs-lisp/pcase.el (pcase-lambda): Rewrite.
2015-03-19 13:46:36 -04:00