summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* ; Spelling fixesTino Calancha2016-07-271-11/+11
|
* * lisp/subr.el (cancel-change-group): Reset cell in case of errorStefan Monnier2016-07-261-20/+21
| | | | | Since the setcdr/setcdr is supposed to be temporary, use unwind-protect to make sure we properly undo the temporary change even in case of error.
* Do not sharp-quote lambdasNicolas Petton2016-07-261-22/+22
| | | | * lisp/progmodes/sql.el: Remove sharp-quotes in lambdas.
* * gnus-cloud.el (gnus-cloud-encode-data): Fix 'base64-gzip encoding.Ted Zlatanov2016-07-251-4/+6
|
* * lisp/gnus/mm-decode.el (mm-convert-shr-links):Katsumi Yamaoka2016-07-251-2/+0
| | | | Preserve key bindings that shr adds (bug#23964).
* Fix auto-reverting image-mode buffer (bug#21598)Nicolas Petton2016-07-251-0/+3
| | | | | | | | When auto-reverting an image buffer, `image-mode' is not called since `revert-buffer' is called with `preserve-modes' set to non-nil. * lisp/image-mode.el (image-after-revert-hook): Check if there is an image display property for the current buffer before updating it.
* Fontify C++ parameter packs.Alan Mackenzie2016-07-232-0/+15
| | | | | | | | | | This fixes debbugs #23610. * lisp/progmodes/cc-langs.el (c-pack-ops, c-pack-key): New c-lang-defconsts/defvars. (c-type-decl-prefix-key): Add "..." and "&&" into the C++ version. * lisp/progmodes/cc-engine.el (c-forward-type): Handle matches of c-pack-key.
* Java Mode: Handle strings as case labels correctly.Alan Mackenzie2016-07-231-2/+2
| | | | | | | This fixes debbugs #23901. * lisp/progmodes/cc-langs.el (c-nonlabel-token-key): Remove "\"" from the Java value.
* Avoid repeated warnings while restoring desktopKaushal Modi2016-07-221-1/+1
| | | | | * lisp/desktop.el (desktop-restore-file-buffer): Do not print warnings when files are being opened during desktop restore.
* Move read-multiple-choice to subr-x.elLars Ingebrigtsen2016-07-225-166/+168
| | | | | | | | | | | | | | * lisp/faces.el (read-multiple-choice-face): Fix doc string. * lisp/emacs-lisp/subr-x.el (read-multiple-choice): Move here from subr.el. * lisp/gnus/message.el (subr-x): Ditto. * lisp/net/nsm.el: Require subr-x for read-multiple-choice. read-multiple-choice doesn't need to be in the dumped Emacs, so move it to a less central file.
* Update define-ibuffer-op doc stringTino Calancha2016-07-221-1/+2
| | | | | | * lisp/ibuf-macs.el (define-ibuffer-op): Mention that BODY is evaluated with 'buf' bound to the actual marked buffer being processed.
* Update define-ibuffer-op doc stringTino Calancha2016-07-221-2/+6
| | | | | | * lisp/ibuf-macs.el (define-ibuffer-op): Document arg COMPLEX instead of refer the reader to the source code. Document arg BODY.
* Fix shell-command[-on-region] doc stringsTino Calancha2016-07-221-6/+1
| | | | | | | * lisp/simple.el (shell-command, shell-command-on-region): Drop the sentence saying that the command may delete the buffer '*Shell Command Output*': the command never delete such buffer (Bug#23936).
* ;Revert ";Partially revert 2649105a"Mark Oteiza2016-07-211-1/+2
| | | | This reverts commit b7651649c2b1321a0c510116c1ac2442599d9a2e.
* ;Partially revert 2649105aMark Oteiza2016-07-211-2/+1
| | | | | * lisp/textmodes/tex-mode.el (tex-common-initialization): Use setq-local to modify prettify-symbols-compose-predicate.
* Ibuffer: Use default output buffer for shell commandsTino Calancha2016-07-211-2/+1
| | | | | * lisp/ibuf-ext.el (shell-command-pipe): Insert the output in buffer '*Shell Command Output*', as command 'shell-command-file'.
* * lisp/net/shr.el (shr-fill-line):Katsumi Yamaoka2016-07-211-5/+4
| | | | Preserve text properties in folded lines (bug#24034).
* Fix shr.el/image build problemLars Ingebrigtsen2016-07-201-0/+1
| | | | | | | Fixes: bug#24035 * lisp/net/shr.el: Require image, since some builds seem to break without it (bug#24035).
* Bring the Gnus Cloud package into working order.Ted Zlatanov2016-07-204-1058/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sync.el: Removed in favor of gnus-cloud.el. * lisp/gnus/gnus-cloud.el: Autoload EPG functions. Change storage format to simplify non-file data. (gnus-cloud-storage-method): New defcustom to support nil, Base64, Base64+gzip, or EPG encoding on the Gnus Cloud IMAP server. Defaults to EPG if that's available, Base64+gzip otherwise. (gnus-cloud-interactive): New defcustom to make Gnus Cloud operations interactive, defaults to enabled. (gnus-cloud-group-name): New variable for the Gnus Cloud group name. (gnus-cloud-make-chunk): Tag with "Gnus-Cloud-Version" instead of just "Version". (gnus-cloud-insert-data): Simplify and support :newsrc-data entries. (gnus-cloud-encode-data, gnus-cloud-decode-data): Support various storage methods as per gnus-cloud-storage-method. (gnus-cloud-parse-chunk): Look for "Gnus-Cloud-Version" marker. (gnus-cloud-parse-version-1): Fix parsing loop bug. Handle :newsrc-data entries. (gnus-cloud-update-all): Handle :newsrc-data entries and dispatch to file and data handlers. (gnus-cloud-update-newsrc-data): New function to handle :newrsc-data entries. (gnus-cloud-update-file): Rework to support gnus-cloud-interactive and be more careful. (gnus-cloud-delete-file): Remove; merged into gnus-cloud-update-file. (gnus-cloud-file-covered-p, gnus-cloud-all-files) (gnus-cloud-files-to-upload, gnus-cloud-ensure-cloud-group) (gnus-cloud-add-timestamps, gnus-cloud-available-chunks) (gnus-cloud-prune-old-chunks): Fix indentation. (gnus-cloud-timestamp): New function to make a standard Gnus Cloud timestamp. (gnus-cloud-file-new-p): Use it. (gnus-cloud-upload-all-data): Add interactive convenience function to upload all data. (gnus-cloud-upload-data): Make interactive; collect files and newsrc data separately; refresh Gnus Cloud group after insert. (gnus-cloud-download-all-data): Add interactive convenience function to download all data. (gnus-cloud-download-data): Rework to support "Gnus-Cloud-Version" marker and different storage methods. (gnus-cloud-host-server-p): New function to check if a server is the Gnus Cloud host. (gnus-cloud-collect-full-newsrc): Tag entries with :newsrc-data. (gnus-cloud-host-acceptable-method-p): New function so other code can check if a server method can host the Gnus cloud. (gnus-cloud-storage-method): Use 'radio instead of 'choice for better UI. (gnus-cloud-method): Make this a defcustom and note how to set it. * lisp/gnus/gnus-group.el (gnus-group-cloud-map): Add Gnus Cloud autoloaded keybindings under the `~' prefix. * lisp/gnus/gnus-srvr.el (gnus-server-mode-map, gnus-server-make-menu-bar) (gnus-server-cloud, gnus-server-cloud-host) (gnus-server-font-lock-keywords, gnus-server-insert-server-line) (gnus-server-toggle-cloud-method-server): Support Gnus Cloud synchronized servers and synchronization host server toggling (`i' and `I') and visual display. (gnus-server-toggle-cloud-method-server): Use gnus-cloud-host-acceptable-method-p. (gnus-server-toggle-cloud-method-server): Use custom-set-variables to set the gnus-cloud-method. Ask the user if it's OK to upload the data right now. * doc/misc/gnus.texi: Document Gnus Cloud package.
* Make gif animation work (bug#24004)Katsumi Yamaoka2016-07-191-3/+4
| | | | | * lisp/image.el (image-animate-timeout): Fix the logic that tests if an animation is too big (bug#24004).
* * lisp/simple.el (undo-amalgamate-change-group): New functionStefan Monnier2016-07-183-40/+46
| | | | | | | | * lisp/emulation/viper-cmd.el (viper-adjust-undo): Use it. (viper-set-complex-command-for-undo): Save current state with prepare-change-group. * lisp/emulation/viper-init.el (viper-undo-needs-adjustment) (viper-buffer-undo-list-mark): Remove.
* Better documentation for cl-reduce (bug#24014)Nicolas Petton2016-07-181-0/+10
| | | | * lisp/emacs-lisp/cl-seq.el (cl-reduce): Explain what reducing means.
* ; Revert "Replace eldoc-documentation-function with a hook"Dmitry Gutov2016-07-181-32/+18
| | | | | | | This reverts commit 5811404f0b86c9fa92c3e0b22505a9bb05f04145. It doesn't have the consensus, as evidenced by http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00138.html
* ; Revert "Use eldoc-documentation-functions"Dmitry Gutov2016-07-187-27/+23
| | | | | | | This reverts commit 001d88b62ecb8163a148656acb103b354ce7613a. It doesn't have the consensus, as evidenced by http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00138.html
* Use eldoc-documentation-functionsMark Oteiza2016-07-177-23/+27
| | | | | | | | | | | * lisp/hexl.el (hexl-mode): * lisp/ielm.el (inferior-emacs-lisp-mode): * lisp/progmodes/cfengine.el (cfengine3-mode): * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): * lisp/progmodes/octave.el (octave-mode, inferior-octave-mode): * lisp/progmodes/python.el (python-mode): * lisp/simple.el (read--expression): Add buffer-locally to hook eldoc-documentation-functions.
* Optimize ucs-normalize.el compilationNoam Postavsky2016-07-161-16/+18
| | | | | | | | * lisp/international/ucs-normalize.el (ucs-normalize-combining-chars-regexp): (quick-check-list-to-regexp): Use regexp-opt-charset instead of regexp-opt. * lisp/international/ucs-normalize.el (quick-check-list): Reuse a single temp buffer for the whole loop.
* Revert "Add a couple cells to lisp-prettify-symbols-alist"Mark Oteiza2016-07-141-4/+1
| | | | This reverts commit bdda4855c635ecf4135e23321bdba023e9ae65c9.
* * lisp/simple.el (shell-command): Add save-match-data commentStefan Monnier2016-07-141-0/+2
|
* CC Mode: correct incorrect invocation of parse-partial-sexp.Alan Mackenzie2016-07-141-5/+6
| | | | | | | Fixes bug #23944. * lisp/progmodes/cc-engine.el (c-literal-limits): make the sixth argument of an invocation of parse-partial-sexp 'syntax-table, not the fourth.
* Fix delete-duplicate-linesStephen Berman2016-07-141-2/+3
| | | | | * lisp/sort.el (delete-duplicate-lines): Delete duplicate first line when operating backward (bug#23863).
* * lisp/gnus/mm-decode.el (mm-convert-shr-links):Katsumi Yamaoka2016-07-141-2/+1
| | | | Use shr-image-map instead of shr-map (bug#23964).
* * lisp/mouse.el (mouse): Consolidate group definition hereStefan Monnier2016-07-132-8/+5
| | | | * lisp/cus-edit.el (mouse): Remove both group definitions.
* Include versioned preloaded libraries in `package--builtin-versions'Chris Feng2016-07-131-20/+19
| | | | | | | * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Do not exclude preloaded libraries or remove entries generated for them. (autoload-generate-file-autoloads): Do not generate autoload statements for preloaded libraries.
* Escape meta chars in commands processed by shellTino Calancha2016-07-131-9/+9
| | | | | * lisp/progmodes/grep.el (grep-compute-defaults): Quote braces in all commands to be passed to a shell (Bug#23959).
* * lisp/emacs-lisp/cl-macs.el (cl--prog): New functionStefan Monnier2016-07-121-0/+21
| | | | (cl-prog, cl-prog*): New macros.
* * cl-generic.el (cl-defmethod): Make docstring dynamicStefan Monnier2016-07-122-16/+47
| | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Make docstring dynamic. (cl--generic-make-defmethod-docstring): New function for that. (cl-defmethod, cl-generic-generalizers): Tweak docstrings accordingly. (cl-generic-define-method, cl--generic-describe): Change `load-history' format of cl-defmethods, so as not to confused methods with equal specializers but different qualifiers. * lisp/emacs-lisp/eieio-core.el (cl-generic-generalizers): Provide docstrings.
* Amend CC Mode to handle big C++ raw strings correctly.Alan Mackenzie2016-07-123-41/+57
| | | | | | | | | | | | | | | | | | Problems were caused by such a string spanning jit-lock chunks, and by a flaw in the +-500 bytes boundaries imposed for macros. * lisp/progmodes/cc-mode.el (c-extend-region-for-CPP): Check the +-500 byte macro boundaries here. (c-extend-font-lock-region-for-macros): Remove the check on the +-500 byte lower boundary. Fix the check on the upper boundary. * lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Handle the starting point already being within a raw string. * lisp/progmodes/cc-engine.el (c-raw-string-pos) (c-depropertize-raw-strings-in-region, c-after-change-re-mark-raw-strings): Modify regexp element "\\{,16\\}" to "\\{0,16\\}" for greater compatibility with other Emacsen.
* * lisp/mouse.el (mouse-select-region-move-to-beginning): Add :group.Stephen Berman2016-07-121-2/+3
|
* ; Remove parens from sentence in docstring.Mark Oteiza2016-07-111-1/+1
|
* Prevent to apply funcall on tStefan Monnier2016-07-121-1/+3
| | | | | * lisp/vc/ediff-util.el (ediff-really-quit): Ignore the global part of 'ediff-after-quit-hook-internal' hook (Bug#23933).
* Ignore angle mode while simplifying unitsTino Calancha2016-07-122-7/+17
| | | | | | | | * lisp/calc/calc-forms.el (math-to-hms, math-from-hms): Ignore value of 'calc-angle-mode' when 'math-simplifying-units' is non-nil (Bug#23889). * lisp/calc/calc-math.el (math-to-radians, math-from-radians) (math-from-radians-2, math-to-radians-2): Idem.
* Dired always read file systemTino Calancha2016-07-111-2/+15
| | | | | | | | * dired.el (dired-always-read-filesystem): Add new option. (dired-mark-files-containing-regexp): Use it (Bug#22694). * doc/emacs/dired.texi: Mention it in the manual. * test/lisp/dired-tests.el (dired-test-bug22694): Add test. ;* etc/NEWS: Add entry for this change.
* Avoid 'unused var' 'not left unused var' warningsTino Calancha2016-07-112-6/+5
| | | | | | | | * lisp/ibuffer.el (ibuffer-locked-buffer-p): Remove unused var 'char'. Rename used var '_buffer' to 'cbuffer'. * lisp/ibuf-ext.el (ibuffer-unmark-all): Rename used var '_mark' to cmark'.
* * lisp/simple.el (shell-command, shell-command-on-region): Fix doc stringsTino Calancha2016-07-111-9/+9
|
* An efficient built-in mapcanMario Lang2016-07-1014-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A built-in version of `mapcan' avoids consing up (and GC'ing) the intermediate list. * src/fns.c (Fmapcan): New built-in. (syms_of_fns): Define. * lisp/emacs-lisp/cl.el (mapcan): Remove defalias. * lisp/emacs-lisp/cl-extra.el (cl-mapcan): Use built-in `mapcan' if only one sequence is provided. * lisp/progmodes/hideif.el (hif-delimit): * lisp/dired-aux.el (dired-do-find-regexp): * lisp/woman.el (woman-parse-colon-path): Use `mapcan' instead of `cl-mapcan'. * lisp/woman.el (eval-when-compile): Require 'cl-lib only when compiling. * lisp/mouse.el (mouse-buffer-menu-map): * lisp/net/pop3.el (pop3-uidl-dele): * lisp/progmodes/gud.el (gud-jdb-build-source-files-list): * lisp/cedet/semantic/db-find.el (semanticdb-fast-strip-find-results): * lisp/cedet/semantic/symref/grep.el (semantic-symref-derive-find-filepatterns): * lisp/gnus/nnmail.el (nnmail-split-it): * lisp/gnus/gnus-sum.el (gnus-articles-in-thread): * lisp/gnus/gnus-registry.el (gnus-registry-sort-addresses): * lisp/gnus/gnus-util.el (gnus-mapcar): Use `mapcan'.
* Detect aliases to built-in functionsTino Calancha2016-07-091-6/+10
| | | | | | | | * lisp/help-fns.el (describe-function-1): Check for aliases defined with (defalias alias (symbol-function built-in)) (Bug#23887). * test/lisp/help-fns-tests.el (help-fns-test-bug23887): Untag as failing this test.
* Avoid recursive detection of remote uid and gid in tramp-gvfs.elMichael Albinus2016-07-091-8/+9
| | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-get-remote-uid-gid-in-progress): New variable. (tramp-gvfs-maybe-open-connection): Use it. * test/lisp/net/tramp-tests.el (tramp-test18-file-attributes): Reorder test.
* Wrap around error in coreutil's lsJürgen Hötzel2016-07-091-0/+2
| | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Add switch "--quoting-style=literal" if remote host supports quoting style. Recent versions of coreutils changed default quoting style to "--quoting=shell-escape".
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMario Lang2016-07-093-51/+83
|\
| * Turn on lexical bindingMark Oteiza2016-07-081-14/+11
| | | | | | | | | | | | | | | | * lisp/net/secrets.el (secrets-collection-handler): Use cl-pushnew. (secrets-search-items, secrets-create-item): Use append. (secrets-show-secrets): Remove unused binding. (secrets-expand-item, secrets-tree-widget-after-toggle-function): Ignore unused arguments.