1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00
Commit graph

113597 commits

Author SHA1 Message Date
Bozhidar Batsov
6f9260e8f8 * lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't set syntax
table and abbrev table, `define-derived-mode' does that for us
anyway.
2013-11-02 03:55:15 +04:00
Glenn Morris
6014de8418 * lisp/Makefile.in: Remove manual mh-e dependencies
(writing .elc files is atomic for some time,
so no parallel compilation issues)
2013-11-01 13:26:29 -04:00
Jan Djärv
3c334c1412 Add :distant-foreground to faces.
* doc/lispref/display.texi (Face Attributes): Document :distant-foreground.

* etc/NEWS: Mention :distant-foreground.

* lisp/faces.el (face-x-resources): Add :distant-foreground.
(region): Use :distant-foreground for gtk and ns.

* src/dispextern.h (lface_attribute_index): Add
LFACE_DISTANT_FOREGROUND_INDEX.

* src/xfaces.c: Declare color_distance.
(QCdistant_foreground): New variable.
(NEAR_SAME_COLOR_THRESHOLD): New define.
(load_color2): New function.
(load_color): Call load_color2.
(load_face_colors): Call load_color2 and if distant-color is specified
calculate distant and use distant-color if colors are near.
(LFACE_DISTANT_FOREGROUND): New define.
(merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_get_lisp_face_attribute)
(x_supports_face_attributes_p): Handle distant-foreground similar to
foreground.
(syms_of_xfaces): DEFSYM QCdistant_foreground.
2013-11-01 16:47:10 +01:00
Tassilo Horn
9bc236c826 Allow multiple bibliographies when BibLaTeX is used rathen than
BibTeX.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): New function.
(reftex-locate-bibliography-files): Us it.
2013-11-01 11:27:21 +01:00
Glenn Morris
82bd64d838 Auto-commit of loaddefs files. 2013-11-01 06:21:34 -04:00
Glenn Morris
30904de318 Auto-commit of generated files. 2013-11-01 06:17:43 -04:00
Eli Zaretskii
ef9b591f11 Fix whitespace in src/casefiddle.c. 2013-11-01 12:00:47 +02:00
Claudio Bley
a814bc1087 Fix ChangeLog entry of last commit. 2013-11-01 11:18:39 +02:00
Claudio Bley
0e7690deac Fix handling of comments in NetPBM image files.
src/image.c (pbm_next_char): New function.
 (pbm_scan_number): Use it.

 lisp/image.el (image-type-header-regexps): Fix the 'pbm' part to
 allow comments in pbm files.
2013-11-01 11:10:13 +02:00
Claudio Bley
019c8218f0 lisp/term/w32-win.el (dynamic-library-alist): Support libtiff v4.x on w32. 2013-11-01 11:04:16 +02:00
Claudio Bley
ac1bf374c2 Support libpng DLLs of versions beyond 1.4.x on MS-Windows.
lisp/term/w32-win.el (dynamic-library-alist): Support versions of
 libpng beyond 1.4.x.
2013-11-01 10:57:55 +02:00
Claudio Bley
d14c81eec7 Support newer versions of libjpeg on MS-Windows.
src/image.c (Qlibjpeg_version): New variable.
 (syms_of_image): DEFSYM and initialize it.

 lisp/term/w32-win.el (dynamic-library-alist): Support newer versions
 of libjpeg starting with v7: look only for the DLL from the
 version against which Emacs was built.
2013-11-01 10:52:22 +02:00
Bozhidar Batsov
983d0df5e1 * lisp/progmodes/ruby-mode.el (ruby-indent-tabs-mode)
(ruby-indent-level, ruby-comment-column, ruby-deep-arglist):
Add property :safe.
(ruby-deep-arglist): Add property :type.
2013-11-01 07:35:35 +04:00
Glenn Morris
cb16270e14 * configure.ac: Use [!...] rather than [^...], for ksh. (Bug#15769) 2013-10-31 17:39:10 -04:00
Michael Albinus
1affc48a70 * automated/ert-tests.el (ert-test-stats-set-test-and-result):
Add a skipping test.
2013-10-31 14:31:22 +01:00
Jan Djärv
26ca887092 * emacs.c (main): Skip -psn args on OSX even if ! isatty (0). 2013-10-31 09:32:42 +01:00
Glenn Morris
47f58d8500 * lisp/Makefile.in (custom-deps, finder-data): No need to setq the target
variables, we are in the right directory and the defaults work fine.
2013-10-31 00:27:35 -07:00
Glenn Morris
8fd0741784 Fix setting of invocation-directory with --chdir and relative argv[0]
* src/emacs.c (original_pwd): New char.
(main): If using --chdir, store original_pwd.
(init_cmdargs): When setting Vinvocation_directory based on a
relative argv[0], use original_pwd if set.

Fixes: debbugs:15768
2013-10-31 00:18:42 -07:00
Barry O'Reilly
bed64093f7 * semantic/idle.el (semantic-idle-symbol-highlight)
(semantic-idle-symbol-highlight-face): Define face with defface
and obsolete the replaced one defined with defvar.  (Bug#15745)
* pulse.el (pulse-momentary-highlight-overlay)
(pulse-momentary-highlight-region): Fix typo in doc
2013-10-30 21:50:24 -04:00
Glenn Morris
0fb90d258e * lisp/Makefile.in (autoloads): Fix thinko in previous 2013-10-30 20:40:46 -04:00
Glenn Morris
ca7dd4cd17 * lisp/Makefile.in (autoloads): Do not use abs_lisp.
This should stop recent weirdness, eg:
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00381.html

* lisp/emacs-lisp/autoload.el: Comment.
2013-10-30 16:27:35 -04:00
Glenn Morris
4f85b47922 * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
`newline' does not respect `standard-output', so use `princ'.

Otherwise you can get \n inserted in the wrong buffer, eg
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00379.html
2013-10-30 16:03:07 -04:00
Glenn Morris
947518dbb8 htmlfontify.el: remove duplicate Version: header 2013-10-30 15:35:14 -04:00
Alp Aker
cf59e41cd4 Ensure unmarking in buffer menu clears 'S' marks. (Bug#15761)
* buff-menu.el (Buffer-menu--unmark): New function.
  (Buffer-menu-unmark, Buffer-menu-backup-unmark): Use it.
2013-10-30 14:35:19 -04:00
Glenn Morris
26fb3b30ea hfy-cmap.el: Remove duplicate Package: header 2013-10-30 13:34:17 -04:00
Glenn Morris
b040b60e96 * lisp/Makefile.in (AUTOGENEL): Add org/org-loaddefs.el. 2013-10-30 13:17:12 -04:00
Glenn Morris
c20cfd63af Fix up previous admin/unidata clean rules 2013-10-30 09:45:51 -07:00
Glenn Morris
6c3d1c01b4 Revert auto-commit loaddefs weirdness 2013-10-30 09:29:36 -07:00
Glenn Morris
13e9d2a7ea Fix weirdness caused by autoload generation... 2013-10-30 09:21:41 -07:00
Glenn Morris
37d710e907 Auto-commit of loaddefs files. 2013-10-30 06:23:16 -04:00
Xue Fuqiao
bc5184ab59 * doc/lispref/display.texi (Abstract Display): Improve indexing. 2013-10-30 18:08:11 +08:00
Glenn Morris
9835cedbfa Simplify admin/unidata Makefile rules
* admin/unidata/unidata-gen.el (unidata-gen-files): Use pop.
Also take the output directory as an argument.

* admin/unidata/Makefile.in: Simplify now that unidata-gen-files takes
the output directory as an argument (no need to cd, etc).
(abs_srcdir, abs_builddir): Remove.
(abs_top_builddir): Replace by top_builddir.
(${DSTDIR}/charprop.el): No need to cd.  Pass dest as argument.
(${DSTDIR}/charprop.el, charprop.el):
No need to pass unidata.txt as argument.
2013-10-30 00:15:23 -07:00
Glenn Morris
55498a0fe4 * Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Also clean admin/unidata, if present.

* admin/unidata/Makefile.in (bootstrap-clean): New rule.
2013-10-29 23:40:15 -07:00
Glenn Morris
8c7f77ed39 * lisp/gnus/gnus-int.el (gnus-start-news-server): Silence compiler
obsolescence warning.
2013-10-29 23:35:26 -07:00
Glenn Morris
9dd86b0c22 * lisp/gnus/gnus-group.el (gnus-group-browse-foreign-server): Silence compiler
obsolescence warning.
2013-10-29 23:34:26 -07:00
Glenn Morris
2388ae79c4 * lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-2)
(semantic-grammar-mode-keywords-3): Handle renamed font-lock vars.
2013-10-29 23:31:15 -07:00
Glenn Morris
f53d3815ae * lisp/emacs-lisp/package.el (lm-homepage): Declare. 2013-10-29 23:29:51 -07:00
Glenn Morris
5413d87335 * lisp/eshell/em-ls.el (eshell-ls-directory, eshell-ls-symlink): Fix doc typos. 2013-10-29 23:29:22 -07:00
Glenn Morris
cecedb3677 * lisp/vc/pcvs.el (cvs-status-cvstrees): Autoload to silence compiler. 2013-10-29 23:28:15 -07:00
Glenn Morris
15fb690ccc etc/TODO small updates 2013-10-29 23:27:20 -07:00
Glenn Morris
0d0ab9326b * admin/unidata/unidata-gen.el (unidata--ensure-compiled): New function.
(unidata-gen-table-name, unidata-gen-table-decomposition)
(unidata-gen-files): Use unidata--ensure-compiled.

Add FSF copyright years based on when this file first appeared in
Emacs trunk.
2013-10-29 23:25:44 -07:00
Glenn Morris
447892edb6 * admin/unidata/Makefile.in (abs_srcdir): New, set by configure.
(${DSTDIR}/charprop.el, charprop.el): Update for srcdir not absolute.
(clean): Delete all .elc files.
2013-10-29 23:24:16 -07:00
Glenn Morris
74cf04fb1b lisp/Makefile.in trivia
* lisp/Makefile.in (finder-data, autoloads, update-subdirs)
(compile-main, compile-clean, compile-always, bootstrap-clean):
Check return value of cd.
(compile-calc): Remove.
2013-10-29 23:21:46 -07:00
Stefan Monnier
ae4002ce29 Cleanup namespace of dos-w32.el.
* lisp/dos-w32.el (minibuffer-history-case-insensitive-variables)
(path-separator, null-device, buffer-file-coding-system)
(lpr-headers-switches): Check system-type before modifying them.
(find-buffer-file-type-coding-system): Mark obsolete.
(w32-find-file-not-found-set-buffer-file-coding-system): Rename from
find-file-not-found-set-buffer-file-coding-system.
(w32-untranslated-filesystem-list, w32-untranslated-canonical-name):
(w32-add-untranslated-filesystem, w32-remove-untranslated-filesystem)
(w32-direct-print-region-use-command-dot-com, w32-untranslated-file-p):
(w32-direct-print-region-helper, w32-direct-print-region-function)
(w32-direct-ps-print-region-function): Rename by adding a "w32-" prefix.
* lisp/startup.el (normal-top-level-add-subdirs-to-load-path):
* lisp/ps-print.el (ps-print-region-function):
* lisp/lpr.el (print-region-function): Use new name.

* lisp/simple.el (copy-region-as-kill): Fix call to region-extract-function.

* lisp/emacs-lisp/bytecomp.el (byte-defop-compiler): Add new `2-and' handler.
(byte-compile-and-folded): New function.
(=, <, >, <=, >=): Use it.
2013-10-29 22:45:53 -04:00
Stefan Monnier
53b39e8977 * lisp/subr.el (custom-declare-variable-early): Remove function.
(custom-declare-variable-list): Remove var.
(error, user-error): Remove `while' loop.
(read-quoted-char-radix, read-quoted-char): Move to simple.el.
(user-emacs-directory-warning, locate-user-emacs-file):
Move to files.el.
* lisp/simple.el (read-quoted-char-radix, read-quoted-char):
* lisp/files.el (user-emacs-directory-warning, locate-user-emacs-file):
Move from subr.el.
* lisp/custom.el (custom-declare-variable-list): Don't process
custom-declare-variable-list.
2013-10-29 22:14:16 -04:00
Stefan Monnier
195ee2f0a9 * lisp/progmodes/python.el (python-shell-get-buffer): New function.
(python-shell-get-process): Use it.
(python-shell-send-string): Always use utf-8 and add a cookie to tell
Python which encoding was used.  Don't split-string since we only care
about the first line.  Return the temp-file, if applicable.
(python-shell-send-region): Tell compile.el how to turn locations in
the temp-file into locations in the source buffer.
2013-10-29 21:28:36 -04:00
Stefan Monnier
4c9797cb77 * src/keyboard.c (command_loop_1): If command is nil, call `undefined'.
* lisp/subr.el (undefined): Add missing behavior from the C code for
unbound keys.
2013-10-29 17:05:35 -04:00
Paul Eggert
dcd163ac99 * insdel.c: Fix minor problems found by static checking.
(Qregion_extract_function): Now static.
(prepare_to_modify_buffer_1): Remove unused locals.
2013-10-29 11:40:54 -07:00
Stefan Monnier
3472b6c682 Add pre-redisplay-function and rectangular region
* lisp/rect.el: Use lexical-binding.  Add new rectangular region support.
(rectangle-mark): New command.
(rectangle--region): New var.
(deactivate-mark-hook): Reset rectangle--region.
(rectangle--extract-region, rectangle--insert-for-yank)
(rectangle--highlight-for-redisplay)
(rectangle--unhighlight-for-redisplay): New functions.
(region-extract-function, redisplay-unhighlight-region-function)
(redisplay-highlight-region-function): Use them to handle
rectangular region.
* lisp/simple.el (region-extract-function): New var.
(delete-backward-char, delete-forward-char, deactivate-mark): Use it.
(kill-new, kill-append): Remove obsolete `yank-handler' argument.
(kill-region): Replace obsolete `yank-handler' arg with `region'.
(copy-region-as-kill, kill-ring-save): Add `region' argument.
(redisplay-unhighlight-region-function)
(redisplay-highlight-region-function): New vars.
(redisplay--update-region-highlight): New function.
(pre-redisplay-function): Use it.
(exchange-point-and-mark): Don't deactivate the mark before
reactivate-it anyway.
* lisp/comint.el (comint-kill-region): Remove yank-handler argument.
* lisp/delsel.el (delete-backward-char, backward-delete-char-untabify)
(delete-char): Remove property, since it's now part of their
default behavior.
(self-insert-iso): Remove property since this command doesn't exist.

* src/xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function.
(syms_of_xdisp): Declare pre-redisplay-function.
(markpos_of_region): Remove function.
(init_iterator, compute_stop_pos, handle_face_prop)
(face_before_or_after_it_pos, reseat_to_string)
(get_next_display_element, window_buffer_changed)
(redisplay_internal, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id, display_line)
(note_mode_line_or_margin_highlight, note_mouse_highlight)
(display_string, mouse_face_from_buffer_pos): Remove region handling.
* src/window.h (struct window): Remove field `region_showing'.
* src/dispextern.h (struct it): Remove region_beg/end_charpos.
(face_at_buffer_position, face_for_overlay_string)
(face_at_string_position): Update prototypes.
* src/xfaces.c (face_at_buffer_position, face_for_overlay_string)
(face_at_string_position): Remove `region_beg' and `region_end' args.
* src/fontset.c (Finternal_char_font):
* src/font.c (font_at, font_range): Adjust calls accordingly.
* src/insdel.c (Qregion_extract_function): New var.
(syms_of_insdel): Initialize it.
(prepare_to_modify_buffer_1): Use it.
2013-10-29 12:11:50 -04:00
Dmitry Antipov
2d9783e0b9 Prefer 'unsigned long' to 'long unsigned int' and 'unsigned long int'.
* ftxfont.c (ftxfont_get_gcs):
* gtkutil.c (xg_set_widget_bg, xg_set_background_color):
* xfaces.c (x_free_colors, x_free_dpy_colors)
(x_create_gc, unload_color):
* xselect.c (x_property_data_to_lisp):
* xsettings.c (parse_settings):
* xterm.c (x_copy_color, x_alloc_lighter_color, x_setup_relief_color)
(get_bits_and_offset): Adjust definition.
* frame.c (XParseGeometry): Adjust locals.
* lisp.h (toplevel): Adjust EMACS_UINT type definition.
* regex.h (toplevel): Likewise for reg_syntax_t.
2013-10-29 20:08:08 +04:00