1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
Commit graph

120300 commits

Author SHA1 Message Date
Artur Malabarba
0ade763b74 emacs-lisp/package.el (package-selected-packages): Fix :type 2015-02-01 20:28:21 -02:00
Thierry Volpiatto
e2f0f263df emacs-lisp/package.el: Don't allow deleting dependencies. 2015-02-01 20:17:51 -02:00
Martin Rudalics
92a8dec54e Give `window-text-pixel-size' optional BUFFER argument.
[This reinstalls commit 1d1162479c,
which I mistakenly reverted.  --eggert]
* xdisp.c (Fwindow_text_pixel_size): Add optional argument BUFFER.
* display.texi (Size of Displayed Text): Describe optional
argument BUFFER of `window-text-pixel-size'.
2015-02-01 12:06:32 -08:00
Paul Eggert
241260cc28 Revert changes installed by xwidgets merge 2015-02-01 11:45:15 -08:00
Martin Rudalics
1d1162479c Give `window-text-pixel-size' optional BUFFER argument.
* xdisp.c (Fwindow_text_pixel_size): Add optional argument BUFFER.
* display.texi (Size of Displayed Text): Describe optional
argument BUFFER of `window-text-pixel-size'.
2015-02-01 16:49:46 +01:00
Ulrich Müller
f1cea3e96c configure.ac: Fix a typo. 2015-02-01 15:05:20 +01:00
Glenn Morris
e8e483a974 # Auto-commit of loaddefs files. 2015-02-01 06:24:33 -05:00
Joakim Verona
9fe732a02a Better changelog for xwidgets 2015-02-01 01:30:02 +01:00
Joakim Verona
d75b60ce5f NEWS entry and Changelog xwidgets 2015-02-01 01:16:40 +01:00
Joakim Verona
69815dfe37 Merge branch 'master' into xwidget 2015-02-01 00:37:46 +01:00
Joakim Verona
4edad429ca Fix compile warnings xwidget.el 2015-01-31 21:09:11 +01:00
Joakim Verona
3fd802081f Fix for crash when displaying xwidget in a tty
Xwidgets are now handled the same as images in the tty case,
they are ignored.
2015-01-31 21:07:07 +01:00
Eli Zaretskii
a2c32b0cfc Avoid aborts when keyboard-coding-system is raw-text (Bug#19532)
src/coding.c (raw_text_coding_system_p): New function.
 src/keyboard.c (read_decoded_event_from_main_queue): Use it when the
 keyboard coding-system is 'raw-text'.
 src/coding.h (raw_text_coding_system_p): Add prototype.
2015-01-31 20:48:53 +02:00
Andreas Schwab
080b9b56c9 Don't reimplement move-if-change badly
* Makefile.in (gl-stamp): Generate globals.h through the use of
move-if-change.
(globals.h): Replace with empty command.
2015-01-31 09:42:16 +01:00
Eli Zaretskii
eaea02c71a Fix while-no-input loops (Bug#19547)
src/keyboard.c (kbd_buffer_store_event_hold): Ignore FOCUS_OUT_EVENT
 and ICONIFY_EVENT for the purposes of breaking while-no-input
 loops.
2015-01-31 10:35:26 +02:00
Eli Zaretskii
376ba20ac1 Fix last commit, which confused WINDOWSNT with MSDOS.
src/dired.c (read_dirent): Correct the "MSDOS hacks" hack: the
 special code for errno = ENOENT or EACCES is needed for WINDOWSNT,
 not for MSDOS.
2015-01-31 10:05:10 +02:00
Paul Eggert
512cdb9f2b Simplify read_dirent's MSDOS hacks
* dired.c (read_dirent): Simplify by removing the need for the
DIR_ENTRY argument.  All callers changed.  This separates the
MS-DOS idiosyncrasies better from the rest of the code.
2015-01-30 23:12:18 -08:00
Stefan Monnier
e0be229d5f EIEIO: Simplify help hyperlinks; Try and reduce hardcoding in .elc
* lisp/emacs-lisp/cl-generic.el (cl--generic-search-method): Fix regexp.

* lisp/emacs-lisp/eieio-core.el (eieio--check-type): Remove.
Use cl-check-type everywhere instead.
(eieio-class-object): Remove, use find-class instead when needed.
(class-p): Don't inline.
(eieio-object-p): Check more thoroughly, so we don't treat cl-structs,
such as eieio classes, as objects.  Don't inline.
(object-p): Mark as obsolete.
(eieio-defclass-autoload, eieio-defclass-internal, eieio-oref)
(eieio--generic-tagcode): Avoid `class-p'.
(eieio-make-class-predicate, eieio-make-child-predicate): New functions.
(eieio-defclass-internal): Use current-load-list rather than
`class-location'.

* lisp/emacs-lisp/eieio-opt.el (eieio-help-class, eieio-help-constructor):
Use find-lisp-object-file-name, help-fns-short-filename and new calling
convention for eieio-class-def.
(eieio-build-class-list): Remove function, unused.
(eieio-method-def): Remove button type, unused.
(eieio-class-def): Inherit from help-function-def.
(eieio--defclass-regexp): New constant.
(find-function-regexp-alist): Use it.
(eieio--specializers-apply-to-class-p): Handle eieio--static as well.
(eieio-help-find-method-definition, eieio-help-find-class-definition):
Remove functions.

* lisp/emacs-lisp/eieio.el (defclass): Use new eieio-make-class-predicate
and eieio-make-child-predicate.
(eieio-class-parents): Use eieio--class-object.
(slot-boundp, find-class, eieio-override-prin1): Avoid class-p.
(slot-exists-p): Use find-class.

* test/automated/eieio-tests.el (eieio-test-23-inheritance-check): Simplify.
2015-01-31 00:48:14 -05:00
Stefan Monnier
d5e3922e08 * lisp/emacs-lisp/backquote.el: Fix bug with unoptimized exp.
Fixes: debbugs:19734

* lisp/emacs-lisp/backquote.el (backquote-delay-process): Don't reuse `s'
since it may be "equivalent" in some sense, yet different.
* test/automated/core-elisp-tests.el (core-elisp-tests-3-backquote): New test.
2015-01-30 16:00:29 -05:00
Oleh Krehel
adebc14b9c lisp/outline.el: Improve docstrings. 2015-01-30 17:45:05 +01:00
Oleh Krehel
ac79251493 lisp/outline.el: Add namespace prefixes.
* outline.el (outline-hide-entry): Rename from `hide-entry'.
(outline-show-entry): rename from `show-entry'
(outline-hide-body): Rename from `hide-body'.
(outline-hide-region-body): Rename from `hide-region-body'.
(outline-show-all): Rename from `show-all'.
(outline-hide-subtree): Rename from `hide-subtree'.
(outline-hide-leaves): Rename from `hide-leaves'.
(outline-show-subtree): Rename from `show-subtree'.
(outline-hide-sublevels): Rename from `hide-sublevels'.
(outline-hide-other): Rename from `hide-other'.
(outline-show-children): Rename from `show-children'.
(outline-show-branches): Rename from `show-branches'.
2015-01-30 17:44:03 +01:00
Oleh Krehel
5a1b8a1179 lisp/outline.el (outline-mode): Clean up docstring
* lisp/outline.el (font-lock-warning-face): Remove unused declare.
(outline-mode-prefix-map): Remove obsolete comment.
(outline-font-lock-face): Remove obsolete comment.
2015-01-30 17:41:49 +01:00
Oleh Krehel
58aa0dad36 lisp/custom.el (defface): Set indent to 1. 2015-01-30 17:35:51 +01:00
Oleh Krehel
b1e3d14845 lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Set `indent' to 1. 2015-01-30 17:32:29 +01:00
Michal Nazarewicz
5a971bd302 files.el: avoid asking whether to kill Emacs multiple times
* lisp/files.el (save-buffers-kill-emacs): If `confirm-kill-emacs' is
set, but user has just been asked whether they really want to kill Emacs
(for example with a ‘Modified buffers exist; exit anyway?’ prompt) , do
not ask them for another confirmation.
2015-01-30 11:43:04 +01:00
Glenn Morris
c9d238316c Tweak recent gnus-registry.el changes
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01748.html

* lisp/gnus/gnus-registry.el (gnus-registry-max-pruned-entries)
(gnus-registry-prune-factor, gnus-registry-default-sort-function):
Fix :version.
(gnus-registry-default-sort-function): Improve :type.
2015-01-30 00:08:40 -08:00
Glenn Morris
041d53a4a6 # ChangeLog fix
That's not the right format for multi-file changes,
and such things don't need ChangeLog entries anyway.
2015-01-30 00:04:52 -08:00
Glenn Morris
8ebc20d0a9 # ChangeLog fix
If you revert a change a few days after making it,
don't delete the ChangeLog entry.
2015-01-30 00:03:34 -08:00
Glenn Morris
2b9b98bdb7 # ChangeLog fixes
Merged ChangeLog entries go to the top, with the date of the merge.
It's a simple rule.
2015-01-30 00:01:24 -08:00
Eli Zaretskii
44ae136490 Fix error messages when readdir cannot open a directory on MS-Windows
src/dired.c (read_dirent): Accept an additional argument
 FIRST_ENTRY.  If readdir fails with ENOENT or EACCES the first
 time it is called, report the error as if it happened in
 open_directory.
 (directory_files_internal, file_name_completion): Adjust callers
 or read_dirent.
2015-01-30 08:48:32 +02:00
Paul Eggert
d7adc7d90f Spelling fix 2015-01-29 19:52:15 -08:00
Paul Eggert
34d0859c4b Refactor calls to opendir for simplicity
* dired.c (open_directory): Accept Lisp_Object, not char *, for
dirname.  Signal an error if the open fails.  All callers changed.
2015-01-29 19:02:01 -08:00
Francesc Rocher
9242cdcda9 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2015-01-30 00:38:31 +01:00
Francesc Rocher
ca9456fbf4 Splash images refurbished 2015-01-30 00:38:02 +01:00
Paul Eggert
4ab6e74a1c Report readdir failures
Previously, on non-MS-Windows platforms the code treated most
readdir failures as EOF.  This was incorrect, e.g., when readdir
fails with errno == EOVERFLOW.  Signal an error instead.
* dired.c (read_dirent):
New function, which signals an error when readdir fails.
(directory_files_internal, file_name_completion): Use it.
2015-01-29 15:33:20 -08:00
Paul Eggert
eadf313c72 Merge from origin/emacs-24
ad588af Improve the fix for bug #19701

Conflicts:
	src/ChangeLog
2015-01-29 13:54:51 -08:00
Paul Eggert
7c8b0b3644 Merge from origin/emacs-24
The following commit was skipped:

ba10f4b Fix issues with BibTeX entries containing ")".
2015-01-29 13:53:12 -08:00
Eli Zaretskii
1dc1959ebf Commit src/ChangeLog for previous commit. 2015-01-29 20:46:03 +02:00
Eli Zaretskii
0761ec1669 Use bool for boolean in w32menu.c, w32font.c, w32uniscribe.c.
src/w32uniscribe.c (uniscribe_list, uniscribe_match): Use bool where
 appropriate.
 src/w32font.c (struct font_callback_data, w32font_list_internal)
 (w32font_driver, w32font_match_internal): Use bool where appropriate.
 src/w32menu.c (x_activate_menubar, set_frame_menubar)
 (w32_dialog_show, initialize_frame_menubar, w32_menu_show)
 (is_simple_dialog): Use bool where appropriate.
2015-01-29 19:16:56 +02:00
Lars Magne Ingebrigtsen
0c7b0967d2 lisp/gnus/nnimap.el (nnimap-request-group): Make it possible to enter nnimap groups again 2015-01-29 14:02:04 +00:00
Lars Magne Ingebrigtsen
cfb1887189 lisp/gnus/nnimap.el (nnimap-request-group): nnimap group activation problems fixed 2015-01-29 09:20:48 +00:00
Jay Belanger
4ba343984f * lisp/calc/calc-units.el (calc-convert-exact-units): Improve the
simplification.
2015-01-28 21:37:24 -06:00
Jay Belanger
43fdb2a080 * lisp/calc/calc-units.el (math-consistent-units-p): Strengthen the
test for consistent units.
2015-01-28 21:29:58 -06:00
Jay Belanger
d1cb2f7855 * lisp/calc/calc-units.el (calc-convert-exact-units): New function.
(calc-convert-units): Check for missing units.

* lisp/calc/calc-ext.el (calc-init-extensions):  Autoload
`calc-convert-exact-units' and assign it a keybinding.

* lisp/calc/calc-help (calc-u-prefix-help): Add help for the
"un" keybinding.
2015-01-28 21:17:10 -06:00
Lars Magne Ingebrigtsen
212c818940 lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail 2015-01-29 02:22:21 +00:00
Paul Eggert
cdee38ab61 Use bool, not int, to track face changes
* xfaces.c (face_change): Rename from face_change_count, and
change from int to bool.  The var is now true (instead of nonzero)
if attributes have changed; this is simpler.  All uses changed.
Fixes: bug#19698
2015-01-28 11:15:23 -08:00
Eli Zaretskii
ad588afdaa Improve the fix for bug #19701
src/dired.c (directory_files_internal, file_name_completion)
 [WINDOWSNT]: Signal an error when errno is set non-zero by
 'readdir', regardless of its value.
 src/w32.c (sys_readdir): Set errno to ENOENT when the directory
 doesn't exist and to EACCES when it's not accessible to the
 current user.  Set errno to zero when FindNextFile exhausts the
 directory, so that callers don't interpret that as an error and
 don't signal a file-error.
 (open_unc_volume): Set errno to ENOENT if WNetOpenEnum fails.
2015-01-28 19:42:28 +02:00
Stefan Monnier
9a17d246ea * lisp/emacs-lisp/cl.el (cl--function-convert): Simplify. 2015-01-28 08:18:50 -05:00
Tassilo Horn
ba10f4b560 Fix issues with BibTeX entries containing ")".
* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.

[backport from trunk]
2015-01-28 10:45:06 +01:00
Tassilo Horn
8a8bd38fed Fix issues with BibTeX entries containing ")".
* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.
2015-01-28 10:36:17 +01:00