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

120484 Commits

Author SHA1 Message Date
Fujii Hironori
37e3549055 Fix display of IME window on MS-Windows (Bug#11732)
src/w32fns.c (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Pass the
 message to DefWindowProc, after positioning the IME window, to
 trigger its display.

 Copyright-paperwork-exempt: yes
2015-02-19 13:40:48 +02:00
Stefan Monnier
99db66a01f * lisp/emacs-lisp/smie.el (smie-prec2->grammar): Fix corner case problem. 2015-02-18 20:31:17 -05:00
Katsumi Yamaoka
746d2923d6 lisp/gnus/nnimap.el (nnimap-get-groups): Fix XEmacs compilation 2015-02-18 23:06:12 +00:00
Eric Abrahamsen
0a1c83457d Handle unquoted IMAP group names
* lisp/gnus/nnimap.el (nnimap-get-groups): Correctly read unquoted
group names from the server LIST response.
2015-02-18 22:25:22 +00:00
Eli Zaretskii
7932d062cf Fix exit code when stdin is at EOF (Bug#19897)
src/emacs.c (Fkill_emacs): Exit with specified exit code even if
 stdin is at EOF.
2015-02-18 23:14:31 +02:00
Kelly Dean
b1d6ddd446 Push mark before goto-char in jump-to-register and check-parens
* register.el (jump-to-register):
* emacs-lisp/lisp.el (check-parens):
Push mark before goto-char so user doesn't lose his previous place.
2015-02-18 16:36:24 -02:00
Kelly Dean
56f5ea17f1 rect.el: Suppress superfluous "Mark set" message from push-mark. 2015-02-18 16:36:24 -02:00
Kelly Dean
72f7eded97 Use user-error where error is inappropriate
* help-mode.el (help-go-back, help-go-forward, help-follow):
* simple.el (yank-pop, pop-to-mark-command, exchange-point-and-mark):
* winner.el (winner-redo):
* windmove.el (windmove-do-window-select):
* register.el (jump-to-register, increment-register, insert-register)
(append-to-register, prepend-to-register):
* files.el (find-alternate-file, abort-if-file-too-large, write-file)
(set-visited-file-name):
* emacs-lisp/lisp.el (kill-backward-up-list):
Use user-error instead of error. (Bug#14480)
2015-02-18 16:36:22 -02:00
Stefan Monnier
ad6c1be923 * lisp/emacs-lisp/checkdoc.el (checkdoc-show-diagnostics): Don't make bogus
assumptions about window ordering.
2015-02-18 11:04:15 -05:00
Oscar Fuentes
81d89d88ae Fixes display of prefix argument when input-method-function
* keyboard.c (read_char): When there is an input method function,
do not restore the echo area if a prefix argument is being
introduced.  (Bug#19875)
2015-02-18 05:09:12 +01:00
Kelly Dean
8338e4420d lisp/files.el (insert-file-contents-literally): Fix typo 2015-02-17 22:16:24 -02:00
Kelly Dean
04096849d5 emacs-lisp/easy-mmode.el: Clarify mode switch messages
* emacs-lisp/easy-mmode.el (define-minor-mode): Clarify mode
switch messages for minor modes. (Bug#19690)
2015-02-17 22:16:22 -02:00
Kelly Dean
cc273d1c03 emacs-lisp/easy-mmode.el (define-minor-mode): Clarify docs 2015-02-17 22:15:10 -02:00
Kelly Dean
3194809d24 emacs-lisp/easy-mmode.el: Process macro arguments correctly
* emacs-lisp/easy-mmode.el (define-minor-mode): Process macro
arguments correctly. (Bug#19685)
2015-02-17 22:08:52 -02:00
Kelly Dean
1f2c4f817e emacs-lisp/package-x.el: Create valid tar files
* emacs-lisp/package-x.el (package-upload-buffer-internal):
Create valid tar files. (Bug#19536)
2015-02-17 22:08:51 -02:00
Kelly Dean
1e00ee2497 desktop.el: Conditionally re-enable desktop autosave
* desktop.el (desktop-read): Conditionally re-enable
desktop autosave. (Bug#19059)
2015-02-17 22:08:51 -02:00
Kelly Dean
77052f4baa * help-mode.el: Prevent duplicated display of Info buffer. (Bug#13190) 2015-02-17 22:08:51 -02:00
Kelly Dean
cec04fb220 * src/keyboard.c (timer_check_2): Fix incorrect comment 2015-02-17 22:08:51 -02:00
Fabián Ezequiel Gallina
16d91bce1d python.el: Do not deactivate mark on shell fontification.
Fixes: debbugs:19871

* lisp/progmodes/python.el (python-shell-font-lock-post-command-hook):
Do not deactivate mark on fontification.
2015-02-16 19:53:59 -03:00
Ivan Shmakov
8b36bfafee Add autoload cookie for the eww-suggest-uris variable.
* lisp/net/eww.el (eww-suggest-uris): Add autoload cookie, so that
add-hook works correctly even if the file is not yet loaded.
2015-02-16 19:01:50 +00:00
Ivan Shmakov
2ea5364ca8 Fix eww.el desktop support.
* lisp/net/eww.el (eww-mode): Add autoload cookie.
(eww-restore-desktop): Use inhibit-read-only.

Fixes: debbugs:19226
2015-02-16 18:55:02 +00:00
Stefan Monnier
c4e2be4587 * lisp/emacs-lisp/eieio*.el: Align a bit better with CLOS
* lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag): Fix copy&paste
error (semanticdb-project-database => sym).  Avoid eieio--class-public-a
when possible.

* lisp/emacs-lisp/eieio-base.el (make-instance): Add a method here rather
than on eieio-constructor.

* lisp/emacs-lisp/eieio-core.el (eieio--class-print-name): New function.
(eieio-class-name): Make it do what the docstring claims.
(eieio-defclass-internal): Simplify since `prots' isn't used any more.
(eieio--slot-name-index): Simplify accordingly.
(eieio-barf-if-slot-unbound): Pass the class object rather than its
name to `slot-unbound'.

* lisp/emacs-lisp/eieio.el (defclass): Use make-instance rather than
eieio-constructor.
(set-slot-value): Mark as obsolete.
(eieio-object-class-name): Improve call to eieio-class-name.
(eieio-slot-descriptor-name, eieio-class-slots): New functions.
(object-slots): Use it.  Declare obsolete.
(eieio-constructor): Merge it with `make-instance'.
(initialize-instance): Use `dolist'.
(eieio-override-prin1, eieio-edebug-prin1-to-string):
Use eieio--class-print-name.

* test/automated/eieio-test-methodinvoke.el (make-instance): Add methods
here rather than on eieio-constructor.
2015-02-16 02:22:46 -05:00
Stefan Monnier
6bf61df8ab * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Keep type=nil by default.
* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Add sanity checks
about relationship between `type', `named', and `slots'.
* lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tagcode): Adjust to new
value of `cl-struct-type' property.
2015-02-16 01:37:57 -05:00
Katsumi Yamaoka
e59feb3c15 lisp/ChangeLog: Restore entries accidentally deleted 2015-02-16 03:42:00 +00:00
Lars Magne Ingebrigtsen
0d38b2f403 Don't mark nnimap articles as read on a server hangup
* lisp/gnus/nnimap.el (nnimap-retrieve-headers): If the server closes connection
during header retrieval, error out instead of interpreting the data in
the buffer as the only messages there.  This way, we don't mark
articles as read on a server hangup (bug#19035).
2015-02-15 23:11:41 +00:00
Lars Magne Ingebrigtsen
6090b8f68d Revert previous patch
(let ((url-news-server "news.gmane.org"))
  (url-retrieve-synchronously  "news:87y4p9y2cq.fsf@violet.siamics.net"))

works fine for me
2015-02-15 23:10:06 +00:00
Ivan Shmakov
4aafd19a0e Make `url-retrieve-synchronously' work again with news:
* lisp/gnus/nntp.el (nntp-open-server): Set variables in the correct buffer
(bug#19583).
2015-02-15 23:08:03 +00:00
Lars Magne Ingebrigtsen
45c5ccd48c Fix inserting parts with `E' in Gnus
* lisp/gnus/mm-decode.el (mm-head-p): New function.
(mm-display-part): Go to a blank line when inserting parts internally.
Fix inserting parts with `E' in Gnus

* lisp/gnus/mm-decode.el (mm-head-p): New function.
(mm-display-part): Go to a blank line when inserting parts internally.
2015-02-15 23:05:46 +00:00
Jérémy Compostella
ba5bc0ee7c Tramp: Disable paging with PAGER=cat.
Fixes: debbugs:19870

* net/tramp-sh.el (tramp-remote-process-environment): Disable paging
with PAGER=cat.
2015-02-15 10:57:33 +01:00
Martin Rudalics
ffec11d9b4 Fix doc-string of x_frame_normalize_before_maximize.
* xterm.c (x_frame_normalize_before_maximize): Fix doc-string.
Suggested by Alan Mackenzie <acm@muc.de>.
2015-02-14 18:50:37 +01:00
Artur Malabarba
f4f4f93e42 emacs-lisp/package.el (describe-package-1): Describe incompatibility. 2015-02-14 15:09:50 -02:00
Eli Zaretskii
93888585de Fix assertion violations when popping menus on TTY (Bug#19862)
src/menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
 x_relative_mouse_position only for X frames.
2015-02-14 15:11:30 +02:00
Artur Malabarba
34c7535912 emacs-lisp/package.el: Move the compatibility-table building logic. 2015-02-14 11:13:29 -02:00
Stefan Monnier
61b4c22c6e * lisp/emacs-lisp/cl*.el: Use define-inline and move some code
* lisp/emacs-lisp/cl-lib.el: Move autoloaded code to cl-preload.

* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Register as children
of the parent.
(cl--assertion-failed): New function.
(cl-assertion-failed): Move in from cl-lib.el.

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't generate code to register
as children of its parents.
(cl--make-type-test, cl--compiler-macro-typep): Remove functions.
(cl-typep): Reimplement using define-inline.
(cl-assert): Use cl--assertion-failed.
(cl-struct-slot-value): Use define-inline.
2015-02-14 00:46:29 -05:00
Stefan Monnier
0d54f2f51c * lisp/textmodes/flyspell.el (flyspell-word): Defvar.
Fixes: debbugs:19844

(flyspell-generic-check-word-p): Mark as obsolete.
* lisp/erc/erc-spelling.el (erc-spelling-init):
Use flyspell-generic-check-word-predicate.
2015-02-13 22:45:18 -05:00
Glenn Morris
03306795dd # Add 2015 to copyright years 2015-02-13 18:45:40 -08:00
Jan D
b9d8edcf6d Fixes: debbugs:19850
* configure.ac: Set locallisppath to empty for NS self contained,
unless --enable-loadllisppath was given.
2015-02-13 17:44:26 +01:00
Artur Malabarba
a03ab7eaf5 emacs-lisp/package.el (describe-package-1): Fix "incompat" handling. 2015-02-13 13:08:38 +00:00
Artur Malabarba
3b8b549fff emacs-lisp/package.el (package--incompatible-p): Check dependencies. 2015-02-13 12:26:46 +00:00
Lars Magne Ingebrigtsen
69e38a5b1f Move rfc2104 from gnus to net
* net/rfc2104.el: Moved here from lisp/gnus.
2015-02-13 19:57:56 +11:00
Magnus Henoch
e7d21b4ab1 Implement SCRAM-SHA-1 SASL mechanism
Fixes: debbugs:17636

* lisp/net/sasl-scram-rfc.el: New file.

* lisp/net/sasl.el (sasl-mechanisms): Remove SCRAM-MD5.  Add
SCRAM-SHA-1 first.
(sasl-mechanism-alist): Remove SCRAM-MD5 entry.  Add SCRAM-SHA-1
entry.

* test/automated/sasl-scram-rfc-tests.el: New file.
2015-02-13 19:57:56 +11:00
Lars Magne Ingebrigtsen
f61c87f12a lisp/gnus/gnus-msg.el (gnus-msg-mail): Buffer-local warning fix (bug#19573) 2015-02-13 08:16:39 +00:00
Lars Magne Ingebrigtsen
a8f93d14cb lisp/gnus/nnmail.el (nnmail-expiry-target-group): Allow expiring nnimap to a group again 2015-02-13 06:44:40 +00:00
Lars Magne Ingebrigtsen
10a5a054ac * lisp/net/shr.el (shr-tag-li): Speed up rendering pages with lots of <ul> 2015-02-13 15:51:23 +11:00
Paul Eggert
65563fd771 Better support for future plugins
See the thread containing:
http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00720.html
* lib-src/make-docfile.c (write_globals): Generate code that #defines
Qxxx macros other than Qnil only if DEFINE_NONNIL_Q_SYMBOL_MACROS.
Qnil is safe to define even in plugins, since it must be zero for
other reasons.
* src/lisp.h (DEFINE_LISP_SYMBOL): New macro, replacing and simplifying
DEFINE_LISP_SYMBOL_BEGIN / DEFINE_LISP_SYMBOL_END.  All uses changed.
(DEFINE_NONNIL_Q_SYMBOL_MACROS): New macro, defaulting to true.
2015-02-12 18:21:32 -08:00
Oleh Krehel
e39d96ebe4 gdb-mi.el (gdb-display-io-nopopup): New defcustom.
* lisp/progmodes/gdb-mi.el (gdb-inferior-filter): Don't pop up the
buried output buffer when `gdb-display-io-nopopup' is non-nil.
2015-02-12 11:22:16 +01:00
Katsumi Yamaoka
c7d9dec837 lisp/gnus/gnus-art.el (gnus-article-browse-html-save-cid-content, gnus-article-browse-html-parts): Make cid file names relative if and only if html doesn't specify <base> directory 2015-02-12 09:39:24 +00:00
Fabián Ezequiel Gallina
da726ad0c6 python.el: Allow killing shell buffer if process is dead.
Fixes: debbugs:19823

* lisp/progmodes/python.el (python-shell-font-lock-kill-buffer): Don't
require a running process.
(python-shell-font-lock-post-command-hook): Fontify only if the
shell process is running.
2015-02-12 00:41:07 -03:00
Artur Malabarba
511acc77a4 emacs-lisp/package.el: Indicate incompatible packages.
These are packages which require a higher emacs version than the
current one.
2015-02-12 00:14:46 -02:00
Artur Malabarba
0a66ca36fa emacs-lisp/package.el (package-install): Invert the second argument. 2015-02-12 00:14:46 -02:00