summaryrefslogtreecommitdiff
path: root/lisp/saveplace.el
Commit message (Collapse)AuthorAge
* Restore positions reliably for abbreviated file names in saveplace.elLiu Hui2023-04-06
| | | | | | | | | | | | | * lisp/saveplace.el (save-place-abbreviate-file-names): Add setter function for rewriting `save-place-alist'. Update docstring. (save-place-to-alist): Save Abbreviated dired-filename. (save-place-load-alist-from-file): Move this function above `save-place-abbreviate-file-names' since it is used in the :set function. (save-place-find-file-hook): (save-place-dired-hook): Use abbreviated file name when `save-place-abbreviate-file-names' is non-nil. (Bug#62413)
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Fix namespace problem in saveplace.elStefan Kangas2022-08-05
| | | | | | * lisp/saveplace.el (save-place-load-alist-from-file): Rename from 'load-save-place-alist-from-file'. Retain old name as an obsolete alias. Update callers.
* New hook save-place-after-find-file-hookStefan Kangas2022-06-30
| | | | | | This is intended for use in Org mode, where we currently use advise. * lisp/saveplace.el (save-place-after-find-file-hook): New hook. (save-place-find-file-hook): Run new hook.
* Fix saveplace.el when desktop.el restores non-ASCII buffersEli Zaretskii2022-05-23
| | | | | | * lisp/saveplace.el (load-save-place-alist-from-file): Bind 'coding-system-for-read' to nil, so that the 'coding:' cookie in the save-place file takes effect. (Bug#55592)
* Merge from origin/emacs-28Eli Zaretskii2022-01-01
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
| |
* | Don't save places in literally-visited filesLars Ingebrigtsen2021-11-11
|/ | | | | * lisp/saveplace.el (save-places-to-alist): Don't save places in literally-visited files (bug#51740).
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-16
|
* Improve documentation of save-place-abbreviate-file-namesStefan Kangas2021-09-06
| | | | | * lisp/saveplace.el (save-place-abbreviate-file-names): Document why you might want to enable this option.
* Add new user option to abbreviate file names in save-placeLars Ingebrigtsen2021-07-15
| | | | | | * lisp/saveplace.el (save-place-abbreviate-file-names): New user option (bug#13286). (save-place-to-alist): Use it.
* Update copyright year to 2021Paul Eggert2021-01-01
| | | | Run "TZ=UTC0 admin/update-copyright".
* Use lexical-binding in saveplace.el and add testsStefan Kangas2020-08-08
| | | | | | | * lisp/saveplace.el: Use lexical-binding. (save-place-to-alist): Doc fix. * test/lisp/saveplace-tests.el: * test/lisp/saveplace-resources/saveplace: New files.
* ; Fix recent additions with lisp-data-modeBasil L. Contovounesios2020-05-01
| | | | | | | * lisp/bookmark.el (bookmark-insert-file-format-version-stamp) (save-place-alist-to-file): Delimit file-local variables on the -*- line with semicolons. * lisp/files.el (auto-mode-alist): Use shy regexp group.
* Add lisp-data-mode for editing non-code Lisp dataJoão Távora2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: bug#40573 The new mode can be used stand-alone or inherited from by modes intended to edit programs. The existing emacs-lisp-mode and lisp-mode are examples. Thanks to Juri Linkov and Basil L. Contovounesios for researching some data files in Emacs that can be automatically set to use the new mode. * lisp/files.el (auto-mode-alist): Add entry for ".dir-locals" and ".dir-locals-2" * lisp/emacs-lisp/lisp-mode.el: (lisp-data-mode): New major mode. (lisp-mode): Inherit from lisp-data-mode. Set special lisp-mode stuff here. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Inherit from lisp-data-mode. * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): Use lisp-data-mode. * lisp/saveplace.el (save-place-alist-to-file): Use lisp-data-mode. * lisp/net/eww.el (eww-write-bookmarks): Use lisp-data-mode. * lisp/net/nsm.el (nsm-write-settings): Use lisp-data-mode. * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Use lisp-data-mode. * etc/NEWS: Mention lisp-data-mode. * doc/lispref/modes.texi (Example Major Modes): Update example.
* Update copyright year to 2020Paul Eggert2020-01-01
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Go back to "Maintainer: emacs-devel@gnu.org"Paul Eggert2019-05-25
| | | | | | Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is no special maintainer for a file. Although this wasn't documented it was common practice and removing the lines didn't have consensus.
* Fixes for "Maintainer:" and related linesPaul Eggert2019-05-19
| | | | | | Mostly, this just removes "Maintainer: emacs-devel@gnu.org" lines, which are not that useful. It also cleans up and regularizes a few similar lines.
* Merge from origin/emacs-26Paul Eggert2018-12-31
|\ | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-01
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | Merge from origin/emacs-26Glenn Morris2018-09-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 1908173 (origin/emacs-26) Fix Bug#32828 7f5086d * lisp/net/shr.el (shr-copy-url): Fix docstring. d309994 Fix typos in documentation 25cdd65 ; Spellcheck two more documentation strings c8bda05 ; * lisp/simple.el (save-interprogram-paste-before-kill): Fix... dc7fdee * doc/emacs/kmacro.texi (Basic Keyboard Macro): Mention old b... 17766a1 Improve docs of functions/variables related to 'display-buffer' a363931 * lisp/mouse.el (tear-off-window): Fix non-mouse use (bug#32799) 8b8a4c0 Improve documentation of directory-local variables c9c9756 Don't use obsolete variable 'save-place' in documentation ca208e8 Use save-place-mode instead of save-place
| * Use save-place-mode instead of save-placeMark A. Hershberger2018-09-22
| | | | | | | | | | | | | | * lisp/menu-bar.el (menu-bar-options-save, menu-bar-options-menu): * lisp/saveplace.el (save-place-to-alist, save-places-to-alist) (save-place-find-file-hook, save-place-dired-hook): Use save-place-mode instead of the obsolete save-place.
* | Optionally add argument description in minor mode DOC (bug#10754)John Shahid2018-07-01
|/ | | | | | | | | | | Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes.
* Update copyright year to 2018Paul Eggert2018-01-01
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-13
| | | | | | | | | | | | | 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.
* Update copyright year to 2017Paul Eggert2016-12-31
| | | | Run admin/update-copyright.
* * lisp/saveplace.el (save-place-local-mode): New minor modeStefan Monnier2016-02-25
| | | | | | (toggle-save-place): Define as obsolete alias. (save-place--setup-hooks): New function. (save-place-mode): Use it.
* Fix 'toggle-save-place'Eli Zaretskii2016-02-24
| | | | | * lisp/saveplace.el (toggle-save-place): Set up hooks necessary to support save-place in the buffer. Autoload the command.
* Improve documentation of 'save-place-mode'Eli Zaretskii2016-02-24
| | | | | | | | * lisp/saveplace.el (toggle-save-place): Update the doc string wrt turning on 'save-place-mode' globally. * etc/NEWS: Mention the need to call 'save-place-mode' for turning on the mode in all buffers.
* Update copyright year to 2016Paul Eggert2016-01-01
| | | | Run admin/update-copyright.
* * lisp/saveplace.el (toggle-save-place, save-place-to-alist)Juri Linkov2015-12-22
| | | | | (save-places-to-alist, save-place-dired-hook): Check for dired-subdir-alist. (Bug#19851)
* * lisp/saveplace.el (save-place-mode): New minor mode.Stefan Monnier2015-04-27
| | | | (save-place): Redefine as an obsolete alias.
* Update copyright year to 2015Paul Eggert2015-01-01
| | | | Run admin/update-copyright.
* Avoid compilation warning in saveplace.el for dired-current-directoryJuri Linkov2014-12-28
|
* Support subdirectories when saving places in dired.Juri Linkov2014-12-27
| | | | | | | | | | * lisp/saveplace.el (toggle-save-place, save-place-to-alist) (save-places-to-alist, save-place-dired-hook): Use dired-current-directory instead of dired-directory. (save-place-dired-hook): Add check for alist to make the new format future-proof to allow other possible formats. Fixes: debbugs:19436
* * lisp/saveplace.el (toggle-save-place): Fix argument handling (tiny change)Andy Sawyer2014-02-27
| | | | Fixes: debbugs:16673
* lisp/saveplace.el (save-place): Remove redundant info in docstring.Juanma Barranquero2014-02-21
| | | | | | (save-place-forget-unreadable-files, toggle-save-place) (save-place-forget-unreadable-files, save-place-dired-hook): Fix typos and remove unneeded backslashes.
* Replace "Maintainer: FSF" with the emacs-devel mailing addressGlenn Morris2014-02-09
|
* Doc, comment, etc updates for increased use of locate-user-emacs-fileGlenn Morris2014-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have been a prerequisite for making these changes in the first place. * doc/emacs/calendar.texi (Time Intervals): * doc/misc/idlwave.texi (Lesson III---User Catalog, Online Help) (Starting the Shell, Catalogs, User Catalog): * doc/misc/remember.texi (Quick Start): * doc/misc/viper.texi: * doc/misc/vip.texi (Customization, Customizing Constants) (Customizing Key Bindings): Update for files being in ~/.emacs.d/. * lisp/ido.el (ido-save-directory-list-file): * lisp/saveplace.el (save-place-file): * lisp/calendar/timeclock.el (timeclock-file): * lisp/net/quickurl.el (quickurl-url-file): * lisp/obsolete/otodo-mode.el (todo-file-do, todo-file-done, todo-file-top): * lisp/progmodes/idlwave.el (idlwave-config-directory): * lisp/textmodes/remember.el (remember-data-file): Bump :version. * lisp/shadowfile.el (shadow-info-file, shadow-todo-file): Doc fix. * lisp/strokes.el (strokes-file): Doc fix. Bump :version. (strokes-help): Doc fix. * lisp/emulation/viper-init.el (viper-vi-style-in-minibuffer): Doc fix. * lisp/emulation/viper.el (viper): Doc fix for custom group. (top-level): Remove oh-so-no-longer-relevant text about vip. * lisp/obsolete/otodo-mode.el (todo-prefix): Doc fix. * etc/NEWS: Related edits.
* * lisp/saveplace.el (toggle-save-place, save-place-to-alist)Juri Linkov2014-01-20
| | | | | | | (save-places-to-alist, save-place-dired-hook): Add (derived-mode-p 'dired-mode) before checking for dired-directory. Fixes: debbugs:16477
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-01
|
* * lisp/saveplace.el (save-place-to-alist): Add `dired-filename' asJuri Linkov2013-12-20
| | | | | | | | | | | | | | | | | | | | | 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
* Use with-demoted-errors now that it can format any error messagesGlenn Morris2013-09-11
| | | | | | | | | | | | | | | | * dframe.el (dframe-timer-fn): * files.el (dir-locals-read-from-file): * mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run, mpc-format): * reveal.el (reveal-post-command): * saveplace.el (load-save-place-alist-from-file): * shell.el (shell-resync-dirs): * w32-common-fns.el (x-get-selection-value): * emacs-lisp/copyright.el (copyright-find-copyright): * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): * emulation/tpu-edt.el (tpu-copy-keyfile): * play/bubbles.el (bubbles--mark-neighbourhood): * progmodes/executable.el (executable-make-buffer-file-executable-if-script-p): * term/pc-win.el (x-get-selection-value): Use with-demoted-errors.
* * lisp/saveplace.el (load-save-place-alist-from-file): Demote errors.Glenn Morris2013-09-08
| | | | Fixes: debbugs:15305
* Add support for dired in saveplace.Ivan Kanis2013-06-14
|
* * saveplace.el (save-place-alist-to-file): Don't sortKarl Fogel2013-03-13
| | | | `save-place-alist', just pretty-print it (bug#13882).
* Use locate-user-emacs-file.Stefan Monnier2013-03-11
| | | | | | | | | | | | | | | | | * lisp/type-break.el (type-break-file-name): * lisp/textmodes/remember.el (remember-data-file): * lisp/strokes.el (strokes-file): * lisp/shadowfile.el (shadow-initialize): * lisp/saveplace.el (save-place-file): * lisp/ps-bdf.el (bdf-cache-file): * lisp/progmodes/idlwave.el (idlwave-config-directory): * lisp/net/quickurl.el (quickurl-url-file): * lisp/international/kkc.el (kkc-init-file-name): * lisp/ido.el (ido-save-directory-list-file): * lisp/emulation/viper.el (viper-custom-file-name): * lisp/emulation/vip.el (vip-startup-file): * lisp/calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top): * lisp/calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.
* Update copyright notices for 2013.Paul Eggert2013-01-01
|
* Update docstrings and comments to use "init file" terminology.Chong Yidong2012-09-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes. * comint.el (comint-prompt-read-only): * custom.el (defcustom): * hi-lock.el (hi-lock-mode): * ibuffer.el (ibuffer-formats): * ielm.el (ielm-prompt-read-only): * novice.el (disable-command): * saveplace.el (toggle-save-place): * speedbar.el (speedbar-supported-extension-expressions): * startup.el (auto-save-list-file-prefix, init-file-user) (after-init-hook, inhibit-startup-echo-area-message): * strokes.el (strokes-help): * time-stamp.el (time-stamp): * calendar/calendar.el (calendar, diary-file): * calendar/diary-lib.el (diary-mail-entries, diary) (diary-list-entries-hook): * calendar/holidays.el (holidays, calendar-holidays): * calendar/lunar.el (lunar-phases): * calendar/solar.el (sunrise-sunset): * emulation/edt.el (edt-load-keys): * emulation/viper.el (viper-mode): * eshell/em-alias.el (eshell-command-aliases-list): * eshell/esh-util.el (eshell-convert-numeric-arguments): * international/ogonek.el (ogonek-information): * net/tramp-cmds.el (tramp-bug): * net/quickurl.el (quickurl-reread-hook-postfix): * play/decipher.el (decipher-font-lock-keywords): * progmodes/cc-styles.el (c-set-style): * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern): * progmodes/inf-lisp.el (inferior-lisp-prompt): * progmodes/octave-mod.el (octave-mode): * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password): * progmodes/verilog-mode.el (verilog-read-defines): * textmodes/two-column.el (2C-mode): Likewise.
* * saveplace.el (save-place-to-alist)Tassilo Horn2012-03-04
| | | | | (save-place-ignore-files-regexp): Allow value nil to disable this feature.