1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

120578 Commits

Author SHA1 Message Date
Eli Zaretskii
31ecbf8d51 Better decoding of HTML payload in Rmail
lisp/mail/rmailmm.el (rmail-mime-insert-html): Decode HTML payload
 when the charset is only given by the HTML <head>, and allow to
 specify the encoding with "C-x RET c".
2015-02-28 14:03:34 +02:00
Jan D
0537943561 Adjust offset and border calculations for X.
* xfns.c (x_real_pos_and_offsets): Take outer_border as arg also.
Initialize all args.  Get outer_border from window attributes.
Fix typo for top_offset_y.
(x_real_positions): Adjust for new arg to x_real_pos_and_offsets.
(Fx_frame_geometry): Get outer_border also.  Use attrs.width/height.

* xmenu.c (x_menu_show): Adjust for new arg to x_real_pos_and_offsets.

* xterm.h (x_real_pos_and_offsets): Take outer_border as arg also.
2015-02-27 18:46:26 +01:00
Eli Zaretskii
b2a590d4e3 Documentation followup for daemon mode on MS-Windows
doc/lispref/os.texi (Startup Summary):
 doc/lispref/display.texi (Window Systems): Mention peculiarities of daemon
 mode on MS-Windows.

 etc/NEWS: Mention the new support for daemon mode on MS-Windows.
2015-02-27 16:20:56 +02:00
Mark Laws
805fe50708 Support daemon mode on MS-Windows (bug#19688)
src/emacs.c <w32_daemon_event> [WINDOWSNT]: New global var.
 (main) [WINDOWSNT]: Initialize it to NULL.  Create the event to
 signal clients we are ready for connections.
 (Fdaemon_initialized): Use DAEMON_RUNNING.
 [WINDOWSNT]: MS-Windows specific code to signal clients we are
 ready for connections.
 src/lisp.h (DAEMON_RUNNING): New macro, encapsulates Posix and
 MS-Windows conditions for running in daemon mode.
 src/minibuf.c (read_minibuf): Use DAEMON_RUNNING.
 src/keyboard.c (kbd_buffer_get_event): Use DAEMON_RUNNING.
 src/dispnew.c (init_display) [WINDOWSNT]: Initialize frames/terminal
 even in daemon mode.

 nt/inc/ms-w32.h (W32_DAEMON_EVENT): New macro.

 lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Don't reject empty
 arguments for --alternate-editor.
 (print_help_and_exit) [WINDOWSNT]: Don't refrain from advertising
 empty arguments for --alternate-editor.
 (start_daemon_and_retry_set_socket) [WINDOWSNT]: MS-Windows
 specific code to start Emacs in daemon mode and wait for it to be
 ready for client connections.

 lisp/server.el (server-process-filter): Force GUI frames on
 MS-Windows in daemon mode, even if a TTY frame was requested.
 lisp/frameset.el (frameset-keep-original-display-p): Don't assume
 windows-nt cannot be in daemon mode.
 lisp/frame.el (window-system-for-display): Don't assume windows-nt
 cannot be in daemon mode.
2015-02-27 12:43:30 +02:00
Paul Eggert
6ef14349fa Don't require GNU putenv
* configure.ac: Use system putenv even if it lacks GNU features, as
we don't need them.  This works around a bug in FreeBSD 10.1 getenv.
Fixes: bug#19874
2015-02-27 00:05:06 -08:00
Ivan Shmakov
619fc5c197 Fix 'face property handling in facemenu-add-face.
* lisp/faces.el (face-list-p): Split from face-at-point.
(face-at-point): Use it.
* lisp/facemenu.el (facemenu-add-face): Likewise.

Fixes: debbugs:19912
2015-02-26 18:09:48 +00:00
Jan Djärv
5917b7907a Don't use OUTER_TO_INNER macros for plain X and lucid.
* xmenu.c (create_and_show_popup_menu): Call XTranslateCoordinates,
dont use OUTER_TO_INNER macros.
(x_menu_show): Call x_real_pos_and_offsets, don't use
OUTER_TO_INNER macros.
2015-02-26 16:42:03 +01:00
Oscar Fuentes
0ed52489b9 Fixed previous ChangeLog entry 2015-02-26 15:58:30 +01:00
Oscar Fuentes
b5a0603eb4 Use vc-switches on vc-*-annotate-command
This also removes switch "-C -C" from vc-git-annotate-command.

Fixes: debbugs:17945

* vc/vc.el (vc-annotate-switches): New defcustom.
* vc/vc-bzr.el (vc-bzr-annotate-switches): New defcustom.
(vc-bzr-annotate-command): Use it.
* vc/vc-cvs.el (vc-cvs-annotate-switches): New defcustom.
(vc-cvs-annotate-command): Use it.
* vc/vc-git.el (vc-git-annotate-switches): New defcustom.
(vc-git-annotate-command): Use it.
* vc/vc-hg.el (vc-hg-annotate-switches): New defcustom.
(vc-hg-annotate-command): Use it.
* vc/vc-mtn.el (vc-mtn-annotate-switches): New defcustom.
(vc-mtn-annotate-command): Use it.
* vc/vc-svn.el (vc-svn-annotate-switches): New defcustom.
(vc-svn-annotate-command): Use it.
2015-02-26 15:50:41 +01:00
Paul Eggert
d8e9122115 Merge from origin/emacs-24
e726f20 Handle "#" operator properly inside macro.  Fix coding bug.
618931b Handle dead frame in menu-bar-non-minibuffer-window-p.  (Bug#19728)
017a03a Document MS-Windows file-name idiosyncrasies  (Bug#19463)
f3faf4f Fix description of Customize buffer in Emacs manual.
1c1d0b7 Fix a typo in the Emacs manual's Hungry Delete description.
be7fb82 src/dispextern.h (FACE_FOR_CHAR): Fix the commentary.
33c4409 Spelling fixes
6c8231e python.el: Handle tabs in python-indent-dedent-line.
41c3b92 * lisp/progmodes/python.el: Respect user indentation after comment.
868df45 Avoid compiler warnings in decode_env_path.
b28c979 Fix XEmacs version typo in comment and ChangeLog
989fb32 Improve solution of bug #19701
6310530 Fix refilling of list of language environments in User Manual
c4c447d Restore XEmacs compatibility

Conflicts:
	doc/emacs/ChangeLog
	lisp/ChangeLog
	src/ChangeLog
	test/ChangeLog
2015-02-25 22:53:56 -08:00
Paul Eggert
cbd447e1cd Merge from origin/emacs-24
The following commits were skipped:

b75358e Merge remote-tracking branch 'origin/emacs-24' into emacs-24
c96c93f [Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
972282f [Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
2015-02-25 22:52:01 -08:00
Paul Eggert
4d36e5246e Merge from origin/emacs-24
7779da6 lisp/gnus/nimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
2015-02-25 22:52:00 -08:00
Paul Eggert
b6964cb031 Merge from origin/emacs-24
The following commit was skipped:

9ee2d9f [Backport] lisp/gnus/nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
2015-02-25 22:51:59 -08:00
Katsumi Yamaoka
48598095b3 Fix point motion when removing displayed MIME part
* gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part):
Fix point motion when removing displayed MIME part.
2015-02-26 06:39:11 +00:00
Paul Eggert
8ae2142555 * xfns.c (x_real_pos_and_offsets): Fix pointer signedness. 2015-02-25 20:43:38 -08:00
Katsumi Yamaoka
4f9befb3b8 lisp/gnus/ChangeLog: Fix typo 2015-02-26 03:29:36 +00:00
Katsumi Yamaoka
f376a4b747 Gnus: Improve parts deletion and stripping behavior
* gnus-art.el (gnus-article-edit-part): Make jumping to the next part
really work when deleting or stripping.
(gnus-mime-buttonize-attachments-in-header): Make header attachment
buttons identical to the one in the article body so as to work deleting
and stripping.
2015-02-26 03:24:48 +00:00
Daiki Ueno
b206b9d737 dbus.el: fix ":argN" keyword recognition
* net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to
integer before comparison.
2015-02-26 11:08:44 +09:00
Jan D
719fd93346 Redo the whole window offsets and coordinate translation for X.
* frame.h (struct frame): Remove x_pixels_diff, y_pixels_diff.

* w32fns.c (x_real_positions): Remove setting of x_pixels_diff,
y_pixels_diff.

* xfns.c (x_real_pos_and_offsets): New function, basically the code
from x_real_positions.
(x_real_positions): Call x_real_pos_and_offsets.
(x_relative_mouse_position): Use XTranslateCoordinates instead of
OUTER_TO_INNER_DIFF macros.
(Fx_frame_geometry): Get offsets with x_real_pos_and_offsets,
border from window attributes.  Adjust tool bar and menu widths.

* xmenu.c (create_and_show_popup_menu): Use XTranslateCoordinates
instead of OUTER_TO_INNER_DIFF macros.

* xterm.h (struct x_output): Remove x_pixels_outer_diff,
y_pixels_outer_diff, FRAME_OUTER_TO_INNER_DIFF_X,
FRAME_OUTER_TO_INNER_DIFF_Y. Declare x_real_pos_and_offsets.
2015-02-25 20:16:44 +01:00
Glenn Morris
0731a2e857 # Auto-commit of loaddefs files. 2015-02-25 12:28:28 -05:00
Nicolas Richard
ca5790eb50 lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument.
Fixes: 19932
2015-02-25 16:17:54 +01:00
Oleh Krehel
383722dee7 check-declare.el: Use compilation-style warnings
* lisp/emacs-lisp/check-declare.el (check-declare-warn): Add
  file-line-column info to the warning.

(check-declare-files): Make sure that `check-declare-warning-buffer'
is in `compilation-mode'. Make the order of the errors that same as in
the file. Add code to ensure that `first-error' will work properly.
2015-02-25 12:10:40 +01:00
Oleh Krehel
26b2e9aa4d check-declare.el (check-declare-ext-errors): New defcustom.
* emacs-lisp/check-declare.el (check-declare): New defgroup.
(check-declare-verify): When `check-declare-ext-errors' is non-nil,
warn about an unfound function, instead of saying "skipping external
file".
2015-02-25 12:05:28 +01:00
Tassilo Horn
dcd4830cb9 Handle customizations of reftex-include-file-commands
* reftex.texi (Multifile Documents): Document
reftex-include-file-commands.
(Options): Mention that non-customize changes might require
calling reftex-compile-variables.

* textmodes/reftex-vars.el (reftex-include-file-commands): Call
reftex-set-dirty on changes.
2015-02-25 11:45:20 +01:00
Stefan Monnier
8bb64d2722 * lisp/emacs-lisp/edebug.el (edebug--display): Save-excursion.
Fixes: debbugs:19611

* lisp/emacs-lisp/debug.el (debugger-env-macro): Remove redundant
save-excursion.
2015-02-25 01:03:14 -05:00
Katsumi Yamaoka
b86ba30d17 Gnus: Revert my bogus changes (2014-06-05)
* mm-decode.el (mm-shr)
* mm-view.el (mm-inline-text-html-render-with-w3m):
Revert my bogus change that made the start marker of a part
the "moves after insertion" type.
2015-02-25 02:39:47 +00:00
Paul Eggert
27bd6dadf4 Merge from gnulib
* lib/getdtablesize.c, m4/dup2.m4, m4/fcntl.m4:
Update from gnulib, incorporating:
2015-02-23 dup2: doc and test for Android bug
2015-02-23 Replace dup2() on Android
2015-02-22 Android doesn't define RLIM_SAVED_*
2015-02-24 16:40:23 -08:00
Paul Eggert
b74db6347c Backtrace after malloc arena is corrupted
Without this change, if the malloc arena is corrupted and then
'backtrace' is called, the backtrace can crash because 'backtrace'
calls 'malloc'.  For more, please see:
https://sourceware.org/ml/libc-alpha/2015-02/msg00678.html
* emacs.c (main): Initialize tables used by 'backtrace'.
* sysdep.c (emacs_backtrace): Document the newly used part of the API.
2015-02-24 16:35:03 -08:00
Glenn Morris
0c4f73a09d rmailsum.el tiny simplification
* lisp/mail/rmailsum.el (rmail-summary-previous-all)
(rmail-summary-previous-msg): Simplify.
2015-02-24 18:10:36 -05:00
Artur Malabarba
341e5f3c86 simple.el (region-active-p): Fix doc to say non-nil. 2015-02-24 22:51:15 -03:00
Samer Masterson
450bebaec9 * lisp/eshell: Fix history substitution error
Fixes: debbugs:18960

* lisp/eshell/em-hist.el (eshell-hist-parse-word-designator):
Return args joined with " ".
* lisp/eshell/em-pred.el (eshell-parse-modifiers): Correct docstring.
(eshell-hist-parse-modifier): Pass mod a list instead of a string.
2015-02-24 14:03:54 -05:00
Karl Fogel
feb49cb7a4 * comint.el (comint-mode-map): Fix obvious typo. 2015-02-24 09:30:56 -06:00
Johan Claesson
7a77ed9147 * filecache.el (file-cache-filter-regexps): Add lock files (tiny change)
Fixes: debbugs:19516
2015-02-23 23:50:44 -08:00
Glenn Morris
f418e991c0 rmailsum.el minor optional argument fix
* lisp/mail/rmailsum.el (rmail-summary-next-all)
(rmail-summary-previous-all, rmail-summary-next-msg):
Fix handling of optional argument.

Fixes: debbugs:19916
2015-02-23 23:43:58 -08:00
Glenn Morris
e8a11db943 f90.el: add some support for continued strings without leading '&'
* lisp/progmodes/f90.el (f90-beginning-of-subprogram)
(f90-end-of-subprogram, f90-match-end):
Handle continued strings where the continuation does not start
with "&" and happens to match our regexp.

* test/automated/f90.el (f90-test-bug-19809): New test.

Fixes: debbugs:19809
2015-02-23 23:13:49 -08:00
Bozhidar Batsov
eaf9499a7f Add new interactive command comint-clear-buffer
The command clears the entire comint buffer. It's bound to C-c M-o.
2015-02-24 08:53:04 +02:00
Paul Eggert
ed7005c0e9 Fix previous change's attribution 2015-02-23 10:17:21 -08:00
Paul Eggert
6b62d26589 Use ${EXEEXT} more uniformly in makefiles
When porting Emacs to run on NaCl, we need to make sure that we always
call it with the proper extension (.nexe in this case) during the build.
* leim/Makefile.in, lib-src/Makefile.in, lisp/Makefile.in (EMACS):
Append ${EXEEXT}.
(tiny change)
2015-02-23 10:10:24 -08:00
Sam Steingold
a0edb0160b `auto-save-list-file-prefix' can be a directory name
* lisp/files.el (recover-session): Handle `auto-save-list-file-prefix'
being a directory (empty non-directory part).
2015-02-23 09:13:31 -05:00
Tassilo Horn
931e7babcb lisp/gnus/mailcap.el: Support PDF Tools for PDF viewing of attachments
* mailcap.el (mailcap-mime-data): Support `pdf-view-mode' (from PDF
Tools: https://github.com/politza/pdf-tools) for viewing PDF
attachments in emacs.
2015-02-23 09:36:06 +00:00
Magnus Henoch
80e50144d8 Fix SCRAM-SHA-1 SASL mechanism
The symbol used in sasl-mechanism-alist needs to match the name that
can be required.  Move sasl-make-mechanism call to end of file, to
ensure that it can refer to the specified step functions.

* net/sasl.el (sasl-mechanism-alist): Refer to sasl-scram-rfc
instead of sasl-scram-sha-1, as the former is the name that can be
required.

* net/sasl-scram-rfc.el (sasl-scram-sha-1-steps)
(sasl-scram-sha-1-client-final-message)
(sasl-scram-sha-1-authenticate-server): Move to end of file.
2015-02-23 09:09:46 +00:00
Paul Eggert
34871865de Fix the desired binding for comment-line
* bindings.el (ctl-x-map): Use [?\C-\;] to get the desired binding.
Fixes: bug#19826
2015-02-22 22:00:26 -08:00
Stefan Monnier
e846bbf360 * lisp/emacs-lisp/macroexp.el (macroexp-parse-body): Handle cl-declare
and :documentation.  Change return value format accordingly.
* lisp/emacs-lisp/cl-generic.el (cl--generic-lambda):
* lisp/emacs-lisp/pcase.el (pcase-lambda): Adjust accordingly.
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Use macroexp-parse-body.
2015-02-22 23:50:03 -05:00
Katsumi Yamaoka
3f006e1d47 lisp/gnus/gnus-art.el (gnus-mime-display-single): Avoid "End of buffer" error 2015-02-23 02:40:12 +00:00
Dmitry Gutov
f6bb2ccb9b Introduce `xref-etags-mode'
Fixes: debbugs:19466

* lisp/progmodes/xref.el (xref-etags-mode--saved): New variable.
(xref-etags-mode): New minor mode.
2015-02-23 04:00:01 +02:00
Michael Albinus
c7cdc8ed5b Suppress localized settings in Tramp test.
* automated/tramp-tests.el (tramp-test17-insert-directory):
Suppress localized settings in order to have a proper check for
the summary line.
2015-02-22 19:58:05 +01:00
Jan D
9f5a24a6fd Implement x-frame-geometry for NS.
* src/nsfns.m (Fx_frame_geometry): New function.
(syms_of_nsfns): Defsubr Sx_frame_geometry.
2015-02-22 17:24:32 +01:00
Lars Magne Ingebrigtsen
32af8a39c4 * lisp/dom.el (dom-previous-sibling): New function. 2015-02-22 13:09:54 +01:00
Lars Magne Ingebrigtsen
f113707a07 * lisp/dom.el (dom-previous-sibling): New function. 2015-02-22 13:09:54 +01:00
Michael Albinus
4a5190ff48 Fix ChangeLog. 2015-02-22 11:07:17 +01:00