1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00
Commit Graph

114415 Commits

Author SHA1 Message Date
Kenjiro NAKAYAMA
5edcc2dc14 eww: support disabled and readonly text
* net/eww.el (eww-form-text): Support text form with disabled and readonly attributes.
2013-12-21 15:42:23 -05:00
Ted Zlatanov
d49fbfd670 eww: machinery to list browser history
* net/eww.el (eww-list-histories, eww-list-histories)
(eww-history-browse, eww-history-quit, eww-history-kill)
(eww-history-mode-map, eww-history-mode): New command and
functions to list browser histories.
2013-12-21 15:33:44 -05:00
Rüdiger Sonderfeld
5e1901c179 eww: minor code fixes and toolbar support
* net/eww.el (eww-back-url, eww-forward-url, eww-next-url)
(eww-previous-url, eww-up-url, eww-top-url, eww-add-bookmark)
(eww-bookmark-prepare, eww-bookmark-kill, eww-bookmark-yank)
(eww-bookmark-browse, eww-next-bookmark, eww-previous-bookmark):
Use `user-error'.
(eww-bookmark-mode-map): Add menu.
(eww-render, eww-mode): Use `setq-local'.
(eww-tool-bar-map): New variable.
(eww-mode): Set `tool-bar-map'.
(eww-view-source): Check for `html-mode' with `fboundp'.
2013-12-21 15:13:09 -05:00
Lars Magne Ingebrigtsen
073d5cfd9e * net/shr.el (shr--extract-best-source): Don't bug out on audio elements
That have text inside.  Also remove debugging.
2013-12-21 18:54:16 +01:00
Jan Djärv
df8b4c3512 Changelog for previous checkin, missed to mark. 2013-12-21 17:12:52 +01:00
Jan Djärv
41cf3d118e Customize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.
* etc/NEWS: Mention ns-use-srgb-colorspace.

* lisp/cus-start.el (all): Add ns-use-srgb-colorspace.

* src/nsfns.m (Fxw_color_values): Use colorUsingDefaultColorSpace.

* src/nsterm.h: Declare EmacsColor category.

* src/nsterm.m (NSColor): Implement EmacsColor category.
(ns_get_color): Use colorUsingDefaultColorSpace.
(ns_get_color, ns_term_init): Use colorForEmacsRed.
2013-12-21 17:11:55 +01:00
Chong Yidong
aac2b673c3 Don't make faces when loading Custom themes.
* custom.el (custom-theme-recalc-face): Do nothing if the face is
undefined.  Thus, theme settings for undefined faces do not take
effect until the faces are defined with defface, the same as with
theme variables.

* faces.el (face-spec-set): Use face-spec-recalc in all cases.
(face-spec-reset-face): Don't assign extra properties in temacs.
(face-spec-recalc): Apply X resources too.
2013-12-21 23:31:09 +08:00
Chong Yidong
bacb0e7791 Doc fixes for face functions.
* faces.el (face-spec-set):
* cus-face.el (custom-theme-set-faces, custom-set-faces):
* custom.el (defface): Doc fixes.

Fixes: debbugs:16203
2013-12-21 21:44:20 +08:00
Chong Yidong
c2790aecc8 * themes/tango-dark-theme.el: Minor color tweak. 2013-12-21 21:43:11 +08:00
Eli Zaretskii
7667eeb9b5 Fix compilation warning on MS-Windows in my_png_error.
src/image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as
 having the PNG_NORETURN attribute, to avoid compiler warning in
 my_png_error.
2013-12-21 11:09:48 +02:00
Chong Yidong
77221051a2 Tweak C-x TAB behavior changes, and update docs.
* lisp/indent.el (indent-rigidly-map): Add docstring, and move commands
into named functions.
(indent-rigidly-left, indent-rigidly-right)
(indent-rigidly-left-to-tab-stop)
(indent-rigidly-right-to-tab-stop): New functions.  Decide on
indentation direction based on bidi direction, and accumulate
sequential commands in a single undo boundary.
(indent-rigidly--pop-undo): New utility function.

* doc/emacs/indent.texi (Indentation Commands): Document C-x TAB changes.

* doc/lispref/text.texi (Region Indent): Note the new interactive
behavior of indent-rigidly.
2013-12-21 16:37:08 +08:00
Chong Yidong
70c8f5ca14 Re-organize NEWS. 2013-12-21 16:34:49 +08:00
YAMAMOTO Mitsuharu
5b2b60f0f8 Remove fringe background extension code on W32.
* w32term.h (struct scroll_bar): Remove member `fringe_extended_p'.

* w32term.c (w32_draw_fringe_bitmap, x_scroll_run): Remove code for
fringe background extension.
(x_scroll_bar_create): Remove variables `sb_left' and `sb_width',
because they are now always the same as `left' and `width',
respectively.  Remove code for the case that `width' and
`sb_width' are different.
2013-12-21 16:04:07 +09:00
Juanma Barranquero
e0eb0550dc * faces.el (read-face-name): Require crm.el when using crm-separator. 2013-12-21 00:06:17 +01:00
Daniel Colascione
3282bd2ea5 * progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
so that we don't reflow comments into the shebang line.
2013-12-20 13:41:57 -08:00
Juri Linkov
1d42e5b639 * lisp/saveplace.el (save-place-to-alist): Add `dired-filename' as
a position when `dired-directory' is non-nil.  Check integer
positions with `integerp'.
(toggle-save-place, save-places-to-alist): Add check for
`dired-directory'.
(save-place-find-file-hook): Check integer positions with
`integerp'.
(save-place-dired-hook): Use `dired-goto-file' when
`dired-filename' is found in the assoc list.  Check integer
positions with `integerp'.
(dired-initial-position-hook): Rename from `dired-initial-point-hook'.

* lisp/dired.el (dired-initial-position-hook): Rename back from
`dired-initial-point-hook'.
(dired-initial-position): Rename `dired-initial-point-hook' to
`dired-initial-position-hook'.
(dired-file-name-at-point): Doc fix.

Fixes: debbugs:15329
2013-12-20 22:20:39 +02:00
Tassilo Horn
eea2cba48e Don't duplicate descriptions if there are alternative keys. 2013-12-20 21:08:56 +01:00
Juri Linkov
24da72738b * lisp/replace.el (read-regexp-defaults-function): New defcustom.
(read-regexp-suggestions): New function.
(read-regexp): Use `read-regexp-defaults-function' to get default values.
Use `read-regexp-suggestions'.  Add non-empty default to history
for empty input.
(occur-read-regexp-defaults-function): Remove function.
(occur-read-primary-args): Use `regexp-history-last' instead of
`occur-read-regexp-defaults-function'.

* lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
`hi-lock-read-regexp-defaults-function'.  Doc fix.
(hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
with `find-tag-default-as-symbol-regexp'.  Doc fix.
(hi-lock-read-regexp-defaults): Remove function.
(hi-lock-regexp-okay): Add check for null.

* lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.

* lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
(find-tag-default-as-regexp): Move symbol regexp formatting to
`find-tag-default-as-symbol-regexp'.

Fixes: debbugs:14405
2013-12-20 21:55:56 +02:00
E Sabof
137f57c81e * lisp/hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'.
Fixes: debbugs:14179
2013-12-20 21:47:01 +02:00
Tassilo Horn
3fbba716fb Document that =, <, <=, >, >= now accept one or many arguments.
* doc/lispref/numbers.texi (numbers): Document that =, <, <=, >, >= now accept
one or many arguments.
2013-12-20 19:41:31 +01:00
Stephen Berman
f3a66082f9 New implementation of Todo item insertion commands and key bindings.
* calendar/todo-mode.el: New implementation of item insertion
commands and key bindings.
(todo-key-prompt): New face.
(todo-insert-item): New command.
(todo-insert-item--parameters): New defconst, replacing defvar
todo-insertion-commands-args-genlist.
(todo-insert-item--param-key-alist): New defconst, replacing
defvar todo-insertion-commands-arg-key-list.
(todo-insert-item--keyof, todo-insert-item--this-key): New defsubsts.
(todo-insert-item--argsleft, todo-insert-item--apply-args)
(todo-insert-item--next-param): New functions.
(todo-insert-item--args, todo-insert-item--argleft)
(todo-insert-item--argsleft, todo-insert-item--newargsleft):
New variables.
(todo-key-bindings-t): Change binding of "i" from
todo-insertion-map to todo-insert-item.
(todo-powerset, todo-gen-arglists, todo-insertion-commands-args)
(todo-insertion-command-name, todo-insertion-commands-names)
(todo-define-insertion-command, todo-insertion-commands)
(todo-insertion-key-bindings, todo-insertion-map): Remove.
2013-12-20 18:21:12 +01:00
Stephen Berman
2f99433b94 Todo mode bug fixes and new features.
* calendar/todo-mode.el: Bug fixes and new features.
(todo-toggle-item-highlighting): Use eval-and-compile instead of
eval-when-compile.
(todo-move-category): Allow choosing a non-existing todo file to
move the category to, and create that file.
(todo-default-priority): New user option.
(todo-set-item-priority): Use it.
(todo-desktop-save-buffer, todo-restore-desktop-buffer): New functions.
(desktop-restore-file-buffer): Declare.
(desktop-buffer-mode-handlers): Add todo-restore-desktop-buffer.
(todo-modes-set-2): Locally set desktop-save-buffer to
todo-desktop-save-buffer.
(todo-mode, todo-archive-mode, todo-filtered-items-mode)
(auto-mode-alist): Add autoload cookie.

Fixes: debbugs:15225
2013-12-20 18:16:47 +01:00
Bozhidar Batsov
3cbfb93540 * lisp/emacs-lisp/subr-x.el: (string-remove-prefix): New function.
(string-remove-suffix): New function.
2013-12-20 18:37:10 +02:00
Bozhidar Batsov
131e4695b2 * lisp/emacs-lisp/subr-x.el: Renamed from helpers.el. 2013-12-20 18:21:45 +02:00
Tassilo Horn
f60bb26a56 Move eshell visual commands change below existing eshell outline. 2013-12-20 17:11:17 +01:00
Tassilo Horn
3e2acc2540 Mark eshell changes as documented. 2013-12-20 17:06:15 +01:00
Tassilo Horn
30aafaf516 Document S-SPC' as alternative to scrolling down with DEL'.
* doc/emacs/rmail.texi: Document `S-SPC' as alternative to scrolling down
with `DEL'.

* doc/emacs/calendar.texi: Ditto.

* doc/emacs/display.texi: Ditto.

* doc/emacs/help.texi: Ditto.

* doc/misc/info.texi: Document `S-SPC' as alternative to `DEL' for
scrolling.

* doc/misc/woman.texi: Ditto.
2013-12-20 17:03:12 +01:00
Tassilo Horn
7b4ec5497f Document toggle-frame-maximized' and toggle-frame-fullscreen'.
* doc/emacs/frames.texi: Document `toggle-frame-maximized' and
`toggle-frame-fullscreen' with their respective keys.
2013-12-20 16:35:53 +01:00
Tassilo Horn
bac0e622f4 Mark `split-window' change from command to function as ---. 2013-12-20 16:26:38 +01:00
Tassilo Horn
2cd12d2869 Document buffer name uniquification changes.
* doc/emacs/buffers.texi: Document buffer name uniquification changes.
2013-12-20 16:18:50 +01:00
Tassilo Horn
75a1e03471 Document that `electric-indent-mode' is enabled by default.
* doc/emacs/indent.texi: Document that `electric-indent-mode' is enabled by
default.
2013-12-20 15:56:23 +01:00
Tassilo Horn
98104aea41 Document `blink-cursor-blinks'.
* doc/emacs/display.texi (Cursor Display): Document `blink-cursor-blinks'.
2013-12-20 15:51:53 +01:00
Tassilo Horn
2e6ddb2c95 Mark write-region-inhibit-fsync changes as documented. 2013-12-20 15:33:52 +01:00
Tassilo Horn
6f1de4d1f1 Document *Messages* buffer changes.
* doc/emacs/buffers.texi: Update list-buffers "screeshop" to show Messages
as major-mode.

* doc/lispref/display.texi: Document `messages-buffer'.
2013-12-20 15:28:01 +01:00
Tassilo Horn
dfff928448 Document `initial-buffer-choice' changes.
* doc/emacs/entering.texi: Document `initial-buffer-choice' changes.

* doc/emacs/misc.texi (arguments): Document `initial-buffer-choice' changes.

* doc/lispref/os.texi: Document `initial-buffer-choice' changes.
2013-12-20 15:18:21 +01:00
Tassilo Horn
bb8b90a69d Mark set-mark-default-inactive item as --- 2013-12-20 15:00:21 +01:00
Tassilo Horn
a34a0ac891 Document prefix key description in terms of ?
* doc/emacs/help.texi: Document that `?' now also shows subcommands of
prefix keys.
2013-12-20 14:55:44 +01:00
Rüdiger Sonderfeld
cbaece6a98 NEWS: Octave mode changes reflected in new manual.
See (info "(octave-mode)Top").
2013-12-20 13:31:20 +01:00
Martin Rudalics
c44de18d7d Some more fixes for pixelwise resizing.
Remove scroll_bar_actual_width from frames.
* frame.h (struct frame): Remove scroll_bar_actual_width slot.
* frame.c (Fscroll_bar_width): Return scroll bar area width.
(x_figure_window_size):
* nsterm.m (x_set_window_size):
* widget.c (set_frame_size):
* w32term.c (x_set_window_size):
* xterm.c (x_set_window_size, x_set_window_size_1): Don't set
scroll_bar_actual_width.

Convert scroll_bar members to integers on Windows.
* w32term.h (struct scroll_bar): Convert top, left, width,
height, start, end and dragging to integers.
* w32fns.c (w32_createscrollbar): Remove XINT conversions for
scroll_bar members.
* w32term.c (w32_set_scroll_bar_thumb)
(w32_scroll_bar_handle_click): Remove XINT conversions for
scroll_bar members.  Treat bar->dragging as integer.
(x_scroll_bar_create): Call ALLOCATE_PSEUDOVECTOR with "top" as
first element.  Remove XINT conversions for scroll_bar members.
(w32_set_vertical_scroll_bar, x_scroll_bar_report_motion):
Remove XINT conversions for scroll_bar members.

Fix assignment for new window total sizes.
* window.c (Fwindow_resize_apply_total): Assign values for
minibuffer window.
* window.el (window--pixel-to-size): Remove function.
(window--pixel-to-total-1, window--pixel-to-total): Fix
calculation of new total sizes.
2013-12-20 11:48:36 +01:00
Leo Liu
d506bc1d20 * url/url.el (url-retrieve-synchronously): Add optional arg SILENT and
INHIBIT-COOKIES.
2013-12-20 18:12:17 +08:00
Chong Yidong
f5df4cebdb Add/fix docs for add-face-text-property
* doc/lispref/text.texi (Changing Properties): Improve documentation for
add-face-text-property.
(Special Properties): Mention add-face-text-property.

* src/textprop.c (Fadd_face_text_property): Doc fix.  Rename `appendp'
argument to `append'.
2013-12-20 15:12:04 +08:00
Vitalie Spinu
ca65efcc2e comint.el (comint-output-filter): Fix rear-nonsticky property placement.
Fixes: debbugs:16010
2013-12-20 14:25:19 +08:00
Chong Yidong
a9574eb730 * faces.el (read-color): Minor fix for completion function. 2013-12-20 14:11:00 +08:00
Katsumi Yamaoka
a2f5f43193 lisp/gnus/gnus-spec.el (gnus-tmp-article-number): Remove duplicate defvar 2013-12-20 05:53:04 +00:00
Dmitry Gutov
b520f210b1 * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option. 
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.

* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.

* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.

Fixes: debbugs:16182
2013-12-20 07:20:33 +02:00
Jay Belanger
26b75b456e lisp/calc/calc.el (calc-enter, calc-pop): Use the variable
`calc-context-sensitive-enter'.

doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable
`calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
2013-12-19 22:53:24 -06:00
Lars Magne Ingebrigtsen
cf91cee781 * net/shr.el (shr-insert): Protect against infloops in degenerate tables. 2013-12-20 05:29:08 +01:00
Rüdiger Sonderfeld
51d971b429 octave-mode: Link to manual.
* lisp/progmodes/octave.el (octave): Add link to manual and octave
  homepage.
  (octave-mode-menu): Link to octave-mode manual.
2013-12-20 02:50:46 +01:00
Leo Liu
8c2e462acc * skeleton.el (skeleton-pair-insert-maybe): Disable newline
insertion using skeleton-end-newline.

Fixes: debbugs:16138
2013-12-20 08:38:02 +08:00
Juri Linkov
501158bcb9 * lisp/replace.el (occur-engine): Use `add-face-text-property'
to add the face property to matches and titles. 

* lisp/hi-lock.el (hi-green): Use lighter color "light green" closer to
the palette of other hi-lock colors.
(hi-lock-set-pattern): Prepend hi-lock face to the existing face.

Fixes: debbugs:14645
2013-12-20 02:07:08 +02:00