1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 14:10:47 -08:00
Commit graph

119226 commits

Author SHA1 Message Date
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
Lars Ingebrigtsen
173ac1caac lisp/gnus/nnimap.el (nnimap-request-group): nnimap group request bug fix 2015-01-28 06:59:06 +00:00
Paul Eggert
39c2fa3f4e Merge from gnulib and try to repair bad merge
This attempts to repair problems introduced by the bad merge
5491fd1098.  The easiest way for me
to fix the badly-merged gnulib files was to run
'admin/merge-gnulib', so I did that, which also imported the
following changes:
* build-aux/update-copyright, m4/gnulib.m4:
Update from gnulib, incorporating:
2015-01-15 time: port to MinGW32 3.21
2015-01-15 update-copyright: apply to self
2015-01-11 update-copyright: recognize groff's \(co marker
2015-01-27 22:24:47 -08:00
Elias Oltmanns
0cdd599c54 nnimap `never' expiration fix
* nnimap.el (nnimap-find-expired-articles): Fix handling of
(expiry-wait . never).
2015-01-28 16:35:59 +11:00
Fabián Ezequiel Gallina
5491fd1098 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2015-01-28 01:31:15 -03:00
Fabián Ezequiel Gallina
028ddef7a2 Cleanup lisp/ChangeLog 2015-01-28 01:31:06 -03:00
Fabián Ezequiel Gallina
95a2cb24b0 Merge from origin/emacs-24
9664def Signal a file-error from directory-files on MS-Windows  (Bug#19701)
fd4e65e Added missing test for previous commit
5485e3e5 python.el: New non-global state dependent indentation engine.
3b23e6a Fix the description of --insert command-line option  (Bug#19694)
7a7e594 Add a cross-reference in ELisp manual.  (Bug#19668)
b4f4075 Fixes: debbugs:19660
83b3c31 * test/automated/regexp-tests.el: Require regexp-opt

Conflicts:
	lisp/progmodes/python.el
2015-01-28 01:08:18 -03:00
Fabián Ezequiel Gallina
f5ebe84d75 Merge from origin/emacs-24
The following commits were skipped:

81fb8ab Backport: Fix package tests when TMPDIR is in HOME
3a345b5 Backport: Handle the `neg' operator in some calc-units functions.
2015-01-28 01:03:46 -03:00
Fabián Ezequiel Gallina
33ab7ee0ed Merge from origin/emacs-24
8ee825c doc/emacs/programs.texi (Custom C Indent): Fix a typo.  (Bug#19647)
88ba49f Fix coding.c subscript error
3ea1b31 Prevent artist-mode from creating runaway timers (Bug#6130).
2015-01-28 01:03:46 -03:00
Fabián Ezequiel Gallina
85ca47671c Merge from origin/emacs-24
The following commits were skipped:

4c09e3a Backport: correct old fix for GTK font selection
8730974 Backport from trunk of bug 19531.
2015-01-28 01:03:45 -03:00
Fabián Ezequiel Gallina
294127e7d5 Merge from origin/emacs-24
24aacfc Improve documentation of buttons  (Bug#19628)
52ae3db doc/lispref/text.texi (Clickable Text): Improve indexing.  (Bug#19629)
310f707 lisp/button.el (button-activate, push-button): Doc fix.  (Bug#19628)
3ee38f2 Disallow w32 builds --without-toolkit-scroll-bars.
e6518fc Fix display of images in R2L screen lines
b0af674 Use u+05f4 in TUTORIAL.he.
2015-01-28 01:03:45 -03:00
Fabián Ezequiel Gallina
358a8b34ac Merge from origin/emacs-24
The following commit was skipped:

7b8cba9 Backport: Parse pcomplete arguments regardless of pcomplete-cycle-completions
2015-01-28 01:03:45 -03:00
Fabián Ezequiel Gallina
4d0108a132 Merge from origin/emacs-24
a3505cb doc/lispref/variables.texi (Creating Buffer-Local): Improve indexing (Bug#19608)
d132c7b erc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally. Fixes debbugs:19363
61cc7bf Fix support of non-ASCII frame titles on MS-Windows  (Bug#19590)
1e5902a * filenotify.el (file-notify--descriptor): Do not cons for remote files.
b1ea160 Handle watching of several files in the same directory for inotify.
2015-01-28 01:03:45 -03:00
Fabián Ezequiel Gallina
32a2c91658 Merge from origin/emacs-24
The following commits were skipped:

67edddf More fixes to support multi-line search in comint
18a89a0 Better support for multi-line shell input.
2015-01-28 01:03:45 -03:00
Fabián Ezequiel Gallina
b0edd7c69d Merge from origin/emacs-24
b544ab5 Fix return value of vertical-motion at ZV  (Bug#19553)
1f179ea Fix encoding of I/O in net-utils.el for MS-Windows.  (Bug#19458)
70f298f Fix the description of -nl in --help text.  (Bug#19542)
2015-01-28 01:03:44 -03:00
Fabián Ezequiel Gallina
f4fcb10303 Merge from origin/emacs-24
The following commit was skipped:

7c0bfa1 Fix line-move-visual's following of column in R2L lines (backport from trunk).
2015-01-28 01:03:44 -03:00
Fabián Ezequiel Gallina
e57f766d3c Merge from origin/emacs-24
2a57b7e Fixes: debbugs:18756

Conflicts:
	lisp/ChangeLog
2015-01-28 01:03:22 -03:00