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

117942 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
2e8259b044 Add a new, somewhat experimental "readability" command to eww
* net/eww.el (eww-readable): New command and keystroke.

* net/shr.el (shr-retransform-dom): New function.
2014-11-03 01:01:20 +01:00
Lars Magne Ingebrigtsen
816cad6e24 Fix `eww-current-source' buffer confustion
* net/eww.el (eww-display-html): Set `eww-current-source' in the
correct buffer.
(eww-view-source): Use it.
2014-11-03 00:02:01 +01:00
Ted Zlatanov
27e4b2be11 ChangeLog: Add bug numbers. 2014-11-02 16:44:04 -05:00
Ivan Shmakov
7e35a478d0 * net/eww.el (eww): Recognize colon-delimited IPv6 addresses.. 2014-11-02 16:40:30 -05:00
Brian McKenna
cc6340495d * net/eww.el (eww-submit): Encode empty form values as "". 2014-11-02 16:34:40 -05:00
Ivan Shmakov
7188af323b * net/eww.el (eww): Allow "file:/file/name" URLs. 2014-11-02 16:06:52 -05:00
Ivan Shmakov
49bb335ea9 * net/eww.el (eww-mode-map): Remove mentions of `eww-quit'. 2014-11-02 16:02:10 -05:00
Jan Djärv
860ae4521f Fix memory leak
* nsimage.m (allocInitFromFile:): Initialize bmRep.
(dealloc): Release bmRep.
2014-11-02 19:45:50 +01:00
Jan Djärv
65bb8d055c * nsimage.m (ImageList, imageListNext, imageListSetNext:)
(reference): Remove.
(allocInitFromFile:): Remove searching ImageList and calling
reference.
(dealloc): Remove handling if ImageList.

* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
imageListSetNext, imageListNext.

Fixes: debbugs:18918
2014-11-02 19:43:22 +01:00
Andreas Schwab
f26d02a625 Fix incorrect assertion
* process.c (catch_child_signal): Fix incorrect assertion.
2014-11-02 18:02:32 +01:00
Eric Abrahamsen
fce9e55323 Fix bug #18897 with printing large objects from eieio.el.
lisp/emacs-lisp/eieio.el (eieio-edebug-prin1-to-string): Adjust
 for use as advice.
 (edebug-setup-hook): Advise `edebug-prin1-to-string'.
2014-11-02 17:24:33 +02:00
Stefan Monnier
4a48e97cf9 * lisp/emacs-lisp/pp.el (pp-macroexpand-expression): Use macroexpand-1.
* lisp/progmodes/elisp-mode.el (emacs-lisp-macroexpand): Idem.

Fixes: debbugs:18821
2014-11-02 01:46:04 -04:00
Michael R. Mauger
ee17a97bea sql.el (sql-mode-oracle-font-lock-keywords): Correct regexp
syntax, add new keywords, and parse longer keywords first.
(sql-redirect-one): Protect against empty command.
(sql-mode, sql-interactive-mode): Set `custom-mode-group\' property
2014-11-01 22:04:26 -04:00
Michael R. Mauger
fcc5b488b9 * sql.el (sql-interactive-mode, sql-stop): Correct fix for
Bug#16814 with let-bind of comint-input-ring variables around read
and save functions.
2014-11-01 18:14:01 -04:00
Jan Djärv
bf7ded963c Clean up merge conflict.
* macfont.m (macfont_draw):
* nsterm.m (ns_mouse_position, judge): Clean up merge conflict.
2014-11-01 21:06:49 +01:00
Glenn Morris
d5d8ca30e5 Merge from emacs-24; up to 117656 2014-11-01 11:05:30 -07:00
Glenn Morris
b99e8f8336 ChangeLog simplification 2014-11-01 10:33:29 -07:00
Glenn Morris
e54c5e4e25 Fix ChangeLog typo 2014-11-01 10:29:14 -07:00
Michael Albinus
7a2d560045 * net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property): Check, that `tramp-cache-get-count-*'
and `tramp-cache-set-count-*' are bound.  Otherwise, there might
be compiler warnings.

* net/tramp-sh.el (tramp-get-remote-uid, tramp-get-remote-gid):
Return -1 respective "UNKNOWN", if uid or gid cannot be determined.
2014-11-01 17:47:09 +01:00
Alan Mackenzie
f3f7acc592 Make blink-parens work with a closing template delimiter.
progmodes/cc-cmds.el (c-electric-lt-gt): Cause a redisplay
before calling blink-paren-function, so as to apply syntax-table
properties to the ">".
2014-11-01 15:56:16 +00:00
Eli Zaretskii
614beeecf2 Ignore BUFFER_SWITCH_EVENT events for the purposes of input-pending-p.
src/keyboard.c (readable_events): When FLAGS include
 READABLE_EVENTS_FILTER_EVENTS, ignore BUFFER_SWITCH_EVENT events.
 This avoids returning non-nil from input-pending-p when only such
 events are in the queue.

Fixes: debbugs:18856
2014-11-01 16:22:32 +02:00
Eli Zaretskii
85f20e489e Fix bug #18856 with failure to fontify compilation buffers.
lisp/progmodes/compile.el (compilation-mode): Turn off deferred
 fontifications locally.
2014-11-01 16:16:53 +02:00
Wolfgang Jenkner
b14b7f431f * net/tramp-sh.el (tramp-send-command): Fix the case where the
remote-echo connection property is non-nil.

Fixes: debbugs:18858
2014-11-01 15:08:00 +01:00
Michael Albinus
ae5602c51c Backport Tramp changes from trunk.
* net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
(tramp-adb-handle-write-region): Improve messages.
(tramp-adb-maybe-open-connection): Don't set
`tramp-current-*' variables.

* net/tramp-cache.el (tramp-flush-file-function): Simplify check.
Suppress debug messages.

* net/tramp-ftp.el (top): Remove special handling for URL syntax.
(tramp-ftp-file-name-handler):

* net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
(tramp-gvfs-methods-mounttracker)
(tramp-gvfs-mountlocation-signature): Check `tramp-gvfs-enabled'
during initialization. 
(tramp-gvfs-handle-delete-file): Flush file properties, not
directory properties.
(tramp-gvfs-handle-file-attributes): Use `string-to-number' when
reading "unix::mode".
(tramp-gvfs-handle-file-name-all-completions):
Use "-h" option for "gvfs-ls".
(tramp-gvfs-url-file-name): Apply `cons' where appropriate.
`user' and `localname' could be nil.
(tramp-gvfs-send-command): Simplify traces.

* net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
(vc-git-program, vc-hg-program): Declare.
(tramp-methods) <sftp>: Remove.  It has never worked satisfactorily.
(tramp-methods) <nc>: Add new method.
(tramp-methods) <telnet>: Redirect stderr to "/dev/null".
(tramp-methods) <plink, plinkx, pscp, psftp>: Improve
`tramp-login-args'.
(tramp-default-user-alist): Add "nc".
(top): Remove completion function for "sftp".  Add completion
functions for "nc" and "psftp".
(tramp-sh-handle-set-visited-file-modtime):
(tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.
(tramp-do-copy-or-rename-file-out-of-band):
Use cached "remote-copy-args" value, if available.  (Bug#18199)
Tweak docstring.  Implement support for "nc" method.
(tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
(tramp-remote-coding-commands, tramp-call-local-coding-command):
Tweak docstring.
(tramp-sh-handle-start-file-process): Expand `default-directory'.
(tramp-sh-handle-write-region): Tweak error message.
(tramp-sh-handle-vc-registered): Remove backends when the remote
binary does not exist.
(tramp-open-connection-setup-interactive-shell):
Prefer utf-8 coding.  (Bug#17859)
(tramp-find-inline-encoding): Do not raise an error.
(tramp-make-copy-program-file-name): Tweak docstring.  Handle also
the "nc" case.  Quote result also locally.
(tramp-get-remote-id): Check also for "gid".
(tramp-get-remote-python):

* net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-set-file-acl): Use `start-process'.
(tramp-smb-handle-insert-directory): Use progress reporter.
(tramp-smb-handle-rename-file): Flush also file properties of
FILENAME.

* net/tramp.el (tramp-methods): Tweak docstring.
(tramp-file-name-handler): Apply `cons' where appropriate.
(tramp-handle-file-accessible-directory-p): Check for
`file-readable-p' instead of `file-executable-p'.
(tramp-handle-shell-command): Use `display-buffer'.  (Bug#18326)
(tramp-handle-unhandled-file-name-directory): Return "/".
(tramp-check-cached-permissions):
Use `tramp-compat-file-attributes'.
(tramp-call-process): Add new argument VEC.  Adapt callees in all
tramp*.el files.

* net/trampver.el: Update release number.
2014-11-01 14:34:45 +01:00
Jan Djärv
711066c8c1 nsselect.m cleanup, remove unused, declare vars static.
* nsselect.m (QCLIPBOARD, QSECONDARY, QTEXT, QFILE_NAME)
(NXPrimaryPboard, NXSecondaryPboard): Declare static.
(Qforeign_selection): Remove.
(ns_get_local_selection): Identation fix.
(syms_of_nsselect): Remove Qforeign_selection, ns-lost-selection-hooks
2014-11-01 12:41:50 +01:00
Jan Djärv
722afcab51 * lisp/select.el (gui-get-selection): Comment: data-type ignored on NS.
* src/nsselect.m (ns_get_local_selection): Remove calling of
functions in Vselection_converter_alist.
(syms_of_nsselect): Remove Vselection_converter_alist.

Fixes: debbugs:18911
2014-11-01 12:37:14 +01:00
Glenn Morris
f902d418b2 Auto-commit of loaddefs files. 2014-11-01 07:18:14 -04:00
Alan Mackenzie
ce4670d74d Correct name on yesterday's patch "Add "enum classs" support to C++ mode."
to Daniel Colascione.
2014-11-01 10:36:43 +00:00
Glenn Morris
d87931d249 Auto-commit of loaddefs files. 2014-11-01 06:18:11 -04:00
Stefan Monnier
d5262b384e * lisp/emacs-lisp/macroexp.el (macroexpand-1): New function.
(macroexp--expand-all): Unrelated tweaks.
* lisp/emacs-lisp/gv.el (gv-get): Use macroexpand-1.

Fixes: debbugs:18821
2014-10-31 17:35:35 -04:00
Stefan Monnier
62ee8b1a59 * lisp/simple.el (newline): Add assertions to try and help catch bug#18913. 2014-10-31 16:57:59 -04:00
Jan Djärv
4e0cc3517b * macfont.m (macfont_glyph_extents): Turn off syntetic bold
if force_integral_p (i.e. no antialias).
(macfont_draw): Check ns_antialias_text, also turn off syntetic
bold if no antialias.

Fixes: debbugs:18876
2014-10-31 19:41:07 +01:00
Stefan Monnier
95af181d66 * lisp/emulation/cua-base.el (cua-delete-region): Use delete-active-region.
(cua--last-deleted-region-pos, cua--last-deleted-region-text): Remove.

Fixes: debbugs:18886
2014-10-31 11:31:27 -04:00
Jan Djärv
08f558056d * emacs.c (main): Don't chdir to $HOME on Cocoa if --chdir was given.
Fixes: debbugs:18846
2014-10-31 16:18:36 +01:00
Dmitry Antipov
b645a03e5c * font.c (copy_font_spec): Redesign to avoid Fcopy_alist
and unnecessary initialization.  Adjust comments.
2014-10-31 14:09:00 +03:00
Eli Zaretskii
eeeaca5cb5 admin/ChangeLog: Fix a typo. 2014-10-31 11:40:27 +02:00
Eli Zaretskii
b8ff3a9f98 Minor fixes in the changes in preparation for git migration.
src/Makefile.in (repo-update): Fix a typo and slightly reword
 commentary.

 admin/notes/repo (Notes): Reword the stylistic guidance for commit log
 messages so that they are in line with Emacs development practices
 and style guidance.
2014-10-31 11:32:11 +02:00
Glenn Morris
15d0d8d11b Yet another change for git migration backported from trunk.
lisp/version.el (emacs-bzr-version, emacs-bzr-get-version):
 Revert 2014-10-31 change.
2014-10-31 11:09:24 +02:00
Eric S. Raymond
1ad9ad3bfe Backport from trunk more changes in preparation for git migration.
admin/notes/bzr: Renamed to notes/repo, reorganixed to separate
 VCS-dependent from VCS-independent stuff.  Added guidance about
 commit-comment format under DVCSes.
 admin/notes/BRANCH: Merged into notes/repo.

 lisp/version.el: Fix some fallback values to conform to the actual
 release number.
2014-10-31 11:06:47 +02:00
Eric S. Raymond
cac77f92e3 Backport changes in preparation for git migration from trunk.
admin: Changes in several documents.
 autogen.sh: Neutralize language specific to a repository type.

 doc/misc/efaq-w32.texi: Neutralized language specific to a repository type.

 doc/misc/gnus-coding.txt: Neutralized language specific to a repository type.

 lisp/Makefile.in: Change some production names so they're neutral
 about the repository type.
2014-10-31 11:03:23 +02:00
Glenn Morris
792faabe7a * lisp/progmodes/vhdl-mode.el: Doc grammar fixes. 2014-10-30 21:14:27 -07:00
Glenn Morris
0ebcd35e76 * etc/emacs.desktop: Add "Keywords". 2014-10-30 21:10:19 -07:00
Glenn Morris
12f12f9038 * doc/man/emacsclient.1: Tiny markup fix 2014-10-30 19:18:53 -04:00
Glenn Morris
b77b925455 * lisp/startup.el (command-line): Remove pointless attempt to avoid statting fs
; which expand-file-name doesn't even do.
2014-10-30 18:52:38 -04:00
Kim F. Storm
71477684db Restore cua-delete-copy-to-register-0 and M-v command.
* lisp/delsel.el (delete-selection-save-to-register)
(delsel--replace-text-or-position): New vars.
(delete-active-region): Use them.
(delete-selection-repeat-replace-region): New command, moved from
cua-base.el.
* lisp/emulation/cua-base.el (cua--repeat-replace-text): Remove var.
(cua-repeat-replace-region): Move command to delsel.el.
(cua--init-keymaps): Update binding accordingly.
(cua-mode): Set delete-selection-save-to-register.

Fixes: debbugs:18886
2014-10-30 15:19:49 -04:00
Jan Djärv
c465f1c27f * nsfns.m (ns_set_doc_edited): Do all logic (check frames) here
instead of in xdisp.c, function now takes void.

* nsterm.h (ns_set_doc_edited): Declare taking no args.

* xdisp.c (prepare_menu_bars): Remove HAVE_NS code.
(redisplay_internal): Call ns_set_doc_edited if HAVE_NS (Bug#18884).
2014-10-30 20:15:38 +01:00
Jan Djärv
b7bf631c80 * nsfns.m (x_icon): icon_top/left is int.
* nsterm.h (EmacsScroller): Replace Lisp_Object win with
struct window*.
Remove getMouseMotionPart.
(ns_output): Make icon_top/left int.

* nsterm.m (ns_mouse_position): Remove unused code.
(initFrame🪟, dealloc): Use window instead of win.
(getMouseMotionPart🪟x:y:): Remove, unused.
(sendScrollEventAtLoc:fromEvent:): Make Lisp_Object win from window.

Fixes: debbugs:18889
2014-10-30 18:23:52 +01:00
Eli Zaretskii
b6a7474272 Minor fix in bidi.c:bidi_cache_reset_to.
src/bidi.c (bidi_cache_reset_to): Invalidate bidi_cache_last_idx by
 setting it to -1.
 (bidi_find_bracket_pairs): Pass to bidi_cache_reset_to a relative
 index, not an absolute one, as that's what the function expects.
2014-10-30 18:51:53 +02:00
Alan Mackenzie
ff73c2c3e2 Add "enum classs" support to C++ mode.
progmodes/cc-langs.el (c-after-brace-list-decl-kwds)
(c-after-brace-list-key): New language consts/variables.
progmodes/cc-engine.el (c-looking-at-decl-block): Exclude
spurious match of "enum struct" from decl-block recognition.
(c-backward-colon-prefixed-type): New function.
(c-backward-over-enum-header): Call above function to extend
recognition of enum structure.
2014-10-30 16:07:19 +00:00
Dmitry Antipov
ff7ec46d34 * fontset.c (toplevel): Adjust comment to match 2014-06-19 change. 2014-10-30 14:12:21 +03:00