{"id":13862114,"url":"https://github.com/10sr/switch-buffer-functions-el","last_synced_at":"2026-03-06T21:31:45.466Z","repository":{"id":138840749,"uuid":"62438851","full_name":"10sr/switch-buffer-functions-el","owner":"10sr","description":"Hook Run Just After Switching Current Buffer Interactively","archived":false,"fork":false,"pushed_at":"2021-10-27T08:53:10.000Z","size":15,"stargazers_count":32,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-08T11:41:13.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10sr.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-07-02T07:11:29.000Z","updated_at":"2025-02-21T04:36:48.000Z","dependencies_parsed_at":"2023-03-11T17:30:27.927Z","dependency_job_id":null,"html_url":"https://github.com/10sr/switch-buffer-functions-el","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/10sr/switch-buffer-functions-el","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Fswitch-buffer-functions-el","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Fswitch-buffer-functions-el/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Fswitch-buffer-functions-el/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Fswitch-buffer-functions-el/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10sr","download_url":"https://codeload.github.com/10sr/switch-buffer-functions-el/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Fswitch-buffer-functions-el/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T06:01:37.493Z","updated_at":"2026-03-06T21:31:45.436Z","avatar_url":"https://github.com/10sr.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"= switch-buffer-functions\n\nimage:https://travis-ci.org/10sr/switch-buffer-functions-el.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/10sr/switch-buffer-functions-el\"]\nimage:https://melpa.org/packages/switch-buffer-functions-badge.svg[\"MELPA\", link=https://melpa.org/\\#/switch-buffer-functions]\nimage:https://stable.melpa.org/packages/switch-buffer-functions-badge.svg[\"MELPA Stable\", link=https://stable.melpa.org/#/switch-buffer-functions]\n\nHook run when switching current buffer\n\n\n== What is This?\n\nThis is a Emacs Lisp package that provides a hook variable\n`switch-buffer-functions`.\n\nThis hook will be run when the current buffer has been changed after each\ninteractive command, i.e. when `post-command-hook` is called.\n\nWhen functions are added to the hook, they will be called with the previous buffer and\nthe current buffer.  For example, if you eval:\n\n[source,elisp]\n----\n(add-hook 'switch-buffer-functions\n          (lambda (prev curr)\n            (cl-assert (eq curr (current-buffer)))  ;; Always t\n            (message \"%S -\u003e %S\" prev curr)))\n----\n\nthen the message like `\"#\u003cbuffer \\*Messages*\u003e -\u003e #\u003cbuffer init.el\u003c.emacs.d\u003e\u003e\"`\nwill be displayed to the echo area each time when you switch the current\nbuffer.\n\n\n== License\n\nThis software is Unlicensed. See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Fswitch-buffer-functions-el","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10sr%2Fswitch-buffer-functions-el","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Fswitch-buffer-functions-el/lists"}