summaryrefslogtreecommitdiff
path: root/lisp/elec-pair.el
Commit message (Collapse)AuthorAgeFilesLines
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Fix default value of electric-pair-pairs and electric-pair-text-pairsJoão Távora2017-08-181-6/+6
| | | | | | | | | | | | | Fixes: debbugs:24901 A previous change, titled "Add support for curly quotation marks to electric-pair-mode", attempted to add these characters to the default value of these variables. But it did so in a quoted list, preventing evaluation of the relevant expressions and resulting in an invalid format. * lisp/elec-pair.el (electric-pair-pairs, electric-pair-text-pairs): Use backquote and comma.
* * lisp/elec-pair.el (electric-pair-text-pairs): Don't autoload (Bug#24901).Noam Postavsky2017-08-181-1/+0
| | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Require `elec-pair' explicitly in the interactive case.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Add support for curly quotation marks to electric-pair-modeReuben Thomas2016-12-021-2/+6
|/ | | | | | | | | * lisp/elec-pair.el (electric-pair-pairs, electric-pair-text-pairs): Add entries for left/right single/double quotation marks, from electric-quote-chars. Note that this is safe for single quotation marks, unlike with the ASCII apostrophe, since, although the right quotation mark can be used as an apostrophe, it is the left quotation mark that is typed to get a pair (Bug#24901).
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Address some compilation warnings.Glenn Morris2015-06-161-1/+1
| | | | | | * lisp/elec-pair.el (electric-pair-post-self-insert-function): * lisp/vc/vc-git.el (vc-git-file-type-as-string): Replace 't' with '_' in pcase.
* * lisp/elec-pair.el (electric-pair-post-self-insert-function): Do not use ↵Tom Willemse2015-04-181-1/+2
| | | | | | | `chomp' as a function. Fixes: debbugs:19505 Copyright-paperwork-exempt: yes
* New `electric-pair-local-mode'Tom Willemse2015-03-281-1/+15
| | | | | | | | Fixes: big#19528 * lisp/elec-pair.el (electric-pair-local-mode): New command. (electric-pair-mode): Mention `electric-pair-local-mode' in the docstring.
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Fix bug in Electric Pair modeJoão Távora2014-04-131-5/+4
| | | | | * lisp/elec-pair.el (electric-pair--syntax-ppss): Simplify and fix possible bug.
* Spelling fixes.Paul Eggert2014-04-101-1/+1
| | | | | | * automated/electric-tests.el: Fix spelling error in test name. (whitespace-skipping-for-quotes-not-outside): Rename from whitespace-skipping-for-quotes-not-ouside.
* Improve on previous quote autopairing changeJoão Távora2014-04-071-19/+36
| | | | | | | | | | | | | | | | | | | Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com * lisp/elec-pair.el: (electric-pair--syntax-ppss): When inside comments parse from comment beginning. (electric-pair--balance-info): Fix typo in comment. (electric-pair--in-unterminated-string-p): Delete. (electric-pair--unbalanced-strings-p): New function. (electric-pair-string-bound-function): New var. (electric-pair-inhibit-if-helps-balance): Decide quote pairing according to `electric-pair--in-unterminated-string-p' * test/automated/electric-tests.el (define-electric-pair-test): Don't overtest.. (inhibit-in-mismatched-string-inside-ruby-comments): New test. (inhibit-in-mismatched-string-inside-c-comments): New test.
* Inhibit quote autopairing more frequentlyJoão Távora2014-04-071-13/+14
| | | | | | | | | | | | | Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com * lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit quote pairing if point-max is inside an unterminated string. (electric-pair--looking-at-unterminated-string-p): Delete. (electric-pair--in-unterminated-string-p): New function. * test/automated/electric-tests.el (inhibit-if-strings-mismatched): New test, change from `inhibit-only-of-next-is-mismatched'.
* Fix electric-pair-delete-adjacent-pairs in modes binding backspace.João Távora2014-04-071-36/+26
| | | | | | | | | | * lisp/elec-pair.el (electric-pair-backward-delete-char): Delete. (electric-pair-backward-delete-char-untabify): Delete. (electric-pair-mode-map): Bind backspace to a menu item filtering a new `electric-pair-delete-pair' command. (electric-pair-delete-pair): New command. Fixes: debbugs:16981
* Fix electric-pair-skip-whitespace with quotes in text-modeJoão Távora2014-04-071-4/+6
| | | | | | | | | | | | | | * lisp/elec-pair.el (electric-pair-post-self-insert-function): Don't skip whitespace for quote syntax when `electric-pair-text-pairs' and `electric-pair-pairs' were used. * test/automated/electric-tests.el (electric-pair-define-test-form): More readable test docstrings. (whitespace-skipping-for-quotes-not-ouside) (whitespace-skipping-for-quotes-only-inside) (whitespace-skipping-not-without-proper-syntax): Fixes: debbugs:17183
* lisp/elec-pair.el: Fix typos.Juanma Barranquero2014-02-231-23/+22
| | | | | | | | (electric-pair-text-syntax-table, electric-pair-syntax-info) (electric-pair--syntax-ppss, electric-pair--balance-info) (electric-pair-mode): Fix docstring typos. (electric-pair--looking-at-unterminated-string-p): Doc fix. (electric-pair--inside-string-p): Doc fix. Use `let', not `let*'.
* lisp/elec-pair.el: Fix bug#16799.Juanma Barranquero2014-02-201-2/+3
| | | | | (electric-pair-syntax-info): Do not check syntax before the start of buffer/region.
* Fix `electric-pair-backward-delete-char' error at bobJoão Távora2014-02-031-3/+4
| | | | | * lisp/elec-pair.el (electric-pair-backward-delete-char): Don't error when at beginning of (possibly narrowed) buffer.
* Spelling fixes.Paul Eggert2014-01-041-2/+2
| | | | | | | | * lib-src/Makefile.in (regex.o): Remove reference to no-longer-used macros CONFIG_BROKETS and INHIBIT_STRING_HEADER. "BROKETS" was a misspelling anyway.... * src/nsterm.h (updateCollectionBehavior): Rename from updateCollectionBehaviour. All uses changed.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Fix bug #16272 when inserting newline at point-min in electric-pair-mode. João Távora2013-12-281-1/+1
| | | | | * elec-pair.el (electric-pair-post-self-insert-function): Don't open extra newlines at beginning of buffer.
* Spelling and typo fixes.Paul Eggert2013-12-271-6/+6
|
* Misc small custom fixesGlenn Morris2013-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | The value of defcustom's const should not be quoted! * lisp/desktop.el (desktop-restore-in-current-display): * lisp/newcomment.el (comment-empty-lines): * lisp/progmodes/idlwave.el (idlwave-scan-all-buffers-for-routine-info) (idlwave-pad-keyword): * lisp/progmodes/tcl.el (tcl-tab-always-indent): * lisp/textmodes/reftex-vars.el (reftex-index-default-tag): * lisp/elec-pair.el (electric-pair-skip-whitespace): * lisp/progmodes/cfengine.el (cfengine-cf-promises): * lisp/cedet/ede/linux.el (project-linux-build-directory-default) (project-linux-architecture-default): * lisp/erc/erc-button.el (erc-button-alist): * lisp/gnus/auth-source.el (auth-sources): * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close): * lisp/url/url-history.el (url-history-track): * lisp/url/url-vars.el (url-honor-refresh-requests): Fix custom types. * lisp/net/tls.el (tls-certtool-program): Fix default value.
* * lisp/electric.el: Move all electric-pair-* to elec-pair.el.Stefan Monnier2013-12-271-0/+566
* lisp/elec-pair.el: New file, split from electric.el.